Skip to content

Commit

Permalink
Remove meta from list of block html tags
Browse files Browse the repository at this point in the history
  • Loading branch information
rlidwka committed Nov 25, 2020
1 parent 8ad16ac commit ddbb195
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix performance issues when parsing links (#732, #734), backticks, (#733, #736),
emphases (#735), and autolinks (#737).
- Allow newline in `<? ... ?>` in an inline context.
- Allow `<meta>` html tag to appear in an inline context.


## [12.0.2] - 2020-10-23
Expand Down
1 change: 0 additions & 1 deletion lib/common/html_blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ module.exports = [
'main',
'menu',
'menuitem',
'meta',
'nav',
'noframes',
'ol',
Expand Down
14 changes: 14 additions & 0 deletions test/fixtures/markdown-it/commonmark_extras.txt
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,20 @@ a <?
.


Allow meta tag in an inline context, commonmark/commonmark-spec#527.
.
City:
<span itemprop="contentLocation" itemscope itemtype="https://schema.org/City">
<meta itemprop="name" content="Springfield">
</span>
.
<p>City:
<span itemprop="contentLocation" itemscope itemtype="https://schema.org/City">
<meta itemprop="name" content="Springfield">
</span></p>
.


Coverage. Directive can terminate paragraph.
.
a
Expand Down

0 comments on commit ddbb195

Please sign in to comment.