diff --git a/README.md b/README.md index 159fc0f9151bb53f81b13d613d7c2687b1b998de..268a35957998a2b78c0d46cc4ba3309b6a9be8ca 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ md.use(mk); Include the KaTeX stylesheet in your html: ```html -<link rel="stylesheet"href="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min.css"> +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css"> ``` If you're using the default markdown-it parser, I also recommend the github stylesheet: diff --git a/index.html b/index.html index a8a35755d3fe31093cfcb002d73edc98a28d4d50..5c3012398def7aa5fe0ad76157f1b52fc13a5f80 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ <!DOCTYPE html> <head> - <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.3.0/katex.min.css"> - <link rel="stylesheet" href="github-markdown.css"> + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css"> + <link rel="stylesheet" href="./github-markdown.css"/> <style> #input { display: block; @@ -14,7 +14,17 @@ </style> </head> <body> - <textarea id="input" type="textarea" rows=10, cols=80>$\sqrt{3x-1}+(1+x)^2$</textarea> + <textarea id="input" type="textarea" rows=10, cols=80> +# Maxwell's Equations + + +equation | description +----------|------------ +$\nabla \cdot \vec{\mathbf{B}} = 0$ | divergence of $\vec{\mathbf{B}}$ is zero +$\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} = \vec{\mathbf{0}}$ | curl of $\vec{\mathbf{E}}$ is proportional to the rate of change of $\vec{\mathbf{B}}$ +$\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} = \frac{4\pi}{c}\vec{\mathbf{j}} \nabla \cdot \vec{\mathbf{E}} = 4 \pi \rho$ | wha? + +</textarea> <button id="button">Mathdown!</button> <div id="output" class="markdown-body"></div> <script src="./bundle.js"></script> diff --git a/package.json b/package.json index 8729be7c3768abdf7b84ffd24fdc94c669ce8afa..8b76f31ce31dfb104a727c7a8f4a0610aa468865 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "markdown-it-katex", - "version": "1.0.4", + "version": "1.0.5", "description": "Easy KaTeX support for markdown-it ", "main": "index.js", "scripts": {