1.3.0 • Published 4 years ago

@mathshistory/bbcode-rules v1.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

@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'