@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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    1
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i @timberio/smackdown

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

20.5 kB

Total Files

12

Last publish

Collaborators

  • zsherman