commonmark
Advanced tools
Comparing version 0.21.0 to 0.22.0
@@ -0,1 +1,26 @@ | ||
[0.22.0] | ||
* Added `iframe` to whitelist of HTML block tags (as per spec). | ||
* Removed `pre` from rule 6 of html blocks (see jgm/CommonMark#355). | ||
* Fixed logic error in calculation of offset. Here's a test case this | ||
fixes: | ||
``` | ||
% echo -en "1. \t\tthere" | bin/commonmark | ||
<ol> | ||
<li> | ||
<pre><code>ere | ||
</code></pre> | ||
</li> | ||
</ol> | ||
``` | ||
* Disallow list item starting with multiple blank lines | ||
(jgm/CommonMark#332). | ||
* Fixed bug in list-start parser (#60). | ||
* Changed smart quote algorithm to agree with cmark (#61). The change only | ||
involves double quotes, which now need to be both left flanking and | ||
not right flanking to count as "can open." | ||
* Fix replacement of multiple apostrophes in the same paragraph with | ||
`--smart` (Brandon Frohs). | ||
* `make bench`: renice to -10 rather than 99. | ||
[0.21.0] | ||
@@ -2,0 +27,0 @@ |
{ | ||
"name": "jquery", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"main": "dist/jquery.js", | ||
@@ -9,2 +9,3 @@ "license": "MIT", | ||
"build", | ||
"dist/cdn", | ||
"speed", | ||
@@ -29,12 +30,12 @@ "test", | ||
"homepage": "https://github.com/jquery/jquery", | ||
"_release": "2.1.3", | ||
"_release": "2.1.4", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "2.1.3", | ||
"commit": "8f2a9d9272d6ed7f32d3a484740ab342c02541e0" | ||
"tag": "2.1.4", | ||
"commit": "7751e69b615c6eca6f783a81e292a55725af6b85" | ||
}, | ||
"_source": "git://github.com/jquery/jquery.git", | ||
"_target": "~2.1.3", | ||
"_target": "~2.1.4", | ||
"_originalSource": "jquery", | ||
"_direct": true | ||
} |
{ | ||
"name": "jquery", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"main": "dist/jquery.js", | ||
@@ -9,2 +9,3 @@ "license": "MIT", | ||
"build", | ||
"dist/cdn", | ||
"speed", | ||
@@ -11,0 +12,0 @@ "test", |
@@ -481,3 +481,8 @@ define([ | ||
function isArraylike( obj ) { | ||
var length = obj.length, | ||
// Support: iOS 8.2 (not reproducible in simulator) | ||
// `in` check used to prevent JIT error (gh-2145) | ||
// hasOwn isn't used here due to false negatives | ||
// regarding Nodelist length in IE | ||
var length = "length" in obj && obj.length, | ||
type = jQuery.type( obj ); | ||
@@ -484,0 +489,0 @@ |
@@ -25,3 +25,3 @@ "use strict"; | ||
/^<!\[CDATA\[/, | ||
/^<[/]?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|head|header|hr|html|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|pre|section|source|title|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)/i, | ||
/^<[/]?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h1|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|title|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)/i, | ||
new RegExp('^(?:' + OPENTAG + '|' + CLOSETAG + ')\s*$', 'i') | ||
@@ -258,3 +258,3 @@ ]; | ||
continue: function(parser, container) { | ||
if (parser.blank) { | ||
if (parser.blank && container._firstChild !== null) { | ||
parser.advanceNextNonspace(); | ||
@@ -508,7 +508,5 @@ } else if (parser.indent >= | ||
if ((data = parseListMarker(parser.currentLine, | ||
parser.nextNonspace, parser.indent))) { | ||
parser.nextNonspace, parser.indent)) && | ||
(!parser.indented || container.type === 'List')) { | ||
parser.closeUnmatchedBlocks(); | ||
if (parser.indented && parser.tip.type !== 'List') { | ||
return 0; | ||
} | ||
parser.advanceNextNonspace(); | ||
@@ -559,3 +557,3 @@ // recalculate data.padding, taking into account tabs: | ||
if (currentLine[this.offset + i] === '\t') { | ||
cols += (4 - (this.column % 4)); | ||
cols += (4 - ((this.column + cols) % 4)); | ||
} else { | ||
@@ -562,0 +560,0 @@ cols += 1; |
@@ -268,2 +268,5 @@ "use strict"; | ||
(!left_flanking || after_is_punctuation); | ||
} else if (cc === C_SINGLEQUOTE || cc === C_DOUBLEQUOTE) { | ||
can_open = left_flanking && !right_flanking; | ||
can_close = right_flanking; | ||
} else { | ||
@@ -270,0 +273,0 @@ can_open = left_flanking; |
{ "name": "commonmark", | ||
"description": "a strongly specified, highly compatible variant of Markdown", | ||
"version": "0.21.0", | ||
"version": "0.22.0", | ||
"homepage": "http://commonmark.org", | ||
@@ -5,0 +5,0 @@ "keywords": |
@@ -61,2 +61,10 @@ ## Smart punctuation | ||
Multiple apostrophes should not be marked as open/closing quotes. | ||
. | ||
'We'll use Jane's boat and John's truck,' Jenna said. | ||
. | ||
<p>‘We’ll use Jane’s boat and John’s truck,’ Jenna said.</p> | ||
. | ||
An unmatched double quote will be interpreted as a | ||
@@ -63,0 +71,0 @@ left double quote, to facilitate this style: |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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 not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
5169133
359
64980
4
30
10