From be4d9bdbe75300796595d21b84f42dfc7ecc4ebd Mon Sep 17 00:00:00 2001 From: David Anson Date: Fri, 28 Feb 2025 19:44:12 -0800 Subject: [PATCH] Freshen generated index.js file. --- dist/index.mjs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dist/index.mjs b/dist/index.mjs index 9a0bf42..39fbb62 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -55177,7 +55177,7 @@ function subtokenize(eventsArray) { otherEvent[1].type = "lineEnding"; lineIndex = otherIndex; } - } else if (otherEvent[1].type === "linePrefix") { + } else if (otherEvent[1].type === "linePrefix" || otherEvent[1].type === "listItemIndent") { // Move past. } else { break; @@ -55218,7 +55218,13 @@ function subcontent(events, eventIndex) { let startPosition = eventIndex - 1; /** @type {Array} */ const startPositions = []; - const tokenizer = token._tokenizer || context.parser[token.contentType](token.start); + let tokenizer = token._tokenizer; + if (!tokenizer) { + tokenizer = context.parser[token.contentType](token.start); + if (token._contentTypeTextTrailing) { + tokenizer._contentTypeTextTrailing = true; + } + } const childEvents = tokenizer.events; /** @type {Array<[number, number]>} */ const jumps = [];