Markdown browser for OpenComputers.
Go to file
2018-06-21 00:02:16 +10:00
mdparse.lua added the label to mdparse.reflow, added a README 2018-06-17 15:24:54 +10:00
mdptest.lua replaced the test text 2018-06-21 00:02:16 +10:00
README.md added the label to mdparse.reflow, added a README 2018-06-17 15:24:54 +10:00

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}.