@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/NReditor.cjs +140 -59
- package/dist/NReditor.cjs.map +1 -1
- package/dist/NReditor.d.cts +5 -0
- package/dist/NReditor.d.ts +5 -0
- package/dist/NReditor.js +125 -44
- package/dist/NReditor.js.map +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.js +1 -1
- package/dist/core.js.map +1 -1
- package/dist/editor.css +179 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/dist/vanilla.cjs +1 -1
- package/dist/vanilla.cjs.map +1 -1
- package/dist/vanilla.js +1 -1
- package/dist/vanilla.js.map +1 -1
- package/dist/vue.cjs +11 -20
- package/dist/vue.cjs.map +1 -1
- package/dist/vue.js +10 -4
- package/dist/vue.js.map +1 -1
- package/editor.css +179 -0
- package/package.json +5 -3
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) {
|