@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.
@@ -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
  });