@jiker/markdown-it
v3.1.2
Published
markdown-it in Jiker
Downloads
60
Keywords
Readme
@jiker/markdown-it
A Javascript Markdown to HTML converter.
Installation
npm install @jiker/markdown-it --save
Usage examples
引入 index.js
:
<div class="jiker-markdown-it"></div>
import MarkdownIt from "@jiker/markdown-it";
import "@jiker/markdown-it/styles/markdown-it.css";
const html = markdownIt("## md");
const jikerMarkdownIt = document.getElementsByClassName("jiker-markdown-it")[0];
jikerMarkdownIt.innerHTML = html;
引入 vue
组件:
<markdown-it :md="value"></markdown-it>
import MarkdownIt from "@jiker/markdown-it/MarkdownIt.vue";
export default {
components: {
MarkdownIt
},
data() {
return {
value: "## md"
};
}
};
Plugin list
- highlight.js
- markdown-it
- markdown-it-abbr
- markdown-it-container
- markdown-it-deflist
- markdown-it-emoji
- markdown-it-footnote
- markdown-it-ins
- markdown-it-katex
- markdown-it-mark
- markdown-it-sub
- markdown-it-sup
- markdown-it-task-lists