• RawKStar77's avatar
    Add KaTex math rendering · 5b82eb97
    RawKStar77 authored
    Add KaTex javascript, CSS, and fonts to vendor folder.
    
    Create a renderMath() function that parses sanitized markdown for math as denoted by '$$'
    
    Modify ctrl.$render to first sanitize the markdown and then renderMath. Newly rendered
    math is then trusted as HTML becuase otherwise ngSanatize removes crucial style attributes
    that leave the math unreadable.
    5b82eb97
markdown.coffee 11.5 KB