Browse Source

Clarified info about default disabled link schemas

pull/124/head
Vitaly Puzrin 10 years ago
parent
commit
cec9d91e3e
  1. 6
      lib/index.js

6
lib/index.js

@ -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')();

Loading…
Cancel
Save