@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/vanilla.cjs CHANGED
@@ -1670,7 +1670,7 @@ function parseHtmlAttrs(attrsString) {
1670
1670
  // core/parser.ts
1671
1671
  function parseMarkdown(markdown2) {
1672
1672
  if (!markdown2) return [];
1673
- const lines = markdown2.split("\n");
1673
+ const lines = markdown2.replace(/\r\n/g, "\n").replace(/\r/g, "").split("\n");
1674
1674
  const result = [];
1675
1675
  let i = 0;
1676
1676
  while (i < lines.length) {