Skip to content

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
developit committed Feb 27, 2017
1 parent 8dda819 commit 39935fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "snarkdown",
"description": "Transform Markdown into HTML.",
"version": "1.1.0",
"version": "1.2.0",
"main": "dist/snarkdown.js",
"module": "dist/snarkdown.es.js",
"jsnext:main": "dist/snarkdown.es.js",
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function encodeAttr(str) {
return (str+'').replace(/"/g, '"');
}

/** Parse Markdown into an HTML String. */
export default function parse(md) {
let tokenizer = /(\n(?:\n---+|\* \*(?: \*)+)\n)|(?:^```(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:\!\[([^\]]*?)\]\(([^\)]+?)\))|(\[)|(\](?:\(([^\)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(\-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,3})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*])/gm,
context = [],
Expand Down

0 comments on commit 39935fe

Please sign in to comment.