@changerawr/markdown 1.1.9 → 1.1.10

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.js CHANGED
@@ -321,13 +321,13 @@ var MarkdownParser = class _MarkdownParser {
321
321
  return processed;
322
322
  }
323
323
  recursivelyParseBlockContent(token) {
324
- const blockTypes = ["alert", "blockquote", "list-item", "task-item"];
324
+ const blockTypes = ["alert", "blockquote", "list-item", "ordered-list-item", "task-item"];
325
325
  if (blockTypes.includes(token.type) && token.content && token.content.trim()) {
326
326
  let children;
327
- if ((token.type === "list-item" || token.type === "task-item") && this.rules.some((r) => r.name === "list-item")) {
327
+ 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")) {
328
328
  const parserWithoutListRule = new _MarkdownParser(this.config);
329
329
  this.rules.forEach((rule) => {
330
- if (rule.name !== "list-item" && rule.name !== "task-item") {
330
+ if (rule.name !== "unordered-list-item" && rule.name !== "ordered-list-item" && rule.name !== "task-item") {
331
331
  parserWithoutListRule.addRule(rule);
332
332
  }
333
333
  });