Michael Howell
cd2477863f
Update to comply with spec 0.31.2
The spec update changes these things:
* It simplifies the HTML regex so that `<!-- a -- b -->` is an HTML
comment. HTML5 reports this as an error, but still parses it.
* It changes the set of known HTML block elements to match HTML5, adding
`search` and removing `source`.
* It adds Unicode Symbols to the set of punctuation characters that are
used to evaluate flankingness.
This commit also changes the declaration HTML regex to match lowercase,
even though that change was technically made in spec version 0.30.
9 months ago
Vitaly Puzrin
8b815a6072
lint: reduce empty lines
12 months ago
Vitaly Puzrin
5578e698af
Cleanup internal exports
12 months ago
Vitaly Puzrin
6cbb5b2233
Deps bump
12 months ago
Vitaly Puzrin
efc714f702
standard: more tweaks & simplify eslint config
12 months ago
Vitaly Puzrin
94177fca70
standard: spaces in comments
12 months ago
Vitaly Puzrin
9e7378775f
standard: init vars in separate declaration
12 months ago
Vitaly Puzrin
0eb4cb96a4
standard: space before function params
12 months ago
Vitaly Puzrin
d0219010ad
standard: remove semi
12 months ago
Vitaly Puzrin
88b8669c46
var => const, let
12 months ago
Vitaly Puzrin
e92e776411
Rewrite core to es6 modules
1 year ago
Matt Cowley
8470eb6706
chore: Update entities dependency ( #901 )
* Update entities package + usage
* Apply custom digital entity logic before entities decode
1 year ago
Alex Kocharin
6325878f9f
Multiple refactors
removed unused and duplicated variables
3 years ago
Alex Kocharin
d08c7c3897
Add an example related to case-insensitive comparisons
5 years ago
Vitaly Puzrin
c36309ef1c
Bump eslint & update CS
5 years ago
Alex Kocharin
7421ecce67
Improve normalization for reference label matching
Simple toUpperCase() does not work for various ligatures and legacy
characters that are already in a different upper case form.
See also:
278ea515fe
5 years ago
Vitaly Puzrin
760050edcb
eslint update & code cleanup
9 years ago
Alf Eaton
0a6ecd942b
Change variable name to remove reserved keyword
9 years ago
Alex Kocharin
b2aee1a978
Expand tabs only when it's needed, as per CommonMark 0.21
9 years ago
Vitaly Puzrin
e9ccf97a0b
Commented out unused `replaceEntities()`
10 years ago
Alex Kocharin
77e8b6cad0
Add configurable url normalizers
- md.normalizeLink
- md.normalizeLinkText
10 years ago
Alex Kocharin
31ce62ce80
Re-export uc.micro as md.utils.lib.ucmicro
10 years ago
Alex Kocharin
e0cfc6db4c
Re-export uc.micro and mdurl
10 years ago
Vitaly Puzrin
0732ac3bd6
Var rename & coverage improve
10 years ago
Alex Kocharin
b8af54ba8e
Use unescapeAll for links unescaping
10 years ago
Alex Kocharin
3264f17291
Use mdurl module instead of decodeURI+encodeURI
10 years ago
Vitaly Puzrin
7ade5e2ec5
Clarified isWhiteSpace()
10 years ago
Vitaly Puzrin
72371a85fe
Replaced unicode-7.0.0 with uc.micro to reduce size
10 years ago
Vitaly Puzrin
e61f9ccec4
Use punctuation re from unicode-7.0.0 & compacted html re
10 years ago
Vitaly Puzrin
e77666c4a0
moved normalizeReference to utils, closes #42
10 years ago
Vitaly Puzrin
da0e9c78a5
Added one more try/catch wrapper to normalizer, for safety
10 years ago
Vitaly Puzrin
47b71bae94
Fixed broken surrogates replacer
10 years ago
Vitaly Puzrin
c2312d971f
Fixed punctuation check in emphasis
10 years ago
Vitaly Puzrin
0fa09e9cd2
Fix surrogate pairs instead of processing encoder exceptions
10 years ago
Vitaly Puzrin
cef03effe3
Catch exception in link normalizer on broken unicode sequence
10 years ago
Vitaly Puzrin
e6315f3c6a
Fixed whitespace check helper
10 years ago
Vitaly Puzrin
63fb27ca5b
Added regexp escaper to utils
10 years ago
Vitaly Puzrin
e91ce3fa52
Unicode helpers for upcoming 0.15 update
10 years ago
Vitaly Puzrin
04ee60d3c4
Removed unused code & improved tests coverage for some rules.
10 years ago
Vitaly Puzrin
a5a04532df
Both helpers & utils are not in each instance of main parser
10 years ago
Vitaly Puzrin
4a34e7b742
Moved array element subst to utils
10 years ago
Vitaly Puzrin
761947f2fb
More safe properties check
10 years ago
Vitaly Puzrin
9c436cebc1
Moved html escape helper to utils
10 years ago
Vitaly Puzrin
26a22b182a
Fixed replaceEntities, default preset, improved coverage
10 years ago
Vitaly Puzrin
0de39dc5b7
Coverage improve
10 years ago
Vitaly Puzrin
8f909bcf33
Moved HTML escaping to renderer
10 years ago
Vitaly Puzrin
bc7b8e2f89
Perf: regex opts
10 years ago
Vitaly Puzrin
e259c99183
Fixed error in prev commit
10 years ago
Vitaly Puzrin
c45c345c6b
Perf: optimized html escape helper
10 years ago
Vitaly Puzrin
9b87c99abc
Reorganized parser configuration
10 years ago