Browse Source

Fixed linkifier priority, closes #66

pull/82/head
Vitaly Puzrin 10 years ago
parent
commit
ec41824b23
  1. 4
      lib/parser_core.js
  2. 8
      test/fixtures/markdown-it/linkify.txt

4
lib/parser_core.js

@ -14,9 +14,9 @@ var _rules = [
[ 'normalize', require('./rules_core/normalize') ],
[ 'block', require('./rules_core/block') ],
[ 'inline', require('./rules_core/inline') ],
[ 'linkify', require('./rules_core/linkify') ],
[ 'replacements', require('./rules_core/replacements') ],
[ 'smartquotes', require('./rules_core/smartquotes') ],
[ 'linkify', require('./rules_core/linkify') ]
[ 'smartquotes', require('./rules_core/smartquotes') ]
];

8
test/fixtures/markdown-it/linkify.txt

@ -47,3 +47,11 @@ mailto:test@example.com
<p><a href="mailto:test@example.com">test@example.com</a></p>
<p><a href="mailto:test@example.com">mailto:test@example.com</a></p>
.
typorgapher should not break href
.
http://example.com/(c)
.
<p><a href="http://example.com/(c)">http://example.com/©</a></p>
.

Loading…
Cancel
Save