2.1.0 • Published 4 years ago

@mathshistory/bbcode-to-html v2.1.0

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

@mathshistory/bbcode-to-html

Command line utility to convert the Maths History site BBCode to HTML.


Installs two commands:

bbcode-to-html Takes input from stdin and writes the HTML to stdout

bbcode-to-html-server [port] Starts a http server on port, or 5002 if not specified, which takes in the BBCode input via POST to /, and sends back the HTML.


The input of both programs is the raw BBCode as a UTF-8 encoded string.

The output of them is a JSON serialized object, which has two attributes:

  • html: the generated HTML
  • links: an object of link mappings, that should be converted in Lektor and replaced in the html