miaolz123 / vue-markdown

A Powerful and Highspeed Markdown Parser for Vue
https://miaolz123.github.io/vue-markdown/
MIT License
1.89k stars 257 forks source link

Ability to use KaTeX #12

Closed brianbancroft closed 7 years ago

brianbancroft commented 7 years ago

Hi, this is in relation to https://github.com/miaolz123/vue-markdown/issues/7

I've included the markdown-it-katex library in the Webpack file - [link] (https://www.npmjs.com/package/markdown-it-katex)

In order for it to work, you need to include the following spreadsheets as indicated by the markdown-it-katex library instructions

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/github-markdown-css/2.2.1/github-markdown.css"/>

miaolz123 commented 7 years ago

@brianbancroft

This is really a good news for me because this issue has been shelved for a long time.

I will test and merge this PR as soon as possible.

Thx again ~