@changerawr/markdown 1.1.9 → 1.1.11
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/css/index.css +395 -33
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.js +3 -3
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +3 -3
- package/dist/react/index.mjs.map +1 -1
- package/dist/standalone.browser.js +60 -27
- package/dist/standalone.js +3 -3
- package/dist/standalone.js.map +1 -1
- package/dist/standalone.mjs +3 -3
- package/dist/standalone.mjs.map +1 -1
- package/dist/tailwind/index.d.mts +18 -10
- package/dist/tailwind/index.d.ts +18 -10
- package/dist/tailwind/index.js +41 -35
- package/dist/tailwind/index.js.map +1 -1
- package/dist/tailwind/index.mjs +40 -35
- package/dist/tailwind/index.mjs.map +1 -1
- package/package.json +118 -118
package/dist/standalone.mjs
CHANGED
|
@@ -210,13 +210,13 @@ var MarkdownParser = class _MarkdownParser {
|
|
|
210
210
|
return processed;
|
|
211
211
|
}
|
|
212
212
|
recursivelyParseBlockContent(token) {
|
|
213
|
-
const blockTypes = ["alert", "blockquote", "list-item", "task-item"];
|
|
213
|
+
const blockTypes = ["alert", "blockquote", "list-item", "ordered-list-item", "task-item"];
|
|
214
214
|
if (blockTypes.includes(token.type) && token.content && token.content.trim()) {
|
|
215
215
|
let children;
|
|
216
|
-
if ((token.type === "list-item" || token.type === "task-item") && this.rules.some((r) => r.name === "list-item")) {
|
|
216
|
+
if ((token.type === "list-item" || token.type === "ordered-list-item" || token.type === "task-item") && this.rules.some((r) => r.name === "unordered-list-item" || r.name === "ordered-list-item" || r.name === "task-item")) {
|
|
217
217
|
const parserWithoutListRule = new _MarkdownParser(this.config);
|
|
218
218
|
this.rules.forEach((rule) => {
|
|
219
|
-
if (rule.name !== "list-item" && rule.name !== "task-item") {
|
|
219
|
+
if (rule.name !== "unordered-list-item" && rule.name !== "ordered-list-item" && rule.name !== "task-item") {
|
|
220
220
|
parserWithoutListRule.addRule(rule);
|
|
221
221
|
}
|
|
222
222
|
});
|