fix: fix list item wrong indent (#3889)

This commit is contained in:
Tony Brix
2026-02-11 09:39:56 -07:00
committed by GitHub
parent 9fc4f8e4a8
commit e0311759cd
3 changed files with 19 additions and 3 deletions
+1 -3
View File
@@ -368,9 +368,7 @@ export class _Tokenizer<ParserOutput = string, RendererOutput = string> {
itemContents += '\n' + nextLine;
}
if (!blankLine && !nextLine.trim()) { // Check if current line is blank
blankLine = true;
}
blankLine = !nextLine.trim();
raw += rawLine + '\n';
src = src.substring(rawLine.length + 1);
+10
View File
@@ -0,0 +1,10 @@
<ul>
<li>
<p><strong>Header</strong>:<br />
new line</p>
<p>two space
one space
no space</p>
</li>
</ul>
<p>new line</p>
+8
View File
@@ -0,0 +1,8 @@
- **Header**:
new line
two space
one space
no space
new line