I'm updating a Python Django app that used an older version of misaka, which describes itself as a "CFFI-based binding for Hoedown, a fast markdown processing library." The relevant code in my Django app is the following:
render_flags=(misaka.HTML_SAFELINK)
But the misaka 2.0 documentation no longer shows that as a render flag option (the Django app throws an error as a result of it):
http://misaka.61924.nl/#html-render-flags
It seems that SAFELINK has been removed from hoedown itself. Apparently the purpose of HTML_SAFELINK was to only allow links to safe protocols.
It doesn't appear to me that there is a suitable replacement for HTML_SAFELINK out of the current misaka 2.0 and hoedown render flag options which are HTML_SKIP_HTML, HTML_ESCAPE, HTML_HARD_WRAP, and HTML_USE_XHTML.
Can I safely assume that the flag was pointless in the first place and that there's no real risk to leaving it out? Or is there another way in misaka/hoedown to block links to 'unsafe' protocols?