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