@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/NReditor.cjs CHANGED
@@ -442,7 +442,7 @@ function parseHtmlAttrs(attrsString) {
442
442
  // core/parser.ts
443
443
  function parseMarkdown(markdown2) {
444
444
  if (!markdown2) return [];
445
- const lines = markdown2.split("\n");
445
+ const lines = markdown2.replace(/\r\n/g, "\n").replace(/\r/g, "").split("\n");
446
446
  const result = [];
447
447
  let i = 0;
448
448
  while (i < lines.length) {