Vitaly Puzrin
5578e698af
Cleanup internal exports
1 year ago
Vitaly Puzrin
6cbb5b2233
Deps bump
1 year ago
Vitaly Puzrin
efc714f702
standard: more tweaks & simplify eslint config
1 year ago
Vitaly Puzrin
94177fca70
standard: spaces in comments
1 year ago
Vitaly Puzrin
7dfcf69b71
standard: no spaces near array brackets
1 year ago
Vitaly Puzrin
0eb4cb96a4
standard: space before function params
1 year ago
Vitaly Puzrin
d0219010ad
standard: remove semi
1 year ago
Vitaly Puzrin
88b8669c46
var => const, let
1 year ago
Vitaly Puzrin
737c95a129
Fix demo build
1 year ago
Vitaly Puzrin
e92e776411
Rewrite core to es6 modules
1 year ago
Vitaly Puzrin
beed9aee2c
punycode: switch to userland package
- Closes #967 , #969 , #513
1 year ago
Brian Morearty
91c115d87b
Moved `hljs` class to `<code>` from `<pre>`. ( #913 )
In this change set I am changing the guidance in the README
and in comments to put the class on the correct tag: `<code>`, not `<pre>`.
If you put the `hljs` class on `<pre>`, syntax highlighting
does not use the correct padding.
You can see from the default CSS stylesheet in the highlight.js
repo that the `hljs` tag is expected to be on the `<code>` tag:
84719c17a5/src/styles/default.css (L17-L25)
All the official highlight.js examples have the `hljs` class on `<code>`:
https://highlightjs.org/static/demo/
1 year ago
Vitaly Puzrin
064d602c68
Updated highlight.js usage info
- Ref #779
4 years ago
Vitaly Puzrin
564de6b249
Deps bump & related updates
4 years ago
Alex Kocharin
f156ed1bff
Don't decode %25 in beautified urls
fix https://github.com/markdown-it/markdown-it/issues/720
4 years ago
Philipp_Lypniakov
5c1e80aa26
Fix typos
5 years ago
Vitaly Puzrin
c9199b582d
Better error message for bad input type, close #324
8 years ago
Alex Kocharin
f5a06ec0b6
Make link/image/reference helpers overridable
8 years ago
Sean Lang
86eea8c1d3
fix misspelling of "parser"
9 years ago
Vitaly Puzrin
c6d6709c63
Demo: updated highlighter options for explicit langs
9 years ago
Vitaly Puzrin
6d4f8a0b88
typo fix
9 years ago
Vitaly Puzrin
6371151253
Doc fix
9 years ago
Vitaly Puzrin
87ece24ff9
Allow full content override from highlighter
9 years ago
Alex Kocharin
378ac9074e
Change emphasis parsing algorithm
Tokenize first, and replace tokens with emphasis tags on
a second pass using an algorithm close to one used in CM.
9 years ago
Thomas Reggi
7a888ec9a2
typo for for*
9 years ago
Vitaly Puzrin
bf424c8a49
deps update, configs & code cleanup
9 years ago
Alex Kocharin
a7b2b3b4e8
Add multichar replacements in smartquotes
fix #115
10 years ago
Vitaly Puzrin
2bc103844c
lint fix
10 years ago
Vitaly Puzrin
cec9d91e3e
Clarified info about default disabled link schemas
10 years ago
Vitaly Puzrin
e92f99640f
Added security info
10 years ago
Vitaly Puzrin
6c57f7f792
Fixed regexes in prev commit (should match strings from the start only)
10 years ago
Vitaly Puzrin
0db98f7b4a
Simplified links validator - use regexes
10 years ago
Vitaly Puzrin
f76d3beb46
Disabled data URIs (allow only some whitelisted images)
10 years ago
Alex Kocharin
b91a56dac2
Fix ndoc comments
10 years ago
Alex Kocharin
b05bfd6e8b
Punycode domain names only in known schemas
In urls like `skype:XXX` it prevents XXX to be parsed as domain
name and encoded with punycode.
10 years ago
Alex Kocharin
2a66fb8fbf
Remove replaceEntities from validateLink
Entities will usually be replaced with unescapeAll before they
go through the validator.
10 years ago
Alex Kocharin
7037ee34ad
Add tests for normalization functions
10 years ago
Alex Kocharin
77e8b6cad0
Add configurable url normalizers
- md.normalizeLink
- md.normalizeLinkText
10 years ago
Vitaly Puzrin
18d80c6f0b
Moved validateLink() to root class
10 years ago
Vitaly Puzrin
e4b59586b6
Doc fix, closes #64
10 years ago
Vitaly Puzrin
9159018e2a
Replaced `autolinker` with `linkify-it`, closes #2
10 years ago
Vitaly Puzrin
c30054fc3a
Improved preset name error reporting
10 years ago
Vitaly Puzrin
0c7086f51f
changelog & apidoc update
10 years ago
Vitaly Puzrin
9783b530db
Added to top enable/disable methods & errors throw
10 years ago
Vitaly Puzrin
79b11bc564
Removed 'full' preset - not needed anymore
10 years ago
Vitaly Puzrin
a66e29f8d0
Place md link to states and remove other aliases
10 years ago
Vitaly Puzrin
b72c838269
docs update
10 years ago
Vitaly Puzrin
f6b926b11b
Pass any number of options to plugin
10 years ago
Vitaly Puzrin
0beeb57379
More cross references in doc
10 years ago
Vitaly Puzrin
27ace2d89e
Readme cleanup - refer to API docs where possible
10 years ago