Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix: tab preventing paragraph continuation in lists #274

Merged
merged 1 commit into from
Jun 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions markdown_it/port.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- package: markdown-it/markdown-it
version: 12.3.0
commit: 2e31d3430187d2eee1ba120c954783eebb93b4e8
date: Dec 9, 2021
version: 12.3.1
commit: 76469e83dc1a1e3ed943b483b554003a666bddf7
date: Jan 7, 2022
notes:
- Rename variables that use python built-in names, e.g.
- `max` -> `maximum`
Expand Down
2 changes: 1 addition & 1 deletion markdown_it/rules_block/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def list_block(state: StateBlock, startLine: int, endLine: int, silent: bool) ->
if (
silent
and state.parentType == "paragraph"
and state.tShift[startLine] >= state.blkIndent
and state.sCount[startLine] >= state.blkIndent
):
isTerminatingParagraph = True

Expand Down
21 changes: 21 additions & 0 deletions tests/test_port/fixtures/commonmark_extras.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,27 @@ Regression test (code block + regular paragraph)
</blockquote>
.

Regression test (tabs in lists, #830)
.
1. asd
2. asd

---

1. asd
2. asd
.
<ol>
<li>asd
2. asd</li>
</ol>
<hr />
<ol>
<li>asd
2. asd</li>
</ol>
.

Blockquotes inside indented lists should terminate correctly
.
- a
Expand Down