From d459dec09930c900e74ad26eef66d157a166d39c Mon Sep 17 00:00:00 2001 From: Waylon Flinn Date: Fri, 11 Mar 2016 08:03:17 -0600 Subject: [PATCH] how to set up the plugin --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index cebefe7..38985ec 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,13 @@ KaTeX is fast. This plugin makes it easy to support it in your markdown. npm install markdown-it-katex ``` +```javascript +var md = require('markdown-it')(), + mk = require('markdown-it-katex'); + +md.use(mk); +``` + Include the KaTeX stylesheet in your html: ```html