@noirmd/previewer 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/vanilla.js CHANGED
@@ -1645,7 +1645,7 @@ function parseHtmlAttrs(attrsString) {
1645
1645
  // core/parser.ts
1646
1646
  function parseMarkdown(markdown2) {
1647
1647
  if (!markdown2) return [];
1648
- const lines = markdown2.split("\n");
1648
+ const lines = markdown2.replace(/\r\n/g, "\n").replace(/\r/g, "").split("\n");
1649
1649
  const result = [];
1650
1650
  let i = 0;
1651
1651
  while (i < lines.length) {