Mark::Renderer
Inherits Reference < Object
The markdown to HTML pipeline occurs here:
- reads markdown from source file(s)
- converts to HTML with template
- writes to target file
Example usage:
options = Mark::Options.new(["source.md"], {})
renderer = Mark::Renderer.new(options)
renderer.render
Constants
EXTENSIONS = ["table", "strikethrough", "autolink", "tagfilter", "tasklist"]
FRONTMATTER_HEAD = /^---\s*[\r\n]+/
FRONTMATTER_TAIL = /[\r\n]+---\s*[\r\n]+/
OPTIONS = ["unsafe"]
Constructors
new(opts : Options)
Instance methods
render
Reads markdown from source file(s). Writes HTML to target file.