Browse Source

Remove meta from list of block html tags

ref https://github.com/commonmark/commonmark-spec/issues/527
pull/745/head
Alex Kocharin 4 years ago
parent
commit
ddbb195546
  1. 1
      CHANGELOG.md
  2. 1
      lib/common/html_blocks.js
  3. 14
      test/fixtures/markdown-it/commonmark_extras.txt

1
CHANGELOG.md

@ -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

1
lib/common/html_blocks.js

@ -47,7 +47,6 @@ module.exports = [
'main',
'menu',
'menuitem',
'meta',
'nav',
'noframes',
'ol',

14
test/fixtures/markdown-it/commonmark_extras.txt

@ -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

Loading…
Cancel
Save