Skip to content
  • John MacFarlane's avatar
    Make rendering safe by default. · 325a1471
    John MacFarlane authored
    Removes CMARK_OPT_SAFE from options.
    
    Adds CMARK_OPT_UNSAFE, with the opposite meaning.
    The new default behavior is to suppress raw HTML and
    potentially dangerous links.  The CMARK_OPT_UNSAFE
    option has to be set explicitly to prevent this.
    
    --------------------------------------------------------
    NOTE: This change will require modifications in
    bindings for cmark and in most libraries and programs
    that use cmark.
    --------------------------------------------------------
    
    Closes #239, #273.
    
    Borrows heavily from @kivikakk's patch in github/cmark-gfm#123.
    325a1471