Browse Source

Update CommonMark spec to 0.30

pull/799/head
Alex Kocharin 4 years ago
parent
commit
0b14fa069f
  1. 6
      CHANGELOG.md
  2. 2
      lib/rules_block/html_block.js
  3. 5732
      test/fixtures/commonmark/good.txt
  4. 3732
      test/fixtures/commonmark/spec.txt

6
CHANGELOG.md

@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [12.1.0] - WIP
### Changed
- Updated CM spec compatibility to 0.30.
## [12.0.6] - 2021-04-16 ## [12.0.6] - 2021-04-16
### Fixed ### Fixed
- Newline in `alt` should be rendered, #775. - Newline in `alt` should be rendered, #775.
@ -562,6 +567,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Renamed presets folder (configs -> presets). - Renamed presets folder (configs -> presets).
[12.1.0]: https://github.com/markdown-it/markdown-it/compare/12.0.6...12.1.0
[12.0.6]: https://github.com/markdown-it/markdown-it/compare/12.0.5...12.0.6 [12.0.6]: https://github.com/markdown-it/markdown-it/compare/12.0.5...12.0.6
[12.0.5]: https://github.com/markdown-it/markdown-it/compare/12.0.4...12.0.5 [12.0.5]: https://github.com/markdown-it/markdown-it/compare/12.0.4...12.0.5
[12.0.4]: https://github.com/markdown-it/markdown-it/compare/12.0.3...12.0.4 [12.0.4]: https://github.com/markdown-it/markdown-it/compare/12.0.3...12.0.4

2
lib/rules_block/html_block.js

@ -10,7 +10,7 @@ var HTML_OPEN_CLOSE_TAG_RE = require('../common/html_re').HTML_OPEN_CLOSE_TAG_RE
// last argument defines whether it can terminate a paragraph or not // last argument defines whether it can terminate a paragraph or not
// //
var HTML_SEQUENCES = [ var HTML_SEQUENCES = [
[ /^<(script|pre|style)(?=(\s|>|$))/i, /<\/(script|pre|style)>/i, true ], [ /^<(script|pre|style|textarea)(?=(\s|>|$))/i, /<\/(script|pre|style|textarea)>/i, true ],
[ /^<!--/, /-->/, true ], [ /^<!--/, /-->/, true ],
[ /^<\?/, /\?>/, true ], [ /^<\?/, /\?>/, true ],
[ /^<![A-Z]/, />/, true ], [ /^<![A-Z]/, />/, true ],

5732
test/fixtures/commonmark/good.txt

File diff suppressed because it is too large

3732
test/fixtures/commonmark/spec.txt

File diff suppressed because it is too large
Loading…
Cancel
Save