Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

markdown-it

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-it - npm Package Compare versions

Comparing version 12.0.4 to 12.0.5

7

CHANGELOG.md

@@ -9,2 +9,8 @@ # Changelog

## [12.0.5] - 2021-04-15
### Fixed
- HTML block tags with `===` inside are no longer incorrectly interpreted as headers, #772.
- Fix table/list parsing ambiguity, #767.
## [12.0.4] - 2020-12-20

@@ -555,2 +561,3 @@ ### Fixed

[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

@@ -557,0 +564,0 @@ [12.0.3]: https://github.com/markdown-it/markdown-it/compare/12.0.2...12.0.3

2

lib/parser_block.js

@@ -22,5 +22,5 @@ /** internal

[ 'reference', require('./rules_block/reference') ],
[ 'html_block', require('./rules_block/html_block'), [ 'paragraph', 'reference', 'blockquote' ] ],
[ 'heading', require('./rules_block/heading'), [ 'paragraph', 'reference', 'blockquote' ] ],
[ 'lheading', require('./rules_block/lheading') ],
[ 'html_block', require('./rules_block/html_block'), [ 'paragraph', 'reference', 'blockquote' ] ],
[ 'paragraph', require('./rules_block/paragraph') ]

@@ -27,0 +27,0 @@ ];

@@ -55,3 +55,3 @@ // GFM table, https://github.github.com/gfm/#tables-extension-

aligns, t, tableLines, tbodyLines, oldParentType, terminate,
terminatorRules;
terminatorRules, firstCh, secondCh;

@@ -75,5 +75,16 @@ // should have at least two lines

ch = state.src.charCodeAt(pos++);
if (ch !== 0x7C/* | */ && ch !== 0x2D/* - */ && ch !== 0x3A/* : */) { return false; }
firstCh = state.src.charCodeAt(pos++);
if (firstCh !== 0x7C/* | */ && firstCh !== 0x2D/* - */ && firstCh !== 0x3A/* : */) { return false; }
if (pos >= state.eMarks[nextLine]) { return false; }
secondCh = state.src.charCodeAt(pos++);
if (secondCh !== 0x7C/* | */ && secondCh !== 0x2D/* - */ && secondCh !== 0x3A/* : */ && !isSpace(secondCh)) {
return false;
}
// if first character is '-', then second character must not be a space
// (due to parsing ambiguity with list)
if (firstCh === 0x2D/* - */ && isSpace(secondCh)) { return false; }
while (pos < state.eMarks[nextLine]) {

@@ -80,0 +91,0 @@ ch = state.src.charCodeAt(pos);

@@ -87,3 +87,6 @@ // Token class

*
* fence infostring
* Additional information:
*
* - Info string for "fence" tokens
* - The value "auto" for autolink "link_open" and "link_close" tokens
**/

@@ -90,0 +93,0 @@ this.info = '';

{
"name": "markdown-it",
"version": "12.0.4",
"version": "12.0.5",
"description": "Markdown-it - modern pluggable markdown parser.",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc