ozmo-react
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Ozmo compiler

Ozmo markup language compiler

Main repository

import Ozmo from 'ozmo-react'
import React from 'react'

const config = {
  components: {
    code: props => <Code language={props.args[0]}>{props.children}</Code>,
    h1: props => <h1>{props.args.join(' ')}</h1>,
    image: props => <img src={props.args[0]} />,
  },
  container: p => <div {...p}>{p.children}</div>,
}

const Component = ({ content }) => (
  <Ozmo content={content} config={config}></Ozmo>
)

export default Component

Readme

Keywords

Package Sidebar

Install

npm i ozmo-react

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

8.8 kB

Total Files

9

Last publish

Collaborators

  • hugo_s29