Comparing version 0.1.9 to 0.2.0
@@ -247,2 +247,3 @@ /** | ||
type: 'html', | ||
pre: cap[1] === 'pre', | ||
text: cap[0] | ||
@@ -301,3 +302,3 @@ }); | ||
strong: /^__([^\0]+?)__(?!_)|^\*\*([^\0]+?)\*\*(?!\*)/, | ||
em: /^\b_([^\0]+?)_\b|^\*((?:\*\*|[^\0])+?)\*(?!\*)/, | ||
em: /^\b_((?:__|[^\0])+?)_\b|^\*((?:\*\*|[^\0])+?)\*(?!\*)/, | ||
code: /^(`+)([^\0]*?[^`])\1(?!`)/, | ||
@@ -565,3 +566,5 @@ br: /^ {2,}\n(?!\s*$)/, | ||
case 'html': { | ||
return inline.lexer(token.text); | ||
return !token.pre | ||
? inline.lexer(token.text) | ||
: token.text; | ||
} | ||
@@ -617,3 +620,3 @@ case 'paragraph': { | ||
.replace(/"/g, '"') | ||
.replace(/'/g, '''); | ||
.replace(/'/g, '''); | ||
}; | ||
@@ -620,0 +623,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"author": "Christopher Jeffrey", | ||
"version": "0.1.9", | ||
"version": "0.2.0", | ||
"main": "./lib/marked.js", | ||
@@ -13,5 +13,5 @@ "bin": "./bin/marked", | ||
"homepage": "https://github.com/chjj/marked", | ||
"bugs": "http://github.com/chjj/marked/issues", | ||
"bugs": { "url": "http://github.com/chjj/marked/issues" }, | ||
"keywords": [ "markdown", "markup", "html" ], | ||
"tags": [ "markdown", "markup", "html" ] | ||
} |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
21374
571
0