Markdown Helpers

Table of Contents

markdown

{{markdown}}

Block helper that converts a string of inline markdown to HTML.

Params

  • string {String}: Markdown string to convert
  • returns {String}: HTML string

Example

{{#markdown}}
    # Foo
    {{/markdown}}
    
    

{{md}}

Converts a markdown string to HTML, or reads a markdown file from the file system and converts its contents to HTML.

Params

  • filepath {String}: Markdown string or path to a markdown file
  • returns {String}: HTML string

Example

{{md "# Hello World"}}
    
    
    {{md "foo/bar.md"}}
    
    

Table of Contents