Comparing version 0.2.24 to 0.2.25
@@ -37,2 +37,4 @@ Author: A noble spirit | ||
Add `<x, y>` at the end to provide width and height attributes! | ||
## HEADERS | ||
@@ -39,0 +41,0 @@ --------------- |
@@ -393,3 +393,3 @@ /** | ||
tag: /^<!--[^\0]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/, | ||
link: /^!?\[(inside)\]\(href\)/, | ||
link: /^!?\[(inside)\]\(href\)(<\d+,\s*\d+>)?/, | ||
reflink: /^!?\[(inside)\]\s*\[([^\]]*)\]/, | ||
@@ -689,2 +689,8 @@ nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/, | ||
} else { | ||
if (cap[4] !== undefined) { | ||
var dim = cap[4].split(","); | ||
var width = dim[0].slice(1); | ||
var height = dim[1].slice(0, dim[1].length - 1); | ||
} | ||
return '<img src="' | ||
@@ -700,3 +706,5 @@ + escape(link.href) | ||
: '') | ||
+ '>'; | ||
+ ' width="' + (width || '') | ||
+ '" height="' + (height || '') | ||
+ '">'; | ||
} | ||
@@ -752,3 +760,3 @@ } | ||
if (token.demo !== undefined) | ||
return '<textarea class="demo language-' + token.lang + '">' + token.text + '</textarea>'; | ||
return '<div class="demo language-' + token.lang + '">' + token.text + '</div>'; | ||
@@ -755,0 +763,0 @@ var pretag = '<pre>'; |
{ | ||
"name" : "namp", | ||
"version" : "0.2.24", | ||
"version" : "0.2.25", | ||
"description" : "Markdown parser for Node, with Maruku, GFM, and PHP Extras support, plus more. Based on marked.", | ||
@@ -5,0 +5,0 @@ "keywords" : [ "markdown", "maruku", "gfm", "text processing", "ast" ], |
# Introduction | ||
** IN THE MIDDLE OF A TRANSITION, NOT ALL FEATURES ARE FUNCITONAL YET ** | ||
This is **no**t **a**nother **m**arkdown **p**arser. | ||
@@ -11,4 +9,2 @@ | ||
* [The GitHub Flavored Markdown syntax](http://github.github.com/github-flavored-markdown/) (including language-specific codeblock fences) | ||
* [The PHP Markdown Extra syntax](http://michelf.com/projects/php-markdown/extra/) (**NOT YET SUPPORTED**) | ||
* Supports [Maruku metadata](http://maruku.rubyforge.org/maruku.html#meta) (**NOT YET SUPPORTED**) | ||
@@ -30,2 +26,3 @@ It also does some "non-traditional" work, too, that I find pretty damn useful: | ||
* Markdown wrapped in `<div marked="1">` is processed. | ||
* Width and height attributes can be added to images with `<x, y>` | ||
@@ -32,0 +29,0 @@ namp was forked from [marked](https://github.com/chjj/marked), which is a super-fast Markdown parser that handles all the standard GFM syntax. |
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
262160
1157
197