monster.ui.markdownToHtml()

The monster.ui.markdownToHtml renders markdown content as HTML.

Syntax

monster.ui.markdownToHtml(content);

Parameters

KeyDescriptionTypeDefaultRequired
contentMarkdown content to be rendered as HTMLStringtrue

Description

This helper allows you to render markdown content as HTML

Example

var markdownContent = '**Hello world**',
    description = monster.ui.markdownToHtml(markdownContent);

template.find('.description').html(description);

On this page