A relative url (no scheme, e.g. `path`, `/path`, `//host/path`) is always considered safe.
An absolute url is only safe if its scheme is in `MMO.core.markdown.SAFE_URL_SCHEMES` (blocks `javascript:`, `data:`, ...).
url
string
base
string
the base url. Empty means "resolve against the page showing the markdown"
returns
string|boolean
the url to link to, or false when it cannot safely be linked
- {int} headerLevel: header's level (default 1) - {int} tabSpace: tabulation space length (default 2). - {string} baseurl: the base url for relative link
inline = false
addParagraph = true
refs = null
?Object
used internally to carry collected [id]: url "title" reference definitions through recursive calls. Leave it to its default: it is (re)collected once, at the top-level call.