|
@ -273,8 +273,10 @@ function MarkdownIt(presetName, options) { |
|
|
* MarkdownIt#validateLink(url) -> Boolean |
|
|
* MarkdownIt#validateLink(url) -> Boolean |
|
|
* |
|
|
* |
|
|
* Link validation function. CommonMark allows too much in links. By default |
|
|
* Link validation function. CommonMark allows too much in links. By default |
|
|
* we disable `javascript:` and `vbscript:` schemas. You can change this |
|
|
* we disable `javascript:`, `vbscript:`, `file:` schemas, and almost all `data:...` schemas |
|
|
* behaviour. |
|
|
* except some embedded image types. |
|
|
|
|
|
* |
|
|
|
|
|
* You can change this behaviour: |
|
|
* |
|
|
* |
|
|
* ```javascript
|
|
|
* ```javascript
|
|
|
* var md = require('markdown-it')(); |
|
|
* var md = require('markdown-it')(); |
|
|