0.8.0 • Published 8 months ago

@kamiapp/markdown v0.8.0

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

<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.