{"ScriptPreparationCode":"var conv = {\r\n marked: marked,\r\n cm: new commonmark.HtmlRenderer(),\r\n mdit: markdownit({\r\n html: true\r\n }),\r\n remarkable: new remarkable.Remarkable(),\r\n snarkdown: window.snarkdown,\r\n remark: window.remark,\r\n};\r\n\r\nvar pars = {\r\n cm: new commonmark.Parser()\r\n};\r\n\r\n// source: https://github.com/mxstbr/markdown-test-file/tree/master\r\nvar md = \u0060\\\r\n# Markdown: Syntax\r\n\r\n* [Overview](#overview)\r\n * [Philosophy](#philosophy)\r\n * [Inline HTML](#html)\r\n * [Automatic Escaping for Special Characters](#autoescape)\r\n* [Block Elements](#block)\r\n * [Paragraphs and Line Breaks](#p)\r\n * [Headers](#header)\r\n * [Blockquotes](#blockquote)\r\n * [Lists](#list)\r\n * [Code Blocks](#precode)\r\n * [Horizontal Rules](#hr)\r\n* [Span Elements](#span)\r\n * [Links](#link)\r\n * [Emphasis](#em)\r\n * [Code](#code)\r\n * [Images](#img)\r\n* [Miscellaneous](#misc)\r\n * [Backslash Escapes](#backslash)\r\n * [Automatic Links](#autolink)\r\n\r\n\r\n**Note:** This document is itself written using Markdown; you\r\ncan [see the source for it by adding \u0027.text\u0027 to the URL](/projects/markdown/syntax.text).\r\n\r\n----\r\n\r\n## Overview\r\n\r\n### Philosophy\r\n\r\nMarkdown is intended to be as easy-to-read and easy-to-write as is feasible.\r\n\r\nReadability, however, is emphasized above all else. A Markdown-formatted\r\ndocument should be publishable as-is, as plain text, without looking\r\nlike it\u0027s been marked up with tags or formatting instructions. While\r\nMarkdown\u0027s syntax has been influenced by several existing text-to-HTML\r\nfilters -- including [Setext](http://docutils.sourceforge.net/mirror/setext.html), [atx](http://www.aaronsw.com/2002/atx/), [Textile](http://textism.com/tools/textile/), [reStructuredText](http://docutils.sourceforge.net/rst.html),\r\n[Grutatext](http://www.triptico.com/software/grutatxt.html), and [EtText](http://ettext.taint.org/doc/) -- the single biggest source of\r\ninspiration for Markdown\u0027s syntax is the format of plain text email.\r\n\r\n## Block Elements\r\n\r\n### Paragraphs and Line Breaks\r\n\r\nA paragraph is simply one or more consecutive lines of text, separated\r\nby one or more blank lines. (A blank line is any line that looks like a\r\nblank line -- a line containing nothing but spaces or tabs is considered\r\nblank.) Normal paragraphs should not be indented with spaces or tabs.\r\n\r\nThe implication of the \u0022one or more consecutive lines of text\u0022 rule is\r\nthat Markdown supports \u0022hard-wrapped\u0022 text paragraphs. This differs\r\nsignificantly from most other text-to-HTML formatters (including Movable\r\nType\u0027s \u0022Convert Line Breaks\u0022 option) which translate every line break\r\ncharacter in a paragraph into a \\\u0060\u003Cbr /\u003E\\\u0060 tag.\r\n\r\nWhen you *do* want to insert a \\\u0060\u003Cbr /\u003E\\\u0060 break tag using Markdown, you\r\nend a line with two or more spaces, then type return.\r\n\r\n### Headers\r\n\r\nMarkdown supports two styles of headers, [Setext] [1] and [atx] [2].\r\n\r\nOptionally, you may \u0022close\u0022 atx-style headers. This is purely\r\ncosmetic -- you can use this if you think it looks better. The\r\nclosing hashes don\u0027t even need to match the number of hashes\r\nused to open the header. (The number of opening hashes\r\ndetermines the header level.)\r\n\r\n\r\n### Blockquotes\r\n\r\nMarkdown uses email-style \\\u0060\u003E\\\u0060 characters for blockquoting. If you\u0027re\r\nfamiliar with quoting passages of text in an email message, then you\r\nknow how to create a blockquote in Markdown. It looks best if you hard\r\nwrap the text and put a \\\u0060\u003E\\\u0060 before every line:\r\n\r\n\u003E This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,\r\n\u003E consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.\r\n\u003E Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.\r\n\u003E \r\n\u003E Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse\r\n\u003E id sem consectetuer libero luctus adipiscing.\r\n\r\nMarkdown allows you to be lazy and only put the \\\u0060\u003E\\\u0060 before the first\r\nline of a hard-wrapped paragraph:\r\n\r\n\u003E This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,\r\nconsectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.\r\nVestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.\r\n\r\n\u003E Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse\r\nid sem consectetuer libero luctus adipiscing.\r\n\r\nBlockquotes can be nested (i.e. a blockquote-in-a-blockquote) by\r\nadding additional levels of \\\u0060\u003E\\\u0060:\r\n\r\n\u003E This is the first level of quoting.\r\n\u003E\r\n\u003E \u003E This is nested blockquote.\r\n\u003E\r\n\u003E Back to the first level.\r\n\r\nBlockquotes can contain other Markdown elements, including headers, lists,\r\nand code blocks:\r\n\r\n\u003E ## This is a header.\r\n\u003E \r\n\u003E 1. This is the first list item.\r\n\u003E 2. This is the second list item.\r\n\u003E \r\n\u003E Here\u0027s some example code:\r\n\u003E \r\n\u003E return shell_exec(\u0022echo $input | $markdown_script\u0022);\r\n\r\nAny decent text editor should make email-style quoting easy. For\r\nexample, with BBEdit, you can make a selection and choose Increase\r\nQuote Level from the Text menu.\r\n\r\n\r\n### Lists\r\n\r\nMarkdown supports ordered (numbered) and unordered (bulleted) lists.\r\n\r\nUnordered lists use asterisks, pluses, and hyphens -- interchangably\r\n-- as list markers:\r\n\r\n* Red\r\n* Green\r\n* Blue\r\n\r\nis equivalent to:\r\n\r\n\u002B Red\r\n\u002B Green\r\n\u002B Blue\r\n\r\nand:\r\n\r\n- Red\r\n- Green\r\n- Blue\r\n\r\nOrdered lists use numbers followed by periods:\r\n\r\n1. Bird\r\n2. McHale\r\n3. Parish\r\n\r\nIt\u0027s important to note that the actual numbers you use to mark the\r\nlist have no effect on the HTML output Markdown produces. The HTML\r\nMarkdown produces from the above list is:\r\n\r\nIf you instead wrote the list in Markdown like this:\r\n\r\n1. Bird\r\n1. McHale\r\n1. Parish\r\n\r\nor even:\r\n\r\n3. Bird\r\n1. McHale\r\n8. Parish\r\n\r\nyou\u0027d get the exact same HTML output. The point is, if you want to,\r\nyou can use ordinal numbers in your ordered Markdown lists, so that\r\nthe numbers in your source match the numbers in your published HTML.\r\nBut if you want to be lazy, you don\u0027t have to.\r\n\r\nTo make lists look nice, you can wrap items with hanging indents:\r\n\r\n* Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\r\n Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi,\r\n viverra nec, fringilla in, laoreet vitae, risus.\r\n* Donec sit amet nisl. Aliquam semper ipsum sit amet velit.\r\n Suspendisse id sem consectetuer libero luctus adipiscing.\r\n\r\nBut if you want to be lazy, you don\u0027t have to:\r\n\r\n* Lorem ipsum dolor sit amet, consectetuer adipiscing elit.\r\nAliquam hendrerit mi posuere lectus. Vestibulum enim wisi,\r\nviverra nec, fringilla in, laoreet vitae, risus.\r\n* Donec sit amet nisl. Aliquam semper ipsum sit amet velit.\r\nSuspendisse id sem consectetuer libero luctus adipiscing.\r\n\r\nList items may consist of multiple paragraphs. Each subsequent\r\nparagraph in a list item must be indented by either 4 spaces\r\nor one tab:\r\n\r\n1. This is a list item with two paragraphs. Lorem ipsum dolor\r\n sit amet, consectetuer adipiscing elit. Aliquam hendrerit\r\n mi posuere lectus.\r\n\r\n Vestibulum enim wisi, viverra nec, fringilla in, laoreet\r\n vitae, risus. Donec sit amet nisl. Aliquam semper ipsum\r\n sit amet velit.\r\n\r\n2. Suspendisse id sem consectetuer libero luctus adipiscing.\r\n\r\nIt looks nice if you indent every line of the subsequent\r\nparagraphs, but here again, Markdown will allow you to be\r\nlazy:\r\n\r\n* This is a list item with two paragraphs.\r\n\r\n This is the second paragraph in the list item. You\u0027re\r\nonly required to indent the first line. Lorem ipsum dolor\r\nsit amet, consectetuer adipiscing elit.\r\n\r\n* Another item in the same list.\r\n\r\nTo put a blockquote within a list item, the blockquote\u0027s \\\u0060\u003E\\\u0060\r\ndelimiters need to be indented:\r\n\r\n* A list item with a blockquote:\r\n\r\n \u003E This is a blockquote\r\n \u003E inside a list item.\r\n\r\nTo put a code block within a list item, the code block needs\r\nto be indented *twice* -- 8 spaces or two tabs:\r\n\r\n* A list item with a code block:\r\n\r\n \u003Ccode goes here\u003E\r\n\r\n### Code Blocks\r\n\r\nPre-formatted code blocks are used for writing about programming or\r\nmarkup source code. Rather than forming normal paragraphs, the lines\r\nof a code block are interpreted literally. Markdown wraps a code block\r\nin both \\\u0060\u003Cpre\u003E\\\u0060 and \\\u0060\u003Ccode\u003E\\\u0060 tags.\r\n\r\nTo produce a code block in Markdown, simply indent every line of the\r\nblock by at least 4 spaces or 1 tab.\r\n\r\nThis is a normal paragraph:\r\n\r\n This is a code block.\r\n\r\nHere is an example of AppleScript:\r\n\r\n tell application \u0022Foo\u0022\r\n beep\r\n end tell\r\n\r\nA code block continues until it reaches a line that is not indented\r\n(or the end of the article).\r\n\r\nWithin a code block, ampersands (\\\u0060\u0026\\\u0060) and angle brackets (\\\u0060\u003C\\\u0060 and \\\u0060\u003E\\\u0060)\r\nare automatically converted into HTML entities. This makes it very\r\neasy to include example HTML source code using Markdown -- just paste\r\nit and indent it, and Markdown will handle the hassle of encoding the\r\nampersands and angle brackets. For example, this:\r\n\r\n \u003Cdiv class=\u0022footer\u0022\u003E\r\n \u0026copy; 2004 Foo Corporation\r\n \u003C/div\u003E\r\n\r\nRegular Markdown syntax is not processed within code blocks. E.g.,\r\nasterisks are just literal asterisks within a code block. This means\r\nit\u0027s also easy to use Markdown to write about Markdown\u0027s own syntax.\r\n\r\n\\\u0060\\\u0060\\\u0060\r\ntell application \u0022Foo\u0022\r\n beep\r\nend tell\r\n\\\u0060\\\u0060\\\u0060\r\n\r\n## Span Elements\r\n\r\n### Links\r\n\r\nMarkdown supports two style of links: *inline* and *reference*.\r\n\r\nIn both styles, the link text is delimited by [square brackets].\r\n\r\nTo create an inline link, use a set of regular parentheses immediately\r\nafter the link text\u0027s closing square bracket. Inside the parentheses,\r\nput the URL where you want the link to point, along with an *optional*\r\ntitle for the link, surrounded in quotes. For example:\r\n\r\nThis is [an example](http://example.com/) inline link.\r\n\r\n[This link](http://example.net/) has no title attribute.\r\n\r\n### Emphasis\r\n\r\nMarkdown treats asterisks (\\\u0060*\\\u0060) and underscores (\\\u0060_\\\u0060) as indicators of\r\nemphasis. Text wrapped with one \\\u0060*\\\u0060 or \\\u0060_\\\u0060 will be wrapped with an\r\nHTML \\\u0060\u003Cem\u003E\\\u0060 tag; double \\\u0060*\\\u0060\u0027s or \\\u0060_\\\u0060\u0027s will be wrapped with an HTML\r\n\\\u0060\u003Cstrong\u003E\\\u0060 tag. E.g., this input:\r\n\r\n*single asterisks*\r\n\r\n_single underscores_\r\n\r\n**double asterisks**\r\n\r\n__double underscores__\r\n\r\n### Code\r\n\r\nTo indicate a span of code, wrap it with backtick quotes (\\\u0060\\\u0060 \\\u0060 \\\u0060\\\u0060).\r\nUnlike a pre-formatted code block, a code span indicates code within a\r\nnormal paragraph. For example:\r\n\r\nUse the \\\u0060printf()\\\u0060 function.\r\n\u0060;","TestCases":[{"Name":"Marked","Code":"conv.marked.parse(md);","IsDeferred":false},{"Name":"CommonMark","Code":"conv.cm.render(pars.cm.parse(md));","IsDeferred":false},{"Name":"Markdown-it","Code":"conv.mdit.render(md);","IsDeferred":false},{"Name":"Remarkable","Code":"conv.remarkable.render(md);","IsDeferred":false},{"Name":"Snarkdown","Code":"conv.snarkdown(md);","IsDeferred":false},{"Name":"Remark","Code":"conv.remark.processSync(md);","IsDeferred":false}]}