(md)
| 9 | |
| 10 | // Render Markdown with imported marked compiler |
| 11 | function renderMarkdown(md) { |
| 12 | // TODO: add error handling and output sanitization |
| 13 | let settings = { |
| 14 | headerIds: true, |
| 15 | breaks: true, |
| 16 | }; |
| 17 | return marked(md, settings); |
| 18 | } |
| 19 | |
| 20 | // Render Math with Katex |
| 21 | function renderMath(math) { |