Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ddbb195

Browse files
committed
Remove meta from list of block html tags
ref commonmark/commonmark-spec#527
1 parent 8ad16ac commit ddbb195

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
- Fix performance issues when parsing links (#732, #734), backticks, (#733, #736),
1515
emphases (#735), and autolinks (#737).
1616
- Allow newline in `<? ... ?>` in an inline context.
17+
- Allow `<meta>` html tag to appear in an inline context.
1718

1819

1920
## [12.0.2] - 2020-10-23

lib/common/html_blocks.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ module.exports = [
4747
'main',
4848
'menu',
4949
'menuitem',
50-
'meta',
5150
'nav',
5251
'noframes',
5352
'ol',

test/fixtures/markdown-it/commonmark_extras.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,20 @@ a <?
296296
.
297297

298298

299+
Allow meta tag in an inline context, commonmark/commonmark-spec#527.
300+
.
301+
City:
302+
<span itemprop="contentLocation" itemscope itemtype="https://schema.org/City">
303+
<meta itemprop="name" content="Springfield">
304+
</span>
305+
.
306+
<p>City:
307+
<span itemprop="contentLocation" itemscope itemtype="https://schema.org/City">
308+
<meta itemprop="name" content="Springfield">
309+
</span></p>
310+
.
311+
312+
299313
Coverage. Directive can terminate paragraph.
300314
.
301315
a

0 commit comments

Comments
 (0)