@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.js CHANGED
@@ -408,7 +408,7 @@ function parseHtmlAttrs(attrsString) {
408
408
  // core/parser.ts
409
409
  function parseMarkdown(markdown2) {
410
410
  if (!markdown2) return [];
411
- const lines = markdown2.split("\n");
411
+ const lines = markdown2.replace(/\r\n/g, "\n").replace(/\r/g, "").split("\n");
412
412
  const result = [];
413
413
  let i = 0;
414
414
  while (i < lines.length) {