mirror of
https://github.com/markedjs/marked.git
synced 2026-11-30 16:48:05 +01:00
fix: fix list item wrong indent (#3889)
This commit is contained in:
+1
-3
@@ -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);
|
||||
|
||||
@@ -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>
|
||||
@@ -0,0 +1,8 @@
|
||||
- **Header**:
|
||||
new line
|
||||
|
||||
two space
|
||||
one space
|
||||
no space
|
||||
|
||||
new line
|
||||
Reference in New Issue
Block a user