Skip to content

Commit 00df400

Browse files
authored
👌 IMPROVE: Apply upstream fix to deflist (#47)
Apply upstream fix from markdown-it/markdown-it-deflist#8
1 parent 9c8eb37 commit 00df400

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
# if-no-files-found: error
3838

3939
- name: Store benchmark result
40-
uses: chrisjsewell/github-action-benchmark@v2
40+
uses: aiidateam/github-action-benchmark@v2
4141
with:
4242
name: Parsing Benchmarks
4343
output-file-path: bench-packages.json

markdown_it/extensions/deflist/index.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,5 +246,8 @@ def deflist(state: StateBlock, startLine: int, endLine: int, silent: bool):
246246
return True
247247

248248
md.block.ruler.before(
249-
"paragraph", "deflist", deflist, {"alt": ["paragraph", "reference"]}
249+
"paragraph",
250+
"deflist",
251+
deflist,
252+
{"alt": ["paragraph", "reference", "blockquote"]},
250253
)

tests/test_plugins/fixtures/deflist.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ Regression test (blockquote inside deflist)
214214
.
215215
foo
216216
: > bar
217-
218217
: baz
219218
.
220219
<dl>
@@ -224,9 +223,7 @@ foo
224223
<p>bar</p>
225224
</blockquote>
226225
</dd>
227-
<dd>
228-
<p>baz</p>
229-
</dd>
226+
<dd>baz</dd>
230227
</dl>
231228
.
232229

0 commit comments

Comments
 (0)