@mathshistory/bbcode-rules

1.3.0 • Public • Published

@mathshistory/bbcode-rules

A set of rules for serializing, deserializing and rendering the bbcodes used for the Maths History website.

Used in the slate editor and lektor plugin for the Maths History site.

KaTeX is used for math tags to serialize to HTML and render in the editor, and when using in a HTML page or in the editor, you'll need to include the KaTeX CSS to get it to display correctly.

import {
  HTML_RULES,
  BBCODE_RULES,
  BBCODE_TAGS,
  RENDER_BLOCK,
  RENDER_MARK,
  RENDER_INLINE
} from '@mathshistory/bbcode-rules'

Readme

Keywords

none

Package Sidebar

Install

npm i @mathshistory/bbcode-rules

Weekly Downloads

5

Version

1.3.0

License

MIT

Unpacked Size

32.9 kB

Total Files

8

Last publish

Collaborators

  • magneticdisk