Skip to content

Commit 2984159

Browse files
committed
👌 IMPROVE: Allow <meta> html tag to appear in an inline context.
Ref: commonmark/commonmark-spec#527 Implements: markdown-it/markdown-it@ddbb195
1 parent ccbe70b commit 2984159

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

markdown_it/common/html_blocks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
"main",
4646
"menu",
4747
"menuitem",
48-
"meta",
4948
"nav",
5049
"noframes",
5150
"ol",

tests/test_port/fixtures/commonmark_extras.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,19 @@ List item terminating quote should not be paragraph continuation
255255
</ol>
256256
.
257257

258+
Allow meta tag in an inline context, commonmark/commonmark-spec#527.
259+
.
260+
City:
261+
<span itemprop="contentLocation" itemscope itemtype="https://schema.org/City">
262+
<meta itemprop="name" content="Springfield">
263+
</span>
264+
.
265+
<p>City:
266+
<span itemprop="contentLocation" itemscope itemtype="https://schema.org/City">
267+
<meta itemprop="name" content="Springfield">
268+
</span></p>
269+
.
270+
258271
Coverage. Directive can terminate paragraph.
259272
.
260273
a

0 commit comments

Comments
 (0)