Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@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

Keywords

none

Install

npm i @timberio/smackdown

DownloadsWeekly Downloads

8

Version

0.0.3

License

MIT

Unpacked Size

20.5 kB

Total Files

12

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar