@noirmd/previewer 1.1.0 → 1.1.1

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/index.js CHANGED
@@ -1655,7 +1655,7 @@ function parseHtmlAttrs(attrsString) {
1655
1655
  // core/parser.ts
1656
1656
  function parseMarkdown(markdown2) {
1657
1657
  if (!markdown2) return [];
1658
- const lines = markdown2.split("\n");
1658
+ const lines = markdown2.replace(/\r\n/g, "\n").replace(/\r/g, "").split("\n");
1659
1659
  const result = [];
1660
1660
  let i = 0;
1661
1661
  while (i < lines.length) {