1.2.0 • Published 2 years ago

solidown v1.2.0

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
2 years ago

Solidown

A high performance markdown component for SolidJS

Installation

npm i solidown

Usage & Examples

import Solidown from "solidown"

// simple markdown renderer
<Solidown>
# Test
**bold *and italic***
</Solidown>

// rendering from URL
<Solidown src="https://raw.githubusercontent.com/yellowsink/solidown/master/README.md" />

// with custom loading text
<Solidown
    src=""
    loading="Grabbing markdown, pls wait..."
    />

// with custom loading DOM (using tailwind here to make styles simpler but thats unrelated)
<Solidown
    src=""
    loading={(
        <div class="text-4xl text-center italic">Loading</div>
    )}
    />

// with extra styles
<Solidown
    css={`
        #solidown-markdown-root h1 {
            text-decoration-line: underline;
        }
    `}>
# Test
**bold *and italic***
</Solidown>
1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago