;(function() { "use strict"; var /** * The parsed output string, in HTML format. * @type {String} */ output = "", BLOCK = "block", INLINE = "inline", /** * Used to attach MarkdownToHtml object to `window` in browser * context, or as an AMD module where appropriate. * @type {Object} */ exports, /** * An array of parse rule descriptor objects. Each object has two keys; * pattern (the RegExp to match), and replace (the replacement string or * function to execute). * @type {Array} */ parseMap = [ { //

// A line starting with 1-6 hashes. pattern: /(#{1,6})([^\n]+)/g, replace: "$2", type: BLOCK, }, { //

// Any line surrounded by newlines that doesn't start with // an HTML tag, asterisk or numeric value with dot following. pattern: /\n(?!<\/?\w+>|\s?\*|\s?[0-9]+|>|\>|-{5,})([^\n]+)/g, replace: "

$1

", type: BLOCK, }, { //
// A greater-than character preceding any characters. pattern: /\n(?:>|\>)\W*(.*)/g, replace: "

$1

", type: BLOCK, }, { //