Skip to content

Commit

Permalink
[WIP] Refactor to remove regular expressions
Browse files Browse the repository at this point in the history
...in favour of an algorithmic approach.

*   [x] `yamlFrontMatter`
*   [x] `newline`
*   [x] `code`
*   [x] `horizontalRule`
*   [x] `escape`
*   [x] `deletion`
*   [x] `break`
*   [x] `inlineText`
*   [x] `fences`
*   [x] `heading`
*   [x] `lineHeading`
*   [ ] `blockquote`
*   [ ] `list`
*   [x] `html`
*   [x] `definition`
*   [x] `footnoteDefinition`
*   [ ] `looseTable`
*   [ ] `table`
*   [ ] `paragraph`
*   [x] `autoLink`
*   [x] `url`
*   [x] `tag`
*   [ ] `link`
*   [x] `reference`
*   [x] `shortcutReference`
*   [ ] `strong`
*   [x] `emphasis`
*   [x] `inlineCode`

Regressions (either todo or in the subsequent major release):

*   The strictness required by CommonMark for HTML comments is loosened;
*   Malformed HTML block elements are not supported.

[ci skip]
  • Loading branch information
wooorm committed Dec 5, 2015
1 parent 2f27616 commit f18ea5b
Show file tree
Hide file tree
Showing 9 changed files with 2,978 additions and 887 deletions.
2 changes: 1 addition & 1 deletion .jscs.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
"else"
],
"requireLineFeedAtFileEnd": true,
"maximumLineLength": 78,
"maximumLineLength": 79,
"requireCapitalizedConstructors": true,
"safeContextKeyword": "self",
"requireDotNotation": true,
Expand Down
20 changes: 0 additions & 20 deletions example.js

This file was deleted.

43 changes: 3 additions & 40 deletions lib/expressions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f18ea5b

Please sign in to comment.