mirror of
https://github.com/modrinth/code.git
synced 2026-08-30 19:46:33 +00:00
22 lines
955 B
Diff
22 lines
955 B
Diff
diff --git a/dist/internal/parse/token-processor.js b/dist/internal/parse/token-processor.js
|
|
index 440841f8d9252067681f09df935dd0287fff2cf0..e71c6f763d8520c53d7f7d8a1e9bcdc5e29f0526 100644
|
|
--- a/dist/internal/parse/token-processor.js
|
|
+++ b/dist/internal/parse/token-processor.js
|
|
@@ -483,6 +483,16 @@ function processBlockChildren(tokens, startIndex, closeType, inlineOnly, inHeadi
|
|
}
|
|
i++;
|
|
}
|
|
+ else if (token.type === 'paragraph_open' && token.hidden) {
|
|
+ i++;
|
|
+ if (tokens[i] && tokens[i].type === 'inline') {
|
|
+ nodes.push(...processInlineTokens(tokens[i].children || [], inHeading));
|
|
+ i++;
|
|
+ }
|
|
+ if (tokens[i] && tokens[i].type === 'paragraph_close') {
|
|
+ i++;
|
|
+ }
|
|
+ }
|
|
else {
|
|
const result = processBlockToken(tokens, i, insideNestedContext, state);
|
|
i = result.nextIndex;
|