0.3.0 • Published 10 months ago

@rdub/next-markdown v0.3.0

Weekly downloads
-
License
-
Repository
gitlab
Last release
10 months ago

@rdub/next-markdown

Markdown utilities for Next.js

import Markdown, { MD } from '@rdub/next-markdown/md'

export default function Page() {
    return <div>
        <Markdown className={"foo"} content={`
            # Hello, world!
            Here is some [GitHub-flavored Markdown][GFMD],
            rendered with the \`Markdown\` component.

            ## Margins are stripped, by default
            Normally, 4 leading spaces denote a code block
            (similar to a triple-backtick line).

            [GFMD]: https://github.github.com/gfm/
        `}/>
        {MD(`
            ### \`MD\` function
            You can also pass a string directly to \`MD\`:

                MD("## Markdown!")
        `)}
    </div>
}

Example usage

0.1.0

1 year ago

0.3.0

10 months ago

0.2.0

1 year ago

0.1.1

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago