commonmark
Advanced tools
Comparing version 0.23.0 to 0.24.0
@@ -0,1 +1,15 @@ | ||
[0.24.0] | ||
* [API change] Added version. | ||
* Added `--version` to cli program. | ||
* Updated spec.txt to 0.24. | ||
* Updated test runner to new spec format. | ||
* Allow multiline setext header content. | ||
* Don't allow spaces in link destinations, even in `<>`. | ||
* Updated recognizer for absolute URIs... | ||
We no longer use a whitelist of valid schemes. | ||
* Remove unused variable `markerStartCol` (Nik Nyby). | ||
* Fix inaccurate comment about `closeUnmatchedBlocks` (Nik Nyby). | ||
This function is void, and doesn't return true. | ||
[0.23.0] | ||
@@ -2,0 +16,0 @@ |
@@ -145,3 +145,2 @@ "use strict"; | ||
var nextc; | ||
var markerStartCol; | ||
var spacesStartCol; | ||
@@ -175,3 +174,2 @@ var spacesStartOffset; | ||
parser.advanceNextNonspace(); // to start of marker | ||
markerStartCol = parser.column; | ||
parser.advanceOffset(match[0].length, true); // to end of marker | ||
@@ -211,3 +209,3 @@ spacesStartCol = parser.column; | ||
// Finalize and close any unmatched blocks. Returns true. | ||
// Finalize and close any unmatched blocks. | ||
var closeUnmatchedBlocks = function() { | ||
@@ -499,4 +497,2 @@ if (!this.allClosed) { | ||
container.type === 'Paragraph' && | ||
(container._string_content.indexOf('\n') === | ||
container._string_content.length - 1) && | ||
((match = parser.currentLine.slice(parser.nextNonspace).match(reSetextHeadingLine)))) { | ||
@@ -503,0 +499,0 @@ parser.closeUnmatchedBlocks(); |
@@ -14,2 +14,3 @@ "use strict"; | ||
module.exports.version = '0.24.0' | ||
module.exports.Node = require('./node'); | ||
@@ -16,0 +17,0 @@ module.exports.Parser = require('./blocks'); |
@@ -51,3 +51,3 @@ "use strict"; | ||
var reLinkDestinationBraces = new RegExp( | ||
'^(?:[<](?:[^<>\\n\\\\\\x00]' + '|' + ESCAPED_CHAR + '|' + '\\\\)*[>])'); | ||
'^(?:[<](?:[^ <>\\t\\n\\\\\\x00]' + '|' + ESCAPED_CHAR + '|' + '\\\\)*[>])'); | ||
@@ -71,3 +71,3 @@ var reLinkDestination = new RegExp( | ||
var reAutolink = /^<(?:coap|doi|javascript|aaa|aaas|about|acap|cap|cid|crid|data|dav|dict|dns|file|ftp|geo|go|gopher|h323|http|https|iax|icap|im|imap|info|ipp|iris|iris.beep|iris.xpc|iris.xpcs|iris.lwz|ldap|mailto|mid|msrp|msrps|mtqp|mupdate|news|nfs|ni|nih|nntp|opaquelocktoken|pop|pres|rtsp|service|session|shttp|sieve|sip|sips|sms|snmp|soap.beep|soap.beeps|tag|tel|telnet|tftp|thismessage|tn3270|tip|tv|urn|vemmi|ws|wss|xcon|xcon-userid|xmlrpc.beep|xmlrpc.beeps|xmpp|z39.50r|z39.50s|adiumxtra|afp|afs|aim|apt|attachment|aw|beshare|bitcoin|bolo|callto|chrome|chrome-extension|com-eventbrite-attendee|content|cvs|dlna-playsingle|dlna-playcontainer|dtn|dvb|ed2k|facetime|feed|finger|fish|gg|git|gizmoproject|gtalk|hcp|icon|ipn|irc|irc6|ircs|itms|jar|jms|keyparc|lastfm|ldaps|magnet|maps|market|message|mms|ms-help|msnim|mumble|mvn|notes|oid|palm|paparazzi|platform|proxy|psyc|query|res|resource|rmi|rsync|rtmp|secondlife|sftp|sgn|skype|smb|soldat|spotify|ssh|steam|svn|teamspeak|things|udp|unreal|ut2004|ventrilo|view-source|webcal|wtai|wyciwyg|xfire|xri|ymsgr):[^<>\x00-\x20]*>/i; | ||
var reAutolink = /^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i; | ||
@@ -74,0 +74,0 @@ var reSpnl = /^ *(?:\n *)?/; |
{ "name": "commonmark", | ||
"description": "a strongly specified, highly compatible variant of Markdown", | ||
"version": "0.23.0", | ||
"version": "0.24.0", | ||
"homepage": "http://commonmark.org", | ||
@@ -5,0 +5,0 @@ "keywords": |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
414295
6008