Skip to content

Commit

Permalink
Refactor support for entities
Browse files Browse the repository at this point in the history
Previously, entities were decoded among their surrounding characters
in text nodes.  This produced some caveats, which can be seen in
get-alex/atom-linter-alex#4.

This update adds decoded entities as their own separate text nodes, and
additionally adds support for warning messages relating to errors in
these entities.

For example, `&copy` is valid HTML (and Markdown) but produces a
Parse Error, which in **mdast** results in a message on the VFile.

See wooorm/parse-entities for more information.

Closes GH-66.
Closes get-alex/atom-linter-alex#4
  • Loading branch information
wooorm committed Dec 23, 2015
1 parent 3dc2485 commit 0c7b649
Show file tree
Hide file tree
Showing 51 changed files with 15,425 additions and 432 deletions.
2 changes: 2 additions & 0 deletions component.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"mathiasbynens/he": "^0.5.0",
"wooorm/longest-streak": "^1.0.0",
"wooorm/markdown-table": "^0.4.0",
"wooorm/parse-entities": "^1.0.0",
"jonschlinkert/repeat-string": "^1.5.2",
"wooorm/stringify-entities": "^1.0.0",
"component/trim": "^0.0.1",
"wooorm/trim-trailing-lines": "^1.0.0",
"wooorm/unified": "^2.0.0"
Expand Down
Loading

0 comments on commit 0c7b649

Please sign in to comment.