@8btc/mditor 0.0.26 → 0.0.27
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/index.css +2 -2
- package/dist/index.js +3 -26
- package/dist/index.min.js +1 -1
- package/dist/js/lute/lute.min.js +3 -3
- package/dist/method.js +3 -26
- package/dist/method.min.js +1 -1
- package/package.json +1 -1
- package/src/ts/markdown/customRender.ts +1 -1
- package/src/ts/markdown/previewRender.ts +1 -2
- package/src/ts/util/attachLineNumbers.ts +1 -20
|
@@ -174,7 +174,6 @@ export const previewRender = async (
|
|
|
174
174
|
);
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
console.log(previewElement, "previewElement");
|
|
178
177
|
|
|
179
178
|
customRender(previewElement, mergedOptions.customComponents || {});
|
|
180
179
|
|
|
@@ -267,7 +266,7 @@ export const previewRender = async (
|
|
|
267
266
|
.querySelectorAll(".language-math")
|
|
268
267
|
.forEach((mathEl: HTMLElement) => {
|
|
269
268
|
const mathSource = mathEl.getAttribute("data-math");
|
|
270
|
-
|
|
269
|
+
|
|
271
270
|
if (mathSource) {
|
|
272
271
|
if (mathEl.tagName === "SPAN") {
|
|
273
272
|
const textNode = document.createTextNode(
|
|
@@ -707,26 +707,7 @@ export const attachLineNumbersToBlocks = (
|
|
|
707
707
|
tableGroups,
|
|
708
708
|
});
|
|
709
709
|
}
|
|
710
|
-
|
|
711
|
-
cached: !!cached,
|
|
712
|
-
times: {
|
|
713
|
-
normalize: Math.round((tNorm - t0) * 100) / 100,
|
|
714
|
-
index: Math.round((tIndexDone - tNorm) * 100) / 100,
|
|
715
|
-
blocks: Math.round((tBlockDone - tIndexDone) * 100) / 100,
|
|
716
|
-
ul: Math.round((tUlDone - tBlockDone) * 100) / 100,
|
|
717
|
-
ol: Math.round((tOlDone - tUlDone) * 100) / 100,
|
|
718
|
-
table: Math.round((tTableDone - tIndexDone) * 100) / 100,
|
|
719
|
-
apply: Math.round((tApplyDone - tTableDone) * 100) / 100,
|
|
720
|
-
total: Math.round((tApplyDone - t0) * 100) / 100,
|
|
721
|
-
},
|
|
722
|
-
counts: {
|
|
723
|
-
blocks: blocks.length,
|
|
724
|
-
ul: ulElements.length,
|
|
725
|
-
ol: olElements.length,
|
|
726
|
-
tables: tables.length,
|
|
727
|
-
updates: attrUpdates.length,
|
|
728
|
-
},
|
|
729
|
-
});
|
|
710
|
+
|
|
730
711
|
};
|
|
731
712
|
|
|
732
713
|
/**
|