Stencil Markdown to HTML Component
npm install @pdestrais/mdtohtmlThis stencil markdowntohtml component will render a markdown text to HTML. It is based on marked.
Simply include the component into html code like any other HTML tag. Use the 'content' attribute to pass the markdown text to be rendered into HTML.
Example :
``bash`Using this component
- Publish to NPM
- Put a script tag similar to this in the head of your index.html
- Put a script tag similar to this in the head of your index.html$3
- Run npm install markdowntohtml-component --save
- Add an import to the npm packages import markdowntohtml-component;$3
You can then use the element anywhere in your template, JSX, html etc
Simply include the component into html code like any other HTML tag. Use the 'content' attribute to pass the markdown text to be rendered into HTML.Example :
`bash
This stencil markdown component will render a markdown text to HTML. It is based on marked.">
``