Class: Markdown

Defined in: src/util/markdown.coffee

Overview

It looks like all the markdown libraries for node doesn't get

Class Method Summary

Class Method Details

@convert(markdown, limit = false, allowed = Markdown.limitedTags) Source

Convert markdown to Html. If the param limit

Parameters:

  • markdownthe markdown markup (a [String])
  • limitif elements should be limited (a [Boolean])

@limit(html, allowed) Source

Strips all unwanted tag from the html

Parameters:

  • htmlthe Html to clean (a [String])
  • allowedthe comma separated list of allowed tags (a [String])
  • Returns the cleaned Html (a [String])