OC-mdbrowser/README.md

509 B

mdbrowser

A markdown FRequest browser for OpenComputers.

mdparse

mdparse is the Markdown parsing library used for mdbrowser. It works under standard Lua as well as OpenComputers.

  • mdparse.parse(text:string): - table Parses text into a table of tables. Each table should contain a .contents string, and if it is a link, then an .address string.
  • mdparse.reflow(text:string, linewidth:number): table, table - Returns a table of formatted lines, and a table of links, as {x, y, label, address}.