solidjs-markdown
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

solidjs-markdown

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'))
Show equivalent JSX
<h1>
  Hello, <em>world</em>!
</h1>

License

MIT © enpitsuLin

Package Sidebar

Install

npm i solidjs-markdown

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

183 kB

Total Files

7

Last publish

Collaborators

  • enpitsulin