@kamiapp/markdown
v0.8.0
Published
Convert markdown in html using [markdown-it](https://github.com/markdown-it/markdown-it). This component is inspirated by this two components [wc-markdown](https://github.com/vanillawc/wc-markdown) and [zero-md](https://github.com/zerodevx/zero-md). Like
Downloads
5
Readme
<kami-markdown>
Convert markdown in html using markdown-it.
This component is inspirated by this two components wc-markdown and zero-md.
Like all other elements of this collection kami-markdown
support light and dark theme.
Usage
Install the component using npm
or yarn
or pnpm
:
$ npm install --save @kamiapp/markdown
Import the component into your main js/ts file :
import '@kamiapp/markdown';
And use the component directly into your html :
<kami-markdown>
<script type="text/markdown">
# H1
## H2
### H3
#### H4
##### H5
</script>
</kami-markdown>
Documentation
To get more informations about this component you can go to the kami-markdown section into the kami collection site web. See the documentation at collection.kamiapp.fr to get more information about how to use each components. You will also find a playground section to test all components.