solidjs-markdown
v0.2.0
Published
Markdown component for SolidJS
Downloads
8
Maintainers
Readme
solidjs-markdown
Solidjs component to render markdown.
Quick start
Notice: This package is ESM only.
Install it with node:
npm i solidjs-markdown
# or
yarn add solidjs-markdown
# or
pnpm add solidjs-markdown
In Deno with esm.sh
:
import SolidjsMarkdown from 'https://esm.sh/solidjs-markdown'
In broswer with esm.sh
<script type="module">
import SolidjsMarkdown from 'https://esm.sh/solidjs-markdown?bundle'
</script>
Usage
import SolidjsMarkdown from 'solidjs-markdown'
import { render } from 'solid-js/web'
render(() => <SolidjsMarkdown># Hello, *world*!</SolidjsMarkdown>, document.querySelector('#app'))
<h1>
Hello, <em>world</em>!
</h1>