From cec9d91e3e386be37fa5abccac51647ec01ae894 Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Sat, 30 May 2015 02:13:54 +0300 Subject: [PATCH] Clarified info about default disabled link schemas --- lib/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 7c6c9a6..482a7c5 100644 --- a/lib/index.js +++ b/lib/index.js @@ -273,8 +273,10 @@ function MarkdownIt(presetName, options) { * MarkdownIt#validateLink(url) -> Boolean * * Link validation function. CommonMark allows too much in links. By default - * we disable `javascript:` and `vbscript:` schemas. You can change this - * behaviour. + * we disable `javascript:`, `vbscript:`, `file:` schemas, and almost all `data:...` schemas + * except some embedded image types. + * + * You can change this behaviour: * * ```javascript * var md = require('markdown-it')();