@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/react.cjs CHANGED
@@ -1683,7 +1683,7 @@ function parseHtmlAttrs(attrsString) {
1683
1683
  // core/parser.ts
1684
1684
  function parseMarkdown(markdown2) {
1685
1685
  if (!markdown2) return [];
1686
- const lines = markdown2.split("\n");
1686
+ const lines = markdown2.replace(/\r\n/g, "\n").replace(/\r/g, "").split("\n");
1687
1687
  const result = [];
1688
1688
  let i = 0;
1689
1689
  while (i < lines.length) {