class Mark::Renderer

Overview

The markdown to HTML pipeline occurs here:

  1. reads markdown from source file(s)
  2. converts to HTML with template
  3. writes to target file

Example usage:

options = Mark::Options.new(["source.md"], {})
renderer = Mark::Renderer.new(options)
renderer.render

Defined in:

mark/renderer.cr

Constant Summary

EXTENSIONS = ["table", "strikethrough", "autolink", "tagfilter", "tasklist"]
FRONTMATTER_HEAD = /^---\s*[\r\n]+/
FRONTMATTER_TAIL = /[\r\n]+---\s*[\r\n]+/
OPTIONS = ["unsafe"]

Constructors

Instance Method Summary

Constructor Detail

def self.new(opts : Options) #

[View source]

Instance Method Detail

def render #

Reads markdown from source file(s). Writes HTML to target file.


[View source]