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 4.1.0 to 4.1.1

6

CHANGELOG.md

@@ -0,1 +1,7 @@

4.1.1 / 2015-04-15
------------------
- Improved pipe chars support in table cells, #86 (thanks to @jbt).
4.1.0 / 2015-03-31

@@ -2,0 +8,0 @@ ------------------

2

lib/ruler.js

@@ -228,3 +228,3 @@ /**

*
* md.core.ruler.push('emphasis', 'my_rule', function replace(state) {
* md.core.ruler.push('my_rule', function replace(state) {
* //...

@@ -231,0 +231,0 @@ * });

@@ -19,3 +19,5 @@ // GFM table, non-standard

escapes = 0,
lastPos = 0;
lastPos = 0,
backTicked = false,
lastBackTick = 0;

@@ -25,3 +27,6 @@ ch = str.charCodeAt(pos);

while (pos < max) {
if (ch === 0x7c/* | */ && (escapes % 2 === 0)) {
if (ch === 0x60/* ` */ && (escapes % 2 === 0)) {
backTicked = !backTicked;
lastBackTick = pos;
} else if (ch === 0x7c/* | */ && (escapes % 2 === 0) && !backTicked) {
result.push(str.substring(lastPos, pos));

@@ -35,3 +40,12 @@ lastPos = pos + 1;

ch = str.charCodeAt(++pos);
pos++;
// If there was an un-closed backtick, go back to just after
// the last backtick, but as if it was a normal character
if (pos === max && backTicked) {
backTicked = false;
pos = lastBackTick + 1;
}
ch = str.charCodeAt(pos);
}

@@ -38,0 +52,0 @@

{
"name": "markdown-it",
"version": "4.1.0",
"version": "4.1.1",
"description": "Markdown-it - modern pluggable markdown parser.",

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

@@ -12,7 +12,5 @@ # markdown-it

__v4.+ changed internals! Plugins need update. See [migration details](https://github.com/markdown-it/markdown-it/blob/master/docs/4.0_migration.md)__
- Supports the CommonMark spec + syntax extensions + sugar (URL autolinking, typographer).
- Follows the __[CommonMark spec](http://spec.commonmark.org/)__ + adds syntax extensions & sugar (URL autolinking, typographer).
- Configurable syntax! You can add new rules and even replace existing ones.
- High speed!
- High speed.
- Community-written __[plugins](https://www.npmjs.org/browse/keyword/markdown-it-plugin)__ and [other packages](https://www.npmjs.org/browse/keyword/markdown-it) on npm.

@@ -19,0 +17,0 @@

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