Skip to content
Angelo Geels edited this page May 3, 2015 · 2 revisions

Provides document Markdown formatting walkers.

Functions

  • walkers:html(callback<string, HTMLWalker>, currentChapter = false) Walks along the document, creating HTML tags from the Markdown formatting codes, then for each chapter, calls the callback function with the resulting HTML.

Permissions

This library does not require any permissions.

Example

-- export the current chapter to html
walkers:html(function(html, walker)
  -- now we do something with html
  print(html)
end, true)
Clone this wiki locally