Drafts includes Discount-based, GitHub flavored Markdown parser based on GHMarkdownParser. For details on the meaning of the various options, refer to Markdown documentation.

Example

var inputString = "# Header\n\nMy **markdown** text";
var md = GitHubMarkdown.create();

var outputString = md.render(inputString);

Hierarchy

  • GitHubMarkdown

Constructors

Properties

autoLinks: boolean

defaults to false

noImages: boolean

defaults to true

noLinks: boolean

defaults to true

removeHTMLTags: boolean

defaults to false

safeLinks: boolean

defaults to true

smartQuotesEnabled: boolean

defaults to true

strict: boolean

defaults to false

Methods

  • Takes Markdown string passed and processes it with GitHub Markdown parser based on the property selections on the object.

    Parameters

    • markdownStr: string

    Returns string

Generated using TypeDoc