@timberio/smackdown

0.0.3 • Public • Published

Installation

yarn add @timberio/smackdown

Usage

import javascript from 'react-syntax-highlighter/languages/prism/javascript'
import { duotoneLight } from 'react-syntax-highlighter/styles/prism'
import { Markdown, registerPrism } from '@timberio/smackdown'

// Register the required languages
registerPrism('javascript', javascript)

const syntax = {
  lineNumbers: true,
  theme: duotoneLight,
  renderer: 'prism'
}

// Render in React
<Markdown
  source="# Some markdown stuff"
  syntax={syntax}
/>

Demos & Storybook

https://smackdown.netlify.com

Dependents (0)

Package Sidebar

Install

npm i @timberio/smackdown

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

20.5 kB

Total Files

12

Last publish

Collaborators

  • zsherman