├── .gitignore ├── .travis.yml ├── Changes.md ├── Gruntfile.js ├── README.md ├── bin └── md2html.js ├── bower.json ├── inc ├── footer-node.js ├── footer-web.js ├── header.js └── tasks │ └── build_markdown.js ├── lib └── index.js ├── package.json ├── seed.yml ├── src ├── core.js ├── dialects │ ├── dialect_helpers.js │ ├── gruber.js │ └── maruku.js ├── markdown.js ├── markdown_helpers.js ├── parser.js └── render_tree.js └── test ├── features.t.js ├── features ├── blockquotes │ ├── contains_code.json │ ├── contains_code.text │ ├── lazy_wrapping.json │ ├── lazy_wrapping.text │ ├── leading_paras.json │ ├── leading_paras.text │ ├── nested.json │ ├── nested.text │ ├── simple.json │ ├── simple.text │ ├── spaceless.json │ ├── spaceless.text │ ├── spaces_before.json │ ├── spaces_before.text │ ├── threequotes.json │ └── threequotes.text ├── code │ ├── blank_lines.json │ ├── blank_lines.text │ ├── block.json │ ├── block.text │ ├── embedded_backtick.json │ ├── embedded_backtick.text │ ├── horizontal_rules.json │ ├── horizontal_rules.text │ ├── in_lists.json │ ├── in_lists.text │ ├── inline.json │ ├── inline.text │ ├── inline_multiline.json │ ├── inline_multiline.text │ ├── trailing_para.json │ ├── trailing_para.text │ ├── with_greater_than.json │ └── with_greater_than.text ├── definition_lists │ ├── inline.json │ ├── inline.text │ ├── long.json │ ├── long.text │ ├── multiple_definitions.json │ ├── multiple_definitions.text │ ├── multiple_terms.json │ ├── multiple_terms.text │ ├── tight.json │ └── tight.text ├── emphasis │ ├── multiple_lines.json │ ├── multiple_lines.text │ ├── nested.json │ ├── nested.text │ ├── simple.json │ └── simple.text ├── headers │ ├── atx.json │ ├── atx.text │ ├── atx_closing_hashes.json │ ├── atx_closing_hashes.text │ ├── inline.json │ ├── inline.text │ ├── setext.json │ ├── setext.text │ ├── trailing_paras.json │ └── trailing_paras.text ├── horizontal_rules │ ├── abutting_blocks.json │ ├── abutting_blocks.text │ ├── dashes.json │ ├── dashes.text │ ├── front_matter.json │ ├── front_matter.text │ ├── leading_spaces.json │ ├── leading_spaces.text │ ├── long.json │ ├── long.text │ ├── long_loose.json │ ├── long_loose.text │ ├── loose_dashes.json │ ├── loose_dashes.text │ ├── loose_stars.json │ ├── loose_stars.text │ ├── loose_underscores.json │ ├── loose_underscores.text │ ├── stars.json │ ├── stars.text │ ├── underscores.json │ └── underscores.text ├── images │ ├── basic.json │ ├── basic.text │ ├── crotcheted_url.json │ ├── crotcheted_url.text │ ├── crotcheted_url_with_title.json │ ├── crotcheted_url_with_title.text │ ├── empty.json │ ├── empty.text │ ├── incomplete_image.json │ ├── incomplete_image.text │ ├── inside_link.json │ ├── inside_link.text │ ├── ref.json │ ├── ref.text │ ├── spaces_in_href.json │ ├── spaces_in_href.text │ ├── spaces_round_title.json │ ├── spaces_round_title.text │ ├── title.json │ └── title.text ├── linebreaks │ ├── simple.json │ └── simple.text ├── links │ ├── apostrophe.json │ ├── apostrophe.text │ ├── autolink_email.json │ ├── autolink_email.text │ ├── autolink_in_code.json │ ├── autolink_in_code.text │ ├── autolink_url.json │ ├── autolink_url.text │ ├── broken_brackets.json │ ├── broken_brackets.text │ ├── broken_link.json │ ├── broken_link.text │ ├── case_insensitive.json │ ├── case_insensitive.text │ ├── escaped_broken_link.json │ ├── escaped_broken_link.text │ ├── implicit.json │ ├── implicit.text │ ├── in_blockquotes.json │ ├── in_blockquotes.text │ ├── in_brackets.json │ ├── in_brackets.text │ ├── inline.json │ ├── inline.text │ ├── inline_with_newline.json │ ├── inline_with_newline.text │ ├── inline_with_title.json │ ├── inline_with_title.text │ ├── missing_references.json │ ├── missing_references.text │ ├── no_closing.json │ ├── no_closing.text │ ├── parens_escaped_inline.json │ ├── parens_escaped_inline.text │ ├── parens_inline.json │ ├── parens_inline.text │ ├── parens_reference.json │ ├── parens_reference.text │ ├── ref_reuse.json │ ├── ref_reuse.text │ ├── ref_with_image_ref.json │ ├── ref_with_image_ref.text │ ├── reference.json │ ├── reference.text │ ├── reference_missing.json │ ├── reference_missing.text │ ├── reference_with_newline.json │ ├── reference_with_newline.text │ ├── reference_with_newline_and_space.json │ ├── reference_with_newline_and_space.text │ ├── reference_with_quote.json │ ├── reference_with_quote.text │ ├── reference_with_space.json │ ├── reference_with_space.text │ ├── spaces_in_url.json │ └── spaces_in_url.text ├── lists │ ├── bullet_types.json │ ├── bullet_types.text │ ├── hr_abutting.json │ ├── hr_abutting.text │ ├── hr_inside.json │ ├── hr_inside.text │ ├── lazy_wrapping.json │ ├── lazy_wrapping.text │ ├── leading_whitespace.json │ ├── leading_whitespace.text │ ├── loose.json │ ├── loose.text │ ├── loose_with_inline.json │ ├── loose_with_inline.text │ ├── multiline_inline.json │ ├── multiline_inline.text │ ├── nested.json │ ├── nested.text │ ├── nested_para.json │ ├── nested_para.text │ ├── numeric.json │ ├── numeric.text │ ├── quote_inside.json │ ├── quote_inside.text │ ├── references.json │ ├── references.text │ ├── tight.json │ └── tight.text ├── meta │ ├── attribute.json │ ├── attribute.text │ ├── class.json │ ├── class.text │ ├── code.json │ ├── code.text │ ├── document.json │ ├── document.text │ ├── id.json │ ├── id.text │ ├── inline.json │ ├── inline.text │ ├── inner_whitespace.json │ ├── inner_whitespace.text │ ├── leading_whitespace.json │ ├── leading_whitespace.text │ ├── list.json │ ├── list.text │ ├── list.todo │ ├── multiple_classes.json │ ├── multiple_classes.text │ ├── quoted.json │ └── quoted.text └── tables │ ├── align.json │ ├── align.text │ ├── compact.json │ ├── compact.text │ ├── inline_formatting.json │ ├── inline_formatting.text │ ├── pipe_escape.json │ ├── pipe_escape.text │ ├── simple_leading.json │ ├── simple_leading.text │ ├── simple_no_leading.json │ ├── simple_no_leading.text │ ├── spaces_tolerance.json │ └── spaces_tolerance.text ├── fixtures ├── Markdown-from-MDTest1.1.mdtest │ ├── Amps_and_angle_encoding.json │ ├── Amps_and_angle_encoding.text │ ├── Amps_and_angle_encoding.xhtml │ ├── Auto_links.json │ ├── Auto_links.text │ ├── Auto_links.xhtml │ ├── Backslash_escapes.json │ ├── Backslash_escapes.text │ ├── Backslash_escapes.xhtml │ ├── Blockquotes_with_code_blocks.json │ ├── Blockquotes_with_code_blocks.text │ ├── Blockquotes_with_code_blocks.xhtml │ ├── Code_Blocks.json │ ├── Code_Blocks.text │ ├── Code_Blocks.xhtml │ ├── Code_Spans.json │ ├── Code_Spans.text │ ├── Code_Spans.xhtml │ ├── Hard-wrapped_paragraphs_with_list-like_lines.json │ ├── Hard-wrapped_paragraphs_with_list-like_lines.text │ ├── Hard-wrapped_paragraphs_with_list-like_lines.xhtml │ ├── Horizontal_rules.json │ ├── Horizontal_rules.text │ ├── Horizontal_rules.xhtml │ ├── Images.json │ ├── Images.text │ ├── Images.xhtml │ ├── Inline_HTML_(Advanced).json │ ├── Inline_HTML_(Advanced).text │ ├── Inline_HTML_(Advanced).xhtml │ ├── Inline_HTML_(Simple).html │ ├── Inline_HTML_(Simple).json │ ├── Inline_HTML_(Simple).text │ ├── Inline_HTML_comments.html │ ├── Inline_HTML_comments.json │ ├── Inline_HTML_comments.text │ ├── Links_inline_style.json │ ├── Links_inline_style.text │ ├── Links_inline_style.xhtml │ ├── Links_reference_style.json │ ├── Links_reference_style.text │ ├── Links_reference_style.xhtml │ ├── Links_shortcut_references.json │ ├── Links_shortcut_references.text │ ├── Links_shortcut_references.xhtml │ ├── Literal_quotes_in_titles.json │ ├── Literal_quotes_in_titles.text │ ├── Literal_quotes_in_titles.xhtml │ ├── Markdown_Documentation_-_Basics.json │ ├── Markdown_Documentation_-_Basics.text │ ├── Markdown_Documentation_-_Basics.xhtml │ ├── Markdown_Documentation_-_Syntax.json │ ├── Markdown_Documentation_-_Syntax.text │ ├── Markdown_Documentation_-_Syntax.xhtml │ ├── Nested_blockquotes.json │ ├── Nested_blockquotes.text │ ├── Nested_blockquotes.xhtml │ ├── Ordered_and_unordered_lists.json │ ├── Ordered_and_unordered_lists.text │ ├── Ordered_and_unordered_lists.xhtml │ ├── Strong_and_em_together.json │ ├── Strong_and_em_together.text │ ├── Strong_and_em_together.xhtml │ ├── Tabs.json │ ├── Tabs.text │ ├── Tabs.xhtml │ ├── Tidyness.json │ ├── Tidyness.text │ └── Tidyness.xhtml ├── PHP_Markdown-from-MDTest1.1.mdtest │ ├── Backslash_escapes.json │ ├── Backslash_escapes.text │ ├── Backslash_escapes.xhtml │ ├── Code_Spans.json │ ├── Code_Spans.text │ ├── Code_Spans.xhtml │ ├── Code_block_in_a_list_item.json │ ├── Code_block_in_a_list_item.text │ ├── Code_block_in_a_list_item.xhtml │ ├── Email_auto_links.json │ ├── Email_auto_links.text │ ├── Email_auto_links.xhtml │ ├── Emphasis.json │ ├── Emphasis.text │ ├── Emphasis.xhtml │ ├── Headers.json │ ├── Headers.text │ ├── Headers.xhtml │ ├── Horizontal_Rules.json │ ├── Horizontal_Rules.text │ ├── Horizontal_Rules.xhtml │ ├── Inline_HTML_(Simple).html │ ├── Inline_HTML_(Simple).json │ ├── Inline_HTML_(Simple).text │ ├── Inline_HTML_(Span).json │ ├── Inline_HTML_(Span).text │ ├── Inline_HTML_(Span).xhtml │ ├── Inline_HTML_comments.html │ ├── Inline_HTML_comments.json │ ├── Inline_HTML_comments.text │ ├── Ins_and_del.json │ ├── Ins_and_del.text │ ├── Ins_and_del.xhtml │ ├── Links_inline_style.json │ ├── Links_inline_style.text │ ├── Links_inline_style.xhtml │ ├── MD5_Hashes.json │ ├── MD5_Hashes.text │ ├── MD5_Hashes.xhtml │ ├── Nesting.json │ ├── Nesting.text │ ├── Nesting.xhtml │ ├── PHP-Specific_Bugs.json │ ├── PHP-Specific_Bugs.text │ ├── PHP-Specific_Bugs.xhtml │ ├── Parens_in_URL.json │ ├── Parens_in_URL.text │ ├── Parens_in_URL.xhtml │ ├── Tight_blocks.json │ ├── Tight_blocks.text │ └── Tight_blocks.xhtml ├── README ├── Text-Markdown.mdtest │ ├── CoreDumps5.8.json │ ├── CoreDumps5.8.text │ ├── CoreDumps5.8.xhtml │ ├── Emphasis.json │ ├── Emphasis.text │ ├── Emphasis.xhtml │ ├── HTML-Comment-encoding.json │ ├── HTML-Comment-encoding.text │ ├── HTML-Comment-encoding.xhtml │ ├── HTML5-attributes.html │ ├── HTML5-attributes.json │ ├── HTML5-attributes.text │ ├── Links_brackets.json │ ├── Links_brackets.text │ ├── Links_brackets.xhtml │ ├── Links_multiline_bugs_1.html │ ├── Links_multiline_bugs_1.json │ ├── Links_multiline_bugs_1.text │ ├── Links_multiline_bugs_2.html │ ├── Links_multiline_bugs_2.json │ ├── Links_multiline_bugs_2.text │ ├── Links_reference_style.json │ ├── Links_reference_style.text │ ├── Links_reference_style.xhtml │ ├── Lists-multilevel-md5-edgecase.json │ ├── Lists-multilevel-md5-edgecase.text │ ├── Lists-multilevel-md5-edgecase.xhtml │ ├── PHP-ASP_tags.json │ ├── PHP-ASP_tags.text │ ├── PHP-ASP_tags.xhtml │ ├── Unicode.json │ ├── Unicode.text │ └── Unicode.xhtml ├── docs-maruku-unittest │ ├── abbreviations.html │ ├── abbreviations.json │ ├── abbreviations.text │ ├── alt.html │ ├── alt.json │ ├── alt.text │ ├── blank.html │ ├── blank.json │ ├── blank.text │ ├── blanks_in_code.html │ ├── blanks_in_code.json │ ├── blanks_in_code.text │ ├── bug_def.html │ ├── bug_def.json │ ├── bug_def.text │ ├── bug_table.html │ ├── bug_table.json │ ├── bug_table.text │ ├── code.html │ ├── code.json │ ├── code.text │ ├── code2.html │ ├── code2.json │ ├── code2.text │ ├── code3.html │ ├── code3.json │ ├── code3.text │ ├── convert.pl │ ├── data_loss.html │ ├── data_loss.json │ ├── data_loss.text │ ├── easy.html │ ├── easy.json │ ├── easy.text │ ├── email.html │ ├── email.json │ ├── email.text │ ├── entities.html │ ├── entities.json │ ├── entities.text │ ├── escaping.html │ ├── escaping.json │ ├── escaping.text │ ├── extra_dl.html │ ├── extra_dl.json │ ├── extra_dl.text │ ├── extra_header_id.html │ ├── extra_header_id.json │ ├── extra_header_id.text │ ├── extra_table1.html │ ├── extra_table1.json │ ├── extra_table1.text │ ├── footnotes.html │ ├── footnotes.json │ ├── footnotes.text │ ├── headers.html │ ├── headers.json │ ├── headers.text │ ├── hex_entities.html │ ├── hex_entities.json │ ├── hex_entities.text │ ├── hrule.html │ ├── hrule.json │ ├── hrule.text │ ├── html2.html │ ├── html2.json │ ├── html2.text │ ├── html3.html │ ├── html3.json │ ├── html3.text │ ├── html4.html │ ├── html4.json │ ├── html4.text │ ├── html5.html │ ├── html5.json │ ├── html5.text │ ├── ie.html │ ├── ie.json │ ├── ie.text │ ├── images.html │ ├── images.json │ ├── images.text │ ├── images2.html │ ├── images2.json │ ├── images2.text │ ├── inline_html.html │ ├── inline_html.json │ ├── inline_html.text │ ├── inline_html2.html │ ├── inline_html2.json │ ├── inline_html2.text │ ├── links.html │ ├── links.json │ ├── links.text │ ├── list1.html │ ├── list1.json │ ├── list1.text │ ├── list2.html │ ├── list2.json │ ├── list2.text │ ├── list3.html │ ├── list3.json │ ├── list3.text │ ├── list4.html │ ├── list4.json │ ├── list4.text │ ├── lists.html │ ├── lists.json │ ├── lists.text │ ├── lists11.html │ ├── lists11.json │ ├── lists11.text │ ├── lists6.html │ ├── lists6.json │ ├── lists6.text │ ├── lists7.html │ ├── lists7.json │ ├── lists7.text │ ├── lists7b.html │ ├── lists7b.json │ ├── lists7b.text │ ├── lists8.html │ ├── lists8.json │ ├── lists8.text │ ├── lists9.html │ ├── lists9.json │ ├── lists9.text │ ├── lists_after_paragraph.html │ ├── lists_after_paragraph.json │ ├── lists_after_paragraph.text │ ├── lists_ol.html │ ├── lists_ol.json │ ├── lists_ol.text │ ├── loss.html │ ├── loss.json │ ├── loss.text │ ├── misc_sw.html │ ├── misc_sw.json │ ├── misc_sw.text │ ├── olist.html │ ├── olist.json │ ├── olist.text │ ├── one.html │ ├── one.json │ ├── one.text │ ├── paragraph.html │ ├── paragraph.json │ ├── paragraph.text │ ├── paragraphs.html │ ├── paragraphs.json │ ├── paragraphs.text │ ├── smartypants.html │ ├── smartypants.json │ ├── smartypants.text │ ├── syntax_hl.html │ ├── syntax_hl.json │ ├── syntax_hl.text │ ├── table_attributes.html │ ├── table_attributes.json │ ├── table_attributes.text │ ├── test.html │ ├── test.json │ ├── test.text │ ├── wrapping.html │ ├── wrapping.json │ ├── wrapping.text │ ├── xml.html │ ├── xml.json │ ├── xml.text │ ├── xml2.html │ ├── xml2.json │ ├── xml2.text │ ├── xml3.html │ ├── xml3.json │ ├── xml3.text │ ├── xml_instruction.html │ ├── xml_instruction.json │ └── xml_instruction.text ├── docs-php-markdown-extra │ ├── Abbr.html │ ├── Abbr.json │ ├── Abbr.text │ ├── Definition_Lists.html │ ├── Definition_Lists.json │ ├── Definition_Lists.text │ ├── Emphasis.html │ ├── Emphasis.json │ ├── Emphasis.text │ ├── Footnotes.html │ ├── Footnotes.json │ ├── Footnotes.text │ ├── Inline_HTML_with_Markdown_content.html │ ├── Inline_HTML_with_Markdown_content.json │ ├── Inline_HTML_with_Markdown_content.text │ ├── Tables.html │ ├── Tables.json │ └── Tables.text ├── docs-php-markdown-todo │ ├── Email_auto_links.html │ ├── Email_auto_links.json │ ├── Email_auto_links.text │ ├── Emphasis.html │ ├── Emphasis.json │ ├── Emphasis.text │ ├── Inline_HTML_(Span).html │ ├── Inline_HTML_(Span).json │ ├── Inline_HTML_(Span).text │ ├── Ins_and_del.json │ ├── Ins_and_del.text │ ├── Ins_and_del.xhtml │ ├── Links_inline_style.html │ ├── Links_inline_style.json │ ├── Links_inline_style.text │ ├── Nesting.html │ ├── Nesting.json │ ├── Nesting.text │ ├── Parens_in_URL.html │ ├── Parens_in_URL.json │ └── Parens_in_URL.text ├── docs-php-markdown │ ├── Backslash_escapes.html │ ├── Backslash_escapes.json │ ├── Backslash_escapes.text │ ├── Code_Spans.html │ ├── Code_Spans.json │ ├── Code_Spans.text │ ├── Code_block_in_a_list_item.html │ ├── Code_block_in_a_list_item.json │ ├── Code_block_in_a_list_item.text │ ├── Headers.html │ ├── Headers.json │ ├── Headers.text │ ├── Images_(Untitled).html │ ├── Images_(Untitled).json │ ├── Images_(Untitled).text │ ├── Inline_HTML_(Simple).html │ ├── Inline_HTML_(Simple).json │ ├── Inline_HTML_(Simple).text │ ├── Inline_HTML_comments.html │ ├── Inline_HTML_comments.json │ ├── Inline_HTML_comments.text │ ├── PHP-Specific_Bugs.html │ ├── PHP-Specific_Bugs.json │ ├── PHP-Specific_Bugs.text │ ├── Tight_blocks.html │ ├── Tight_blocks.json │ └── Tight_blocks.text └── docs-pythonmarkdown2-tm-cases-pass │ ├── auto_link.html │ ├── auto_link.json │ ├── auto_link.text │ ├── auto_link_safe_mode.html │ ├── auto_link_safe_mode.json │ ├── auto_link_safe_mode.opts │ ├── auto_link_safe_mode.text │ ├── basic_safe_mode.html │ ├── basic_safe_mode.json │ ├── basic_safe_mode.opts │ ├── basic_safe_mode.text │ ├── basic_safe_mode_escape.html │ ├── basic_safe_mode_escape.json │ ├── basic_safe_mode_escape.opts │ ├── basic_safe_mode_escape.text │ ├── blockquote.html │ ├── blockquote.json │ ├── blockquote.text │ ├── blockquote_with_pre.html │ ├── blockquote_with_pre.json │ ├── blockquote_with_pre.text │ ├── code_block_with_tabs.html │ ├── code_block_with_tabs.json │ ├── code_block_with_tabs.text │ ├── code_safe_emphasis.html │ ├── code_safe_emphasis.json │ ├── code_safe_emphasis.opts │ ├── code_safe_emphasis.text │ ├── codeblock.html │ ├── codeblock.json │ ├── codeblock.text │ ├── codespans.html │ ├── codespans.json │ ├── codespans.text │ ├── codespans_safe_mode.html │ ├── codespans_safe_mode.json │ ├── codespans_safe_mode.opts │ ├── codespans_safe_mode.text │ ├── emacs_head_vars.html │ ├── emacs_head_vars.json │ ├── emacs_head_vars.text │ ├── emacs_tail_vars.html │ ├── emacs_tail_vars.json │ ├── emacs_tail_vars.text │ ├── emphasis.html │ ├── emphasis.json │ ├── emphasis.text │ ├── escapes.html │ ├── escapes.json │ ├── escapes.text │ ├── footnotes.html │ ├── footnotes.json │ ├── footnotes.opts │ ├── footnotes.text │ ├── footnotes_letters.html │ ├── footnotes_letters.json │ ├── footnotes_letters.opts │ ├── footnotes_letters.text │ ├── footnotes_markup.html │ ├── footnotes_markup.json │ ├── footnotes_markup.opts │ ├── footnotes_markup.text │ ├── footnotes_safe_mode_escape.html │ ├── footnotes_safe_mode_escape.json │ ├── footnotes_safe_mode_escape.opts │ ├── footnotes_safe_mode_escape.text │ ├── header.html │ ├── header.json │ ├── header.text │ ├── hr.html │ ├── hr.json │ ├── hr.text │ ├── img_in_link.html │ ├── img_in_link.json │ ├── img_in_link.text │ ├── inline_links.html │ ├── inline_links.json │ ├── inline_links.text │ ├── issue2_safe_mode_borks_markup.html │ ├── issue2_safe_mode_borks_markup.json │ ├── issue2_safe_mode_borks_markup.opts │ ├── issue2_safe_mode_borks_markup.text │ ├── link_defn_alt_title_delims.html │ ├── link_defn_alt_title_delims.json │ ├── link_defn_alt_title_delims.text │ ├── link_patterns.html │ ├── link_patterns.json │ ├── link_patterns.opts │ ├── link_patterns.text │ ├── link_patterns_double_hit.html │ ├── link_patterns_double_hit.json │ ├── link_patterns_double_hit.opts │ ├── link_patterns_double_hit.text │ ├── link_patterns_edge_cases.html │ ├── link_patterns_edge_cases.json │ ├── link_patterns_edge_cases.opts │ ├── link_patterns_edge_cases.text │ ├── lists.html │ ├── lists.json │ ├── lists.text │ ├── mismatched_footnotes.html │ ├── mismatched_footnotes.json │ ├── mismatched_footnotes.opts │ ├── mismatched_footnotes.text │ ├── missing_link_defn.html │ ├── missing_link_defn.json │ ├── missing_link_defn.text │ ├── nested_list.html │ ├── nested_list.json │ ├── nested_list.text │ ├── nested_list_safe_mode.html │ ├── nested_list_safe_mode.json │ ├── nested_list_safe_mode.opts │ ├── nested_list_safe_mode.text │ ├── parens_in_url_4.html │ ├── parens_in_url_4.json │ ├── parens_in_url_4.text │ ├── raw_html.html │ ├── raw_html.json │ ├── raw_html.text │ ├── ref_links.html │ ├── ref_links.json │ ├── ref_links.text │ ├── sublist-para.html │ ├── sublist-para.json │ ├── sublist-para.text │ ├── syntax_color.html │ ├── syntax_color.json │ ├── syntax_color.opts │ ├── syntax_color.text │ ├── tricky_anchors.html │ ├── tricky_anchors.json │ ├── tricky_anchors.text │ ├── underline_in_autolink.html │ ├── underline_in_autolink.json │ └── underline_in_autolink.text ├── html_renderer.t.js ├── interface.t.js ├── regressions.t.js └── render_tree.t.js /.gitignore: -------------------------------------------------------------------------------- 1 | .*.swp 2 | .DS_Store 3 | /node_modules/ 4 | /npm-debug.log 5 | dist 6 | lib/markdown.js 7 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.11" 5 | -------------------------------------------------------------------------------- /inc/footer-node.js: -------------------------------------------------------------------------------- 1 | 2 | expose.Markdown = Markdown; 3 | expose.parse = Markdown.parse; 4 | expose.toHTML = Markdown.toHTML; 5 | expose.toHTMLTree = Markdown.toHTMLTree; 6 | expose.renderJsonML = Markdown.renderJsonML; 7 | expose.DialectHelpers = DialectHelpers; 8 | 9 | })(exports); 10 | -------------------------------------------------------------------------------- /inc/footer-web.js: -------------------------------------------------------------------------------- 1 | 2 | expose.Markdown = Markdown; 3 | expose.parse = Markdown.parse; 4 | expose.toHTML = Markdown.toHTML; 5 | expose.toHTMLTree = Markdown.toHTMLTree; 6 | expose.renderJsonML = Markdown.renderJsonML; 7 | expose.DialectHelpers = DialectHelpers; 8 | 9 | })(function() { 10 | window.markdown = {}; 11 | return window.markdown; 12 | }()); 13 | -------------------------------------------------------------------------------- /inc/header.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Markdown 3 | * Released under MIT license 4 | * Copyright (c) 2009-2010 Dominic Baggott 5 | * Copyright (c) 2009-2010 Ash Berlin 6 | * Copyright (c) 2011 Christoph Dorn (http://www.christophdorn.com) 7 | * Version: @VERSION 8 | * Date: @DATE 9 | */ 10 | 11 | (function(expose) { -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- 1 | // super simple module for the most common nodejs use case. 2 | exports.markdown = require("./markdown"); 3 | exports.parse = exports.markdown.toHTML; 4 | -------------------------------------------------------------------------------- /seed.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: markdown-js 3 | description: JavaScript implementation of Markdown 4 | tags: markdown parser 5 | version: 0.1.2 6 | -------------------------------------------------------------------------------- /src/markdown.js: -------------------------------------------------------------------------------- 1 | if (typeof define !== 'function') { var define = require('amdefine')(module) } 2 | 3 | // Include all our dependencies and return the resulting library. 4 | 5 | define(['./parser', './markdown_helpers', './render_tree', './dialects/gruber', './dialects/maruku'], function(Markdown) { 6 | return Markdown; 7 | }); 8 | -------------------------------------------------------------------------------- /test/features/blockquotes/contains_code.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["blockquote", 3 | ["p", 4 | "There's a code block in here:" 5 | ], 6 | ["pre", 7 | ["code", 8 | "SET foo = TRUE\n\nIF foo GOTO 10" 9 | ] 10 | ], 11 | ["p", 12 | "Wasn't that nice?" 13 | ] 14 | ] 15 | ] 16 | -------------------------------------------------------------------------------- /test/features/blockquotes/contains_code.text: -------------------------------------------------------------------------------- 1 | > There's a code block in here: 2 | > 3 | > SET foo = TRUE 4 | > 5 | > IF foo GOTO 10 6 | > 7 | > Wasn't that nice? 8 | -------------------------------------------------------------------------------- /test/features/blockquotes/lazy_wrapping.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["blockquote", 3 | ["p", 4 | "If you're too lazy\nto wrap your code nicely" 5 | ], 6 | ["p", 7 | "This will still work" 8 | ] 9 | ] 10 | ] 11 | -------------------------------------------------------------------------------- /test/features/blockquotes/lazy_wrapping.text: -------------------------------------------------------------------------------- 1 | > If you're too lazy 2 | to wrap your code nicely 3 | 4 | > This will still work 5 | -------------------------------------------------------------------------------- /test/features/blockquotes/leading_paras.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "Amy wrote:" 4 | ], 5 | ["blockquote", 6 | ["p", 7 | "No wai?" 8 | ] 9 | ], 10 | ["p", 11 | "Bob wrote:" 12 | ], 13 | ["blockquote", 14 | ["p", 15 | "Ya rly!" 16 | ] 17 | ] 18 | ] 19 | -------------------------------------------------------------------------------- /test/features/blockquotes/leading_paras.text: -------------------------------------------------------------------------------- 1 | Amy wrote: 2 | > No wai? 3 | 4 | Bob wrote: 5 | > Ya rly! 6 | -------------------------------------------------------------------------------- /test/features/blockquotes/nested.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["blockquote", 3 | ["p", 4 | "One" 5 | ], 6 | ["blockquote", 7 | ["p", 8 | "Two" 9 | ] 10 | ], 11 | ["p", 12 | "Three" 13 | ] 14 | ] 15 | ] 16 | -------------------------------------------------------------------------------- /test/features/blockquotes/nested.text: -------------------------------------------------------------------------------- 1 | > One 2 | > 3 | > > Two 4 | > 5 | > Three 6 | -------------------------------------------------------------------------------- /test/features/blockquotes/simple.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["blockquote", 3 | ["p", 4 | "Blockquote" 5 | ] 6 | ] 7 | ] 8 | -------------------------------------------------------------------------------- /test/features/blockquotes/simple.text: -------------------------------------------------------------------------------- 1 | > Blockquote 2 | -------------------------------------------------------------------------------- /test/features/blockquotes/spaceless.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["blockquote", 3 | ["p", 4 | "blockquote\nwithout spaces" 5 | ] 6 | ] 7 | ] 8 | -------------------------------------------------------------------------------- /test/features/blockquotes/spaceless.text: -------------------------------------------------------------------------------- 1 | >blockquote 2 | >without spaces 3 | -------------------------------------------------------------------------------- /test/features/blockquotes/spaces_before.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["blockquote", 3 | ["p", 4 | "evil" 5 | ] 6 | ] 7 | ] 8 | -------------------------------------------------------------------------------- /test/features/blockquotes/spaces_before.text: -------------------------------------------------------------------------------- 1 | > evil -------------------------------------------------------------------------------- /test/features/blockquotes/threequotes.json: -------------------------------------------------------------------------------- 1 | [ "html", 2 | [ "blockquote", 3 | [ "p", "this is" ], 4 | [ "p", "three" ], 5 | [ "p", "quotes" ] 6 | ] 7 | ] 8 | -------------------------------------------------------------------------------- /test/features/blockquotes/threequotes.text: -------------------------------------------------------------------------------- 1 | > this is 2 | 3 | > three 4 | 5 | > quotes 6 | -------------------------------------------------------------------------------- /test/features/code/blank_lines.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "This block is composed of three lines:" 4 | ], 5 | ["pre", 6 | ["code", 7 | "one\n\nthree" 8 | ] 9 | ], 10 | ["p", 11 | "This block is composed of 5" 12 | ], 13 | ["pre", 14 | ["code", 15 | "one\n\n\nfour" 16 | ] 17 | ], 18 | ["p", 19 | "This block is composed of 2" 20 | ], 21 | ["pre", 22 | ["code", 23 | "two" 24 | ] 25 | ] 26 | ] 27 | -------------------------------------------------------------------------------- /test/features/code/blank_lines.text: -------------------------------------------------------------------------------- 1 | This block is composed of three lines: 2 | 3 | one 4 | 5 | three 6 | 7 | This block is composed of 5 8 | 9 | 10 | one 11 | 12 | 13 | four 14 | 15 | 16 | This block is composed of 2 17 | 18 | 19 | two 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /test/features/code/block.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "Here is an example of AppleScript:" 4 | ], 5 | ["pre", 6 | ["code", 7 | "tell application \"Foo\"\n beep\nend tell\n\ttab" 8 | ] 9 | ] 10 | ] 11 | -------------------------------------------------------------------------------- /test/features/code/block.text: -------------------------------------------------------------------------------- 1 | Here is an example of AppleScript: 2 | 3 | tell application "Foo" 4 | beep 5 | end tell 6 | tab 7 | 8 | -------------------------------------------------------------------------------- /test/features/code/embedded_backtick.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "This is a ", 4 | ["code", 5 | "code span with an `embedded` backtick"], 6 | "." 7 | ] 8 | ] 9 | -------------------------------------------------------------------------------- /test/features/code/embedded_backtick.text: -------------------------------------------------------------------------------- 1 | This is a ``code span with an `embedded` backtick``. 2 | -------------------------------------------------------------------------------- /test/features/code/horizontal_rules.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["pre", 3 | ["code", 4 | "fsfsfsf\n* * *\n\n***\n\n*****\n\n- - -\n\n---------------------------------------" 5 | ] 6 | ] 7 | ] 8 | -------------------------------------------------------------------------------- /test/features/code/horizontal_rules.text: -------------------------------------------------------------------------------- 1 | fsfsfsf 2 | * * * 3 | 4 | *** 5 | 6 | ***** 7 | 8 | - - - 9 | 10 | --------------------------------------- 11 | -------------------------------------------------------------------------------- /test/features/code/in_lists.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["ul", 3 | ["li", 4 | ["p", 5 | "Loose list" 6 | ], 7 | ["pre", 8 | ["code", 9 | "some code\n\nmore code" 10 | ] 11 | ] 12 | ] 13 | ] 14 | ] 15 | -------------------------------------------------------------------------------- /test/features/code/in_lists.text: -------------------------------------------------------------------------------- 1 | * Loose list 2 | 3 | some code 4 | 5 | more code 6 | -------------------------------------------------------------------------------- /test/features/code/inline.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | ["code", 4 | "This" 5 | ], 6 | " is a code span." 7 | ] 8 | ] 9 | -------------------------------------------------------------------------------- /test/features/code/inline.text: -------------------------------------------------------------------------------- 1 | `This` is a code span. 2 | -------------------------------------------------------------------------------- /test/features/code/inline_multiline.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "foo ", 4 | ["code", 5 | "code\ncode" 6 | ], 7 | " bar" 8 | ] 9 | ] 10 | -------------------------------------------------------------------------------- /test/features/code/inline_multiline.text: -------------------------------------------------------------------------------- 1 | foo `code 2 | code` bar 3 | -------------------------------------------------------------------------------- /test/features/code/trailing_para.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "Paragraph above" 4 | ], 5 | ["pre", 6 | ["code", 7 | "Code block" 8 | ] 9 | ], 10 | ["p", 11 | "Paragraph below" 12 | ] 13 | ] 14 | -------------------------------------------------------------------------------- /test/features/code/trailing_para.text: -------------------------------------------------------------------------------- 1 | Paragraph above 2 | 3 | Code block 4 | Paragraph below 5 | -------------------------------------------------------------------------------- /test/features/code/with_greater_than.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["pre", 3 | ["code", "> meep"] 4 | ] 5 | ] 6 | -------------------------------------------------------------------------------- /test/features/code/with_greater_than.text: -------------------------------------------------------------------------------- 1 | > meep -------------------------------------------------------------------------------- /test/features/definition_lists/inline.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["dl", 3 | ["dt", 4 | "a term" 5 | ], 6 | ["dd", 7 | ["em", 8 | "emphasised" 9 | ], 10 | " definition." 11 | ], 12 | ["dt", 13 | "another term" 14 | ], 15 | ["dd", 16 | ["strong", 17 | "strong" 18 | ], 19 | " definition." 20 | ] 21 | ] 22 | ] 23 | -------------------------------------------------------------------------------- /test/features/definition_lists/inline.text: -------------------------------------------------------------------------------- 1 | a term 2 | : *emphasised* definition. 3 | 4 | another term 5 | : **strong** definition. 6 | -------------------------------------------------------------------------------- /test/features/definition_lists/long.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["dl", 3 | ["dt", 4 | "first term" 5 | ], 6 | ["dd", 7 | "the quick brown fox jumps\nover the lazy dog" 8 | ], 9 | ["dt", 10 | "second term" 11 | ], 12 | ["dd", 13 | "pack my box with five\ndozen liquor jugs" 14 | ] 15 | ] 16 | ] 17 | -------------------------------------------------------------------------------- /test/features/definition_lists/long.text: -------------------------------------------------------------------------------- 1 | first term 2 | : the quick brown fox jumps 3 | over the lazy dog 4 | 5 | second term 6 | : pack my box with five 7 | dozen liquor jugs 8 | -------------------------------------------------------------------------------- /test/features/definition_lists/multiple_definitions.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["dl", 3 | ["dt", 4 | "fruit" 5 | ], 6 | ["dd", 7 | "apple" 8 | ], 9 | ["dd", 10 | "banana" 11 | ], 12 | ["dd", 13 | "pear" 14 | ], 15 | ["dt", 16 | "animal" 17 | ], 18 | ["dd", 19 | "cow" 20 | ], 21 | ["dd", 22 | "duck" 23 | ], 24 | ["dd", 25 | "horse" 26 | ] 27 | ] 28 | ] 29 | -------------------------------------------------------------------------------- /test/features/definition_lists/multiple_definitions.text: -------------------------------------------------------------------------------- 1 | fruit 2 | : apple 3 | : banana 4 | : pear 5 | 6 | animal 7 | : cow 8 | : duck 9 | : horse 10 | -------------------------------------------------------------------------------- /test/features/definition_lists/multiple_terms.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["dl", 3 | ["dt", 4 | "fruit" 5 | ], 6 | ["dt", 7 | "vegetable" 8 | ], 9 | ["dd", 10 | "tomato" 11 | ], 12 | ["dt", 13 | "animal" 14 | ], 15 | ["dt", 16 | "mineral" 17 | ], 18 | ["dd", 19 | "pet rock" 20 | ] 21 | ] 22 | ] 23 | -------------------------------------------------------------------------------- /test/features/definition_lists/multiple_terms.text: -------------------------------------------------------------------------------- 1 | fruit 2 | vegetable 3 | : tomato 4 | 5 | animal 6 | mineral 7 | : pet rock 8 | -------------------------------------------------------------------------------- /test/features/definition_lists/tight.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["dl", 3 | ["dt", 4 | "one" 5 | ], 6 | ["dd", 7 | "alpha" 8 | ], 9 | ["dt", 10 | "two" 11 | ], 12 | ["dd", 13 | "beta" 14 | ], 15 | ["dt", 16 | "three" 17 | ], 18 | ["dd", 19 | "gamma" 20 | ] 21 | ] 22 | ] 23 | -------------------------------------------------------------------------------- /test/features/definition_lists/tight.text: -------------------------------------------------------------------------------- 1 | one 2 | : alpha 3 | 4 | two 5 | : beta 6 | 7 | three 8 | : gamma 9 | -------------------------------------------------------------------------------- /test/features/emphasis/multiple_lines.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "You can ", 4 | ["em", 5 | "start emphasis on one line,\nand finish it" 6 | ], 7 | " on another." 8 | ] 9 | ] 10 | -------------------------------------------------------------------------------- /test/features/emphasis/multiple_lines.text: -------------------------------------------------------------------------------- 1 | You can *start emphasis on one line, 2 | and finish it* on another. 3 | -------------------------------------------------------------------------------- /test/features/emphasis/nested.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "You can ", 4 | ["strong", 5 | "nest ", 6 | ["em", 7 | "em" 8 | ], 9 | " inside strong" 10 | ], 11 | "." 12 | ], 13 | ["p", 14 | "You can ", 15 | ["em", 16 | "nest ", 17 | ["strong", 18 | "strong" 19 | ], 20 | " inside em" 21 | ], 22 | "." 23 | ] 24 | ] 25 | -------------------------------------------------------------------------------- /test/features/emphasis/nested.text: -------------------------------------------------------------------------------- 1 | You can **nest *em* inside strong**. 2 | 3 | You can *nest **strong** inside em*. 4 | -------------------------------------------------------------------------------- /test/features/emphasis/simple.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "Emphasis can be ", 4 | ["em", 5 | "weak" 6 | ], 7 | " or ", 8 | ["strong", 9 | "strong" 10 | ], 11 | "." 12 | ], 13 | ["p", 14 | "It can ", 15 | ["em", 16 | "even" 17 | ], 18 | " use ", 19 | ["strong", 20 | "underscores" 21 | ], 22 | "." 23 | ] 24 | ] 25 | -------------------------------------------------------------------------------- /test/features/emphasis/simple.text: -------------------------------------------------------------------------------- 1 | Emphasis can be *weak* or **strong**. 2 | 3 | It can _even_ use __underscores__. 4 | -------------------------------------------------------------------------------- /test/features/headers/atx.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["h1", 3 | "One" 4 | ], 5 | ["h2", 6 | "Two" 7 | ], 8 | ["h3", 9 | "Three" 10 | ], 11 | ["h4", 12 | "Four" 13 | ], 14 | ["h5", 15 | "Five" 16 | ], 17 | ["h6", 18 | "Six" 19 | ] 20 | ] 21 | -------------------------------------------------------------------------------- /test/features/headers/atx.text: -------------------------------------------------------------------------------- 1 | # One 2 | 3 | ## Two 4 | 5 | ### Three 6 | 7 | #### Four 8 | 9 | ##### Five 10 | 11 | ###### Six 12 | -------------------------------------------------------------------------------- /test/features/headers/atx_closing_hashes.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["h1", 3 | "One" 4 | ], 5 | ["h2", 6 | "Two" 7 | ], 8 | ["h3", 9 | "Three" 10 | ] 11 | ] 12 | -------------------------------------------------------------------------------- /test/features/headers/atx_closing_hashes.text: -------------------------------------------------------------------------------- 1 | # One # 2 | 3 | ## Two ##### 4 | 5 | ### Three ## 6 | -------------------------------------------------------------------------------- /test/features/headers/inline.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["h2", 3 | ["strong", "Bold"] 4 | ] 5 | ] 6 | -------------------------------------------------------------------------------- /test/features/headers/inline.text: -------------------------------------------------------------------------------- 1 | **Bold** 2 | -------- -------------------------------------------------------------------------------- /test/features/headers/setext.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["h1", 3 | "One" 4 | ], 5 | ["h2", 6 | "Two" 7 | ] 8 | ] 9 | -------------------------------------------------------------------------------- /test/features/headers/setext.text: -------------------------------------------------------------------------------- 1 | One 2 | === 3 | 4 | Two 5 | --- 6 | -------------------------------------------------------------------------------- /test/features/headers/trailing_paras.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["h1", 3 | "Header" 4 | ], 5 | ["p", 6 | "Paragraph" 7 | ], 8 | ["h2", 9 | "Header" 10 | ], 11 | ["p", 12 | "Paragraph" 13 | ], 14 | ["h3", 15 | "Header" 16 | ], 17 | ["p", 18 | "Paragraph" 19 | ] 20 | ] 21 | -------------------------------------------------------------------------------- /test/features/headers/trailing_paras.text: -------------------------------------------------------------------------------- 1 | Header 2 | ====== 3 | Paragraph 4 | 5 | Header 6 | ------ 7 | Paragraph 8 | 9 | ### Header 10 | Paragraph 11 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/abutting_blocks.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "para" 4 | ], 5 | ["hr"], 6 | ["ul", 7 | ["li", 8 | "list" 9 | ] 10 | ], 11 | ["hr"], 12 | ["ul", 13 | ["li", 14 | "list before para" 15 | ] 16 | ], 17 | ["p", 18 | " para" 19 | ], 20 | ["hr"], 21 | ["blockquote", 22 | ["p", 23 | "blockquote" 24 | ] 25 | ] 26 | ] 27 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/abutting_blocks.text: -------------------------------------------------------------------------------- 1 | para 2 | *** 3 | * list 4 | - - - 5 | * list before para 6 | 7 | para 8 | - - - 9 | > blockquote 10 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/dashes.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["hr"] 3 | ] 4 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/dashes.text: -------------------------------------------------------------------------------- 1 | --- 2 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/front_matter.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["hr"], 3 | ["p", 4 | "layout: post\ntitle: A title" 5 | ], 6 | ["hr"], 7 | ["p", 8 | "Pack my box with five dozen liquor jugs." 9 | ] 10 | ] 11 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/front_matter.text: -------------------------------------------------------------------------------- 1 | --- 2 | layout: post 3 | title: A title 4 | --- 5 | 6 | Pack my box with five dozen liquor jugs. 7 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/leading_spaces.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["hr"] 3 | ] 4 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/leading_spaces.text: -------------------------------------------------------------------------------- 1 | * * * 2 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/long.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["hr"] 3 | ] 4 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/long.text: -------------------------------------------------------------------------------- 1 | ********************* 2 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/long_loose.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["hr"] 3 | ] 4 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/long_loose.text: -------------------------------------------------------------------------------- 1 | * * * * * * * * * * * 2 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/loose_dashes.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["hr"] 3 | ] 4 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/loose_dashes.text: -------------------------------------------------------------------------------- 1 | - - - 2 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/loose_stars.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["hr"] 3 | ] 4 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/loose_stars.text: -------------------------------------------------------------------------------- 1 | * * * 2 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/loose_underscores.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["hr"] 3 | ] 4 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/loose_underscores.text: -------------------------------------------------------------------------------- 1 | _ _ _ 2 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/stars.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["hr"] 3 | ] 4 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/stars.text: -------------------------------------------------------------------------------- 1 | *** 2 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/underscores.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["hr"] 3 | ] 4 | -------------------------------------------------------------------------------- /test/features/horizontal_rules/underscores.text: -------------------------------------------------------------------------------- 1 | ___ 2 | -------------------------------------------------------------------------------- /test/features/images/basic.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | ["img", { 4 | "src": "/path/to/img.jpg", 5 | "alt": "Alt text" 6 | } ] 7 | ] 8 | ] 9 | -------------------------------------------------------------------------------- /test/features/images/basic.text: -------------------------------------------------------------------------------- 1 | ![Alt text](/path/to/img.jpg) 2 | -------------------------------------------------------------------------------- /test/features/images/crotcheted_url.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | ["img", { 4 | "src": "/url/", 5 | "alt": "alt text" 6 | } ] 7 | ] 8 | ] 9 | -------------------------------------------------------------------------------- /test/features/images/crotcheted_url.text: -------------------------------------------------------------------------------- 1 | ![alt text]() 2 | -------------------------------------------------------------------------------- /test/features/images/crotcheted_url_with_title.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | ["img", { 4 | "src": "/url/", 5 | "alt": "alt text", 6 | "title": "with a title" 7 | } ] 8 | ] 9 | ] 10 | -------------------------------------------------------------------------------- /test/features/images/crotcheted_url_with_title.text: -------------------------------------------------------------------------------- 1 | ![alt text]( "with a title") 2 | -------------------------------------------------------------------------------- /test/features/images/empty.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | ["img", { 4 | "src": "", 5 | "alt": "Empty" 6 | } ] 7 | ] 8 | ] 9 | -------------------------------------------------------------------------------- /test/features/images/empty.text: -------------------------------------------------------------------------------- 1 | ![Empty]() 2 | -------------------------------------------------------------------------------- /test/features/images/incomplete_image.json: -------------------------------------------------------------------------------- 1 | [ "html", 2 | [ "p", 3 | "![alert](http://cdn.eviltrout.com/images/trout.png" ] ] 4 | 5 | -------------------------------------------------------------------------------- /test/features/images/incomplete_image.text: -------------------------------------------------------------------------------- 1 | ![alert](http://cdn.eviltrout.com/images/trout.png 2 | 3 | -------------------------------------------------------------------------------- /test/features/images/inside_link.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | ["a", 4 | { "href": "https://link-url" }, 5 | ["img", { 6 | "alt": "alt", 7 | "src": "https://img-url" 8 | } ] 9 | ] 10 | ] 11 | ] 12 | -------------------------------------------------------------------------------- /test/features/images/inside_link.text: -------------------------------------------------------------------------------- 1 | [![alt](https://img-url)](https://link-url) 2 | -------------------------------------------------------------------------------- /test/features/images/ref.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | ["img", { 4 | "src": "/path/to/img.jpg", 5 | "alt": "Alt text" 6 | } ] 7 | ] 8 | ] 9 | -------------------------------------------------------------------------------- /test/features/images/ref.text: -------------------------------------------------------------------------------- 1 | ![Alt text] [img] 2 | 3 | [img]: /path/to/img.jpg 4 | -------------------------------------------------------------------------------- /test/features/images/spaces_in_href.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | ["img", { 4 | "src": "path to img.jpg", 5 | "alt": "Alt text" 6 | } ] 7 | ] 8 | ] 9 | -------------------------------------------------------------------------------- /test/features/images/spaces_in_href.text: -------------------------------------------------------------------------------- 1 | ![Alt text](path to img.jpg) 2 | -------------------------------------------------------------------------------- /test/features/images/spaces_round_title.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | ["img", { 4 | "src": "/url/", 5 | "alt": "alt text", 6 | "title": "title has spaces afterward" 7 | } ] 8 | ] 9 | ] 10 | -------------------------------------------------------------------------------- /test/features/images/spaces_round_title.text: -------------------------------------------------------------------------------- 1 | ![alt text](/url/ "title has spaces afterward" ) 2 | -------------------------------------------------------------------------------- /test/features/images/title.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | ["img", { 4 | "src": "/path/to/img.jpg", 5 | "alt": "Alt text", 6 | "title": "Optional title" 7 | } ] 8 | ] 9 | ] 10 | -------------------------------------------------------------------------------- /test/features/images/title.text: -------------------------------------------------------------------------------- 1 | ![Alt text](/path/to/img.jpg "Optional title") 2 | -------------------------------------------------------------------------------- /test/features/linebreaks/simple.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "The quick brown fox", 4 | ["br"], 5 | "jumps over the lazy dog." 6 | ] 7 | ] 8 | -------------------------------------------------------------------------------- /test/features/linebreaks/simple.text: -------------------------------------------------------------------------------- 1 | The quick brown fox 2 | jumps over the lazy dog. 3 | -------------------------------------------------------------------------------- /test/features/links/apostrophe.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | ["a", 4 | { "href" : "http://wiki.postgresql.org/wiki/What's_new_in_PostgreSQL_9.3" }, 5 | "Postgres 9.3" 6 | ] 7 | ] 8 | ] 9 | -------------------------------------------------------------------------------- /test/features/links/apostrophe.text: -------------------------------------------------------------------------------- 1 | [Postgres 9.3](http://wiki.postgresql.org/wiki/What's_new_in_PostgreSQL_9.3) 2 | -------------------------------------------------------------------------------- /test/features/links/autolink_email.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "Email addresses written like ", 4 | ["a", 5 | { "href" : "mailto:bill@microsoft.com" }, 6 | "bill@microsoft.com" 7 | ], 8 | " get autolinkified." 9 | ] 10 | ] 11 | -------------------------------------------------------------------------------- /test/features/links/autolink_email.text: -------------------------------------------------------------------------------- 1 | Email addresses written like get autolinkified. 2 | -------------------------------------------------------------------------------- /test/features/links/autolink_in_code.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "Autolinks don't happen inside code: ", 4 | ["code", 5 | "" 6 | ] 7 | ] 8 | ] 9 | -------------------------------------------------------------------------------- /test/features/links/autolink_in_code.text: -------------------------------------------------------------------------------- 1 | Autolinks don't happen inside code: `` 2 | -------------------------------------------------------------------------------- /test/features/links/autolink_url.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "URLs like ", 4 | ["a", 5 | { "href" : "http://google.com" }, 6 | "http://google.com" 7 | ], 8 | " get autolinkified." 9 | ] 10 | ] 11 | -------------------------------------------------------------------------------- /test/features/links/autolink_url.text: -------------------------------------------------------------------------------- 1 | URLs like get autolinkified. 2 | -------------------------------------------------------------------------------- /test/features/links/broken_brackets.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", "[[][]"] 3 | ] 4 | -------------------------------------------------------------------------------- /test/features/links/broken_brackets.text: -------------------------------------------------------------------------------- 1 | [[][] 2 | -------------------------------------------------------------------------------- /test/features/links/broken_link.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", "[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]"] 3 | ] 4 | -------------------------------------------------------------------------------- /test/features/links/broken_link.text: -------------------------------------------------------------------------------- 1 | [[[[[[[[[[[[[[[[[[[[[[[[[[[[[] -------------------------------------------------------------------------------- /test/features/links/case_insensitive.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "This is ", 4 | ["a", 5 | { "href" : "http://google.com" }, 6 | "google" 7 | ], 8 | ". ", 9 | ["a", 10 | { "href" : "http://google.com" }, 11 | "Google" 12 | ], 13 | " and ", 14 | ["a", 15 | { "href" : "http://google.com" }, 16 | "this" 17 | ], 18 | " are the same thing too" 19 | ] 20 | ] 21 | -------------------------------------------------------------------------------- /test/features/links/case_insensitive.text: -------------------------------------------------------------------------------- 1 | This is [google]. [Google] and [this][GoOgLe] are the same thing too 2 | 3 | [GOOGLE]: http://google.com 4 | -------------------------------------------------------------------------------- /test/features/links/escaped_broken_link.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", "[][][][][][][][][][][][][][][][][][][][][]"] 3 | ] 4 | -------------------------------------------------------------------------------- /test/features/links/escaped_broken_link.text: -------------------------------------------------------------------------------- 1 | [\][\][\][\][\][\][\][\][\][\][\][\][\][\][\][\][\][\][\][\][\] -------------------------------------------------------------------------------- /test/features/links/implicit.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "These ", 4 | ["a", 5 | { "href" : "http://links.com" }, 6 | "links" 7 | ], 8 | " use ", 9 | ["a", 10 | { "href" : "http://implicit.com" }, 11 | "implicit" 12 | ], 13 | " references." 14 | ] 15 | ] 16 | -------------------------------------------------------------------------------- /test/features/links/implicit.text: -------------------------------------------------------------------------------- 1 | These [links][] use [implicit] references. 2 | 3 | [links]: http://links.com 4 | [implicit]: http://implicit.com 5 | -------------------------------------------------------------------------------- /test/features/links/in_blockquotes.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["blockquote", 3 | ["p", 4 | "Let's fork this repo!" 5 | ], 6 | ["p", 7 | "[markdown][]" 8 | ] 9 | ] 10 | ] 11 | -------------------------------------------------------------------------------- /test/features/links/in_blockquotes.text: -------------------------------------------------------------------------------- 1 | > Let's fork this repo! 2 | > 3 | > [markdown][] 4 | > 5 | > [markdown]: https://github.com/evilstreak/markdown-js 6 | -------------------------------------------------------------------------------- /test/features/links/in_brackets.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "Lorem ipsum (", 4 | ["a", {"href": "http://www.lipsum.com/"}, "lorem ipsum"], 5 | ") dolar sit amut" 6 | ], 7 | ["p", 8 | "(", 9 | ["a", {"href": "/url()((test))"}, "Inline link"], 10 | ")" 11 | ] 12 | ] 13 | -------------------------------------------------------------------------------- /test/features/links/in_brackets.text: -------------------------------------------------------------------------------- 1 | Lorem ipsum ([lorem ipsum](http://www.lipsum.com/)) dolar sit amut 2 | 3 | ([Inline link](/url()((test)))) 4 | -------------------------------------------------------------------------------- /test/features/links/inline.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "An ", 4 | ["a", 5 | { "href" : "http://inline.com" }, 6 | "inline" 7 | ], 8 | " link." 9 | ] 10 | ] 11 | -------------------------------------------------------------------------------- /test/features/links/inline.text: -------------------------------------------------------------------------------- 1 | An [inline](http://inline.com) link. 2 | -------------------------------------------------------------------------------- /test/features/links/inline_with_newline.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "An ", 4 | ["a", 5 | { "href" : "http://inline.com" }, 6 | "inline\nlink" 7 | ], 8 | " with a newline." 9 | ] 10 | ] 11 | -------------------------------------------------------------------------------- /test/features/links/inline_with_newline.text: -------------------------------------------------------------------------------- 1 | An [inline 2 | link](http://inline.com) with a newline. 3 | -------------------------------------------------------------------------------- /test/features/links/inline_with_title.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "An ", 4 | ["a", 5 | { "href" : "http://inline.com", 6 | "title" : "le title" }, 7 | "inline link" 8 | ], 9 | " with a title." 10 | ] 11 | ] 12 | -------------------------------------------------------------------------------- /test/features/links/inline_with_title.text: -------------------------------------------------------------------------------- 1 | An [inline link](http://inline.com "le title") with a title. 2 | -------------------------------------------------------------------------------- /test/features/links/missing_references.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "Link with [missing][id] reference" 4 | ], 5 | ["p", 6 | "Link with [empty][] reference" 7 | ], 8 | ["p", 9 | "Link with [inferred] reference" 10 | ] 11 | ] 12 | -------------------------------------------------------------------------------- /test/features/links/missing_references.text: -------------------------------------------------------------------------------- 1 | Link with [missing][id] reference 2 | 3 | Link with [empty][] reference 4 | 5 | Link with [inferred] reference 6 | -------------------------------------------------------------------------------- /test/features/links/no_closing.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "[[1]" 4 | ] 5 | ] 6 | -------------------------------------------------------------------------------- /test/features/links/no_closing.text: -------------------------------------------------------------------------------- 1 | [[1] 2 | -------------------------------------------------------------------------------- /test/features/links/parens_escaped_inline.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | ["a", 4 | { "href": "/url(test)", 5 | "title": "title" }, 6 | "Inline link" 7 | ], 8 | " with escaped parens." 9 | ] 10 | ] 11 | -------------------------------------------------------------------------------- /test/features/links/parens_escaped_inline.text: -------------------------------------------------------------------------------- 1 | [Inline link](/url\(test\) "title") with escaped parens. 2 | -------------------------------------------------------------------------------- /test/features/links/parens_inline.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | ["a", 4 | { "href": "/url(test)", 5 | "title": "title" }, 6 | "Inline link" 7 | ], 8 | " with non-escaped parens." 9 | ] 10 | ] 11 | -------------------------------------------------------------------------------- /test/features/links/parens_inline.text: -------------------------------------------------------------------------------- 1 | [Inline link](/url(test) "title") with non-escaped parens. 2 | -------------------------------------------------------------------------------- /test/features/links/parens_reference.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | ["a", 4 | { "href": "/url(test)", 5 | "title": "title" }, 6 | "Reference link" 7 | ], 8 | " with non-escaped parens." 9 | ] 10 | ] 11 | -------------------------------------------------------------------------------- /test/features/links/parens_reference.text: -------------------------------------------------------------------------------- 1 | [Reference link][1] with non-escaped parens. 2 | 3 | [1]: /url(test) "title" 4 | -------------------------------------------------------------------------------- /test/features/links/ref_reuse.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "Two ", 4 | ["a", 5 | { "href" : "http://google.com" }, 6 | "links" 7 | ], 8 | ", one ", 9 | ["a", 10 | { "href" : "http://google.com" }, 11 | "ref" 12 | ] 13 | ] 14 | ] 15 | -------------------------------------------------------------------------------- /test/features/links/ref_reuse.text: -------------------------------------------------------------------------------- 1 | Two [links][id], one [ref][id] 2 | 3 | [id]: http://google.com 4 | -------------------------------------------------------------------------------- /test/features/links/ref_with_image_ref.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | ["a", 4 | {"href": "http://link_url"}, 5 | ["img", 6 | {"src": "http://image_url", "alt": "alt text"} 7 | ] 8 | ] 9 | ] 10 | ] -------------------------------------------------------------------------------- /test/features/links/ref_with_image_ref.text: -------------------------------------------------------------------------------- 1 | [![alt text][id_2]][id_1] 2 | 3 | [id_1]: http://link_url 4 | [id_2]: http://image_url -------------------------------------------------------------------------------- /test/features/links/reference.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "A ", 4 | ["a", 5 | { "href" : "http://reference.com" }, 6 | "link using a reference" 7 | ], 8 | "." 9 | ] 10 | ] 11 | -------------------------------------------------------------------------------- /test/features/links/reference.text: -------------------------------------------------------------------------------- 1 | A [link using a reference][1]. 2 | 3 | [1]: http://reference.com 4 | -------------------------------------------------------------------------------- /test/features/links/reference_missing.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | ["a", 4 | { "href" : "http://example.com" }, 5 | "hi" 6 | ] 7 | ], 8 | ["ul", ["li"]] 9 | ] 10 | -------------------------------------------------------------------------------- /test/features/links/reference_missing.text: -------------------------------------------------------------------------------- 1 | [hi][link] 2 | 3 | - [link]: http://example.com 4 | -------------------------------------------------------------------------------- /test/features/links/reference_with_newline.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "This one has a ", 4 | ["a", 5 | { "href" : "/foo" }, 6 | "line\nbreak" 7 | ], 8 | "." 9 | ] 10 | ] 11 | -------------------------------------------------------------------------------- /test/features/links/reference_with_newline.text: -------------------------------------------------------------------------------- 1 | This one has a [line 2 | break]. 3 | 4 | [line break]: /foo 5 | -------------------------------------------------------------------------------- /test/features/links/reference_with_newline_and_space.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "This one has a ", 4 | ["a", 5 | { "href" : "/foo" }, 6 | "line \nbreak" 7 | ], 8 | "." 9 | ] 10 | ] 11 | -------------------------------------------------------------------------------- /test/features/links/reference_with_newline_and_space.text: -------------------------------------------------------------------------------- 1 | This one has a [line 2 | break]. 3 | 4 | [line break]: /foo 5 | -------------------------------------------------------------------------------- /test/features/links/reference_with_quote.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "Foo ", [ "a", {"href": "/url/", "title": "Title with \"quotes\" inside"}, "bar" ], "." 4 | ] 5 | ] 6 | -------------------------------------------------------------------------------- /test/features/links/reference_with_quote.text: -------------------------------------------------------------------------------- 1 | Foo [bar][]. 2 | 3 | [bar]: /url/ "Title with "quotes" inside" 4 | -------------------------------------------------------------------------------- /test/features/links/reference_with_space.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "A ", 4 | ["a", 5 | { "href" : "http://reference.com" }, 6 | "link using a reference" 7 | ], 8 | " separated by a space." 9 | ] 10 | ] 11 | -------------------------------------------------------------------------------- /test/features/links/reference_with_space.text: -------------------------------------------------------------------------------- 1 | A [link using a reference] [1] separated by a space. 2 | 3 | [1]: http://reference.com 4 | -------------------------------------------------------------------------------- /test/features/links/spaces_in_url.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | ["a", 4 | { "href" : "Link to file/Lorem Ipsum.txt", "title" : "Alt2" }, 5 | "link text" 6 | ] 7 | ] 8 | ] 9 | -------------------------------------------------------------------------------- /test/features/links/spaces_in_url.text: -------------------------------------------------------------------------------- 1 | [link text](Link to file/Lorem Ipsum.txt "Alt2") 2 | -------------------------------------------------------------------------------- /test/features/lists/bullet_types.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "Stars" 4 | ], 5 | ["ul", 6 | ["li", 7 | "star" 8 | ] 9 | ], 10 | ["p", 11 | "Dashes" 12 | ], 13 | ["ul", 14 | ["li", 15 | "dash" 16 | ] 17 | ], 18 | ["p", 19 | "Pluses" 20 | ], 21 | ["ul", 22 | ["li", 23 | "plus" 24 | ] 25 | ] 26 | ] 27 | -------------------------------------------------------------------------------- /test/features/lists/bullet_types.text: -------------------------------------------------------------------------------- 1 | Stars 2 | 3 | * star 4 | 5 | Dashes 6 | 7 | - dash 8 | 9 | Pluses 10 | 11 | + plus 12 | -------------------------------------------------------------------------------- /test/features/lists/hr_abutting.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["ul", 3 | [ "li", "foo" ], 4 | [ "li", "bar" ] 5 | ], 6 | ["hr"], 7 | ["p", "after"] 8 | ] 9 | 10 | -------------------------------------------------------------------------------- /test/features/lists/hr_abutting.text: -------------------------------------------------------------------------------- 1 | * foo 2 | * bar 3 | 4 | * * * 5 | after 6 | 7 | -------------------------------------------------------------------------------- /test/features/lists/hr_inside.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["ul", 3 | [ "li", 4 | ["p", "before"], 5 | ["hr"], 6 | ["p", "after"] 7 | ] 8 | ] 9 | ] 10 | 11 | -------------------------------------------------------------------------------- /test/features/lists/hr_inside.text: -------------------------------------------------------------------------------- 1 | * before 2 | 3 | - - - - 4 | after 5 | 6 | -------------------------------------------------------------------------------- /test/features/lists/lazy_wrapping.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["ul", 3 | ["li", 4 | "If you're too\nlazy to wrap your" 5 | ], 6 | ["li", 7 | "Lists nicely, this\nwill still work" 8 | ] 9 | ] 10 | ] 11 | -------------------------------------------------------------------------------- /test/features/lists/lazy_wrapping.text: -------------------------------------------------------------------------------- 1 | * If you're too 2 | lazy to wrap your 3 | * Lists nicely, this 4 | will still work 5 | -------------------------------------------------------------------------------- /test/features/lists/leading_whitespace.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["ul", 3 | ["li", 4 | "white" 5 | ], 6 | ["li", 7 | "space" 8 | ] 9 | ] 10 | ] 11 | -------------------------------------------------------------------------------- /test/features/lists/leading_whitespace.text: -------------------------------------------------------------------------------- 1 | * white 2 | * space 3 | -------------------------------------------------------------------------------- /test/features/lists/loose.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["ul", 3 | ["li", 4 | ["p", 5 | "the quick brown fox jumps\nover the lazy dog" 6 | ] 7 | ], 8 | ["li", 9 | ["p", 10 | "pack my box with five\ndozen liquor jugs" 11 | ], 12 | ["p", 13 | "this item has a\nsecond paragraph" 14 | ] 15 | ], 16 | ["li", 17 | ["p", 18 | "this item has\nonly one paragraph" 19 | ] 20 | ] 21 | ] 22 | ] 23 | -------------------------------------------------------------------------------- /test/features/lists/loose.text: -------------------------------------------------------------------------------- 1 | * the quick brown fox jumps 2 | over the lazy dog 3 | 4 | * pack my box with five 5 | dozen liquor jugs 6 | 7 | this item has a 8 | second paragraph 9 | 10 | * this item has 11 | only one paragraph 12 | -------------------------------------------------------------------------------- /test/features/lists/loose_with_inline.text: -------------------------------------------------------------------------------- 1 | * List item _ending_ 2 | with _emphasis_. 3 | 4 | * List item 5 | with **strong emphasis**. 6 | 7 | * List item 8 | with [a link](http://google.com). 9 | -------------------------------------------------------------------------------- /test/features/lists/multiline_inline.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["ul", 3 | ["li", 4 | "List items can have ", 5 | [ "em", "inline content\nthat spans multiple lines" ], 6 | ". Pain" 7 | ] 8 | ] 9 | ] 10 | 11 | -------------------------------------------------------------------------------- /test/features/lists/multiline_inline.text: -------------------------------------------------------------------------------- 1 | * List items can have *inline content 2 | that spans multiple lines*. Pain 3 | -------------------------------------------------------------------------------- /test/features/lists/nested.text: -------------------------------------------------------------------------------- 1 | 1. one 2 | * alpha 3 | - almond 4 | - brazil 5 | * beta 6 | - cashew 7 | 2. two 8 | 3. three 9 | * gamma 10 | -------------------------------------------------------------------------------- /test/features/lists/nested_para.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["ol", 3 | ["li", ["p", "First"] ], 4 | ["li", 5 | ["p", "Second:"], 6 | ["ul", 7 | ["li", "Fee"], 8 | ["li", "Fie"], 9 | ["li", "Foe"] 10 | ] 11 | ], 12 | ["li", ["p", "Third"]] 13 | ] 14 | ] 15 | -------------------------------------------------------------------------------- /test/features/lists/nested_para.text: -------------------------------------------------------------------------------- 1 | 1. First 2 | 3 | 2. Second: 4 | * Fee 5 | * Fie 6 | * Foe 7 | 8 | 3. Third 9 | 10 | -------------------------------------------------------------------------------- /test/features/lists/numeric.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["ol", 3 | ["li", 4 | "one" 5 | ], 6 | ["li", 7 | "two" 8 | ], 9 | ["li", 10 | "three" 11 | ] 12 | ] 13 | ] 14 | -------------------------------------------------------------------------------- /test/features/lists/numeric.text: -------------------------------------------------------------------------------- 1 | 1. one 2 | 2. two 3 | 3. three 4 | -------------------------------------------------------------------------------- /test/features/lists/quote_inside.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["ol", 3 | [ "li", 4 | "bar", 5 | ["blockquote", ["p", "this should go under #1"]] 6 | ] 7 | ] 8 | ] 9 | 10 | -------------------------------------------------------------------------------- /test/features/lists/quote_inside.text: -------------------------------------------------------------------------------- 1 | 1. bar 2 | > this should go under #1 3 | -------------------------------------------------------------------------------- /test/features/lists/references.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["ul", 3 | ["li", 4 | ["a", {"href": "http://eviltrout.com"}, "Evil Trout"] 5 | ] 6 | ] 7 | ] 8 | -------------------------------------------------------------------------------- /test/features/lists/references.text: -------------------------------------------------------------------------------- 1 | * [Evil Trout][1] 2 | [1]: http://eviltrout.com -------------------------------------------------------------------------------- /test/features/lists/tight.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["ul", 3 | ["li", 4 | "alpha" 5 | ], 6 | ["li", 7 | "beta" 8 | ], 9 | ["li", 10 | "gamma" 11 | ] 12 | ] 13 | ] 14 | -------------------------------------------------------------------------------- /test/features/lists/tight.text: -------------------------------------------------------------------------------- 1 | * alpha 2 | * beta 3 | * gamma 4 | -------------------------------------------------------------------------------- /test/features/meta/attribute.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | { "foo" : "bar" }, 4 | "A paragraph with an\narbitrary attribute." 5 | ] 6 | ] 7 | -------------------------------------------------------------------------------- /test/features/meta/attribute.text: -------------------------------------------------------------------------------- 1 | A paragraph with an 2 | arbitrary attribute. 3 | {: foo=bar} 4 | -------------------------------------------------------------------------------- /test/features/meta/class.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | { "class" : "para" }, 4 | "This is a paragraph\nwith an ID." 5 | ] 6 | ] 7 | -------------------------------------------------------------------------------- /test/features/meta/class.text: -------------------------------------------------------------------------------- 1 | This is a paragraph 2 | with an ID. 3 | {: .para} 4 | -------------------------------------------------------------------------------- /test/features/meta/code.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["pre", 3 | { "foo" : "bar" }, 4 | ["code", 5 | "A pre with an\narbitrary attribute." 6 | ] 7 | ] 8 | ] 9 | -------------------------------------------------------------------------------- /test/features/meta/code.text: -------------------------------------------------------------------------------- 1 | A pre with an 2 | arbitrary attribute. 3 | {: foo=bar} 4 | -------------------------------------------------------------------------------- /test/features/meta/document.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | { 3 | "key" : "value", 4 | "anotherkey" : "another value" 5 | }, 6 | ["p", 7 | "A regular paragraph" 8 | ] 9 | ] 10 | -------------------------------------------------------------------------------- /test/features/meta/document.text: -------------------------------------------------------------------------------- 1 | Key: value 2 | AnotherKey: another value 3 | 4 | A regular paragraph 5 | -------------------------------------------------------------------------------- /test/features/meta/id.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | { "id" : "para" }, 4 | "This is a paragraph\nwith an ID." 5 | ] 6 | ] 7 | -------------------------------------------------------------------------------- /test/features/meta/id.text: -------------------------------------------------------------------------------- 1 | This is a paragraph 2 | with an ID. 3 | {: #para} 4 | -------------------------------------------------------------------------------- /test/features/meta/inline.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | "An ", 4 | ["em", 5 | { "class" : "foo" }, 6 | "em" 7 | ], 8 | " and ", 9 | ["strong", 10 | { "class" : "bar" }, 11 | "strong" 12 | ], 13 | "\nwith attached attributes." 14 | ] 15 | ] 16 | -------------------------------------------------------------------------------- /test/features/meta/inline.text: -------------------------------------------------------------------------------- 1 | An *em*{: .foo} and **strong**{: .bar} 2 | with attached attributes. 3 | -------------------------------------------------------------------------------- /test/features/meta/inner_whitespace.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | { "id" : "none" }, 4 | "We can have no whitespace" 5 | ], 6 | ["p", 7 | { "id" : "one" }, 8 | "Or a single whitespace" 9 | ], 10 | ["p", 11 | { "id" : "lots" }, 12 | "And even lots of whitespace" 13 | ] 14 | ] 15 | -------------------------------------------------------------------------------- /test/features/meta/inner_whitespace.text: -------------------------------------------------------------------------------- 1 | We can have no whitespace 2 | {:#none} 3 | 4 | Or a single whitespace 5 | {: #one } 6 | 7 | And even lots of whitespace 8 | {: #lots } 9 | -------------------------------------------------------------------------------- /test/features/meta/leading_whitespace.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | { "id" : "zero" }, 4 | "Zero" 5 | ], 6 | ["p", 7 | { "id" : "one" }, 8 | "One" 9 | ], 10 | ["p", 11 | { "id" : "two" }, 12 | "Two" 13 | ], 14 | ["p", 15 | { "id" : "three" }, 16 | "Three" 17 | ], 18 | ["p", 19 | "Four\n {: #four}" 20 | ] 21 | ] 22 | -------------------------------------------------------------------------------- /test/features/meta/leading_whitespace.text: -------------------------------------------------------------------------------- 1 | Zero 2 | {: #zero} 3 | 4 | One 5 | {: #one} 6 | 7 | Two 8 | {: #two} 9 | 10 | Three 11 | {: #three} 12 | 13 | Four 14 | {: #four} 15 | -------------------------------------------------------------------------------- /test/features/meta/list.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["ul", 3 | { "id" : "list" }, 4 | ["li", 5 | "here's a\nloose list" 6 | ], 7 | ["li", 8 | "it might confuse the\nblock_meta routine" 9 | ] 10 | ] 11 | ] 12 | -------------------------------------------------------------------------------- /test/features/meta/list.text: -------------------------------------------------------------------------------- 1 | * here's a 2 | loose list 3 | 4 | * it might confuse the 5 | block_meta routine 6 | {: #list} 7 | -------------------------------------------------------------------------------- /test/features/meta/list.todo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/evilstreak/markdown-js/14344a8f0eb1ca5d6ff99eb3fa54c1fd821bf484/test/features/meta/list.todo -------------------------------------------------------------------------------- /test/features/meta/multiple_classes.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | { "class" : "foo bar" }, 4 | "Here's a paragraph and\nan ", 5 | ["em", 6 | { "class" : "foo bar" }, 7 | "em" 8 | ], 9 | "\nwith multiple classes" 10 | ] 11 | ] 12 | -------------------------------------------------------------------------------- /test/features/meta/multiple_classes.text: -------------------------------------------------------------------------------- 1 | Here's a paragraph and 2 | an *em*{: .foo .bar} 3 | with multiple classes 4 | {: .foo .bar} 5 | -------------------------------------------------------------------------------- /test/features/meta/quoted.json: -------------------------------------------------------------------------------- 1 | ["html", 2 | ["p", 3 | { "foo" : "bar baz" }, 4 | "A paragraph with a\nquoted attribute." 5 | ] 6 | ] 7 | -------------------------------------------------------------------------------- /test/features/meta/quoted.text: -------------------------------------------------------------------------------- 1 | A paragraph with a 2 | quoted attribute. 3 | {: foo="bar baz"} 4 | -------------------------------------------------------------------------------- /test/features/tables/align.text: -------------------------------------------------------------------------------- 1 | | # | Item | Value | 2 | | :- | :-------: | -----:| 3 | | 1 | Computer | $1600 | 4 | | 2 | Phone | $12 | 5 | | 3 | Pipe | $1 | 6 | -------------------------------------------------------------------------------- /test/features/tables/compact.text: -------------------------------------------------------------------------------- 1 | #|Item|Value 2 | :-|:-:|-: 3 | 1|Computer|$1600 4 | 2|Phone|$12 5 | 3|Pipe|$1 6 | -------------------------------------------------------------------------------- /test/features/tables/inline_formatting.text: -------------------------------------------------------------------------------- 1 | | Function name | Description | 2 | | ------------- | ------------------------------ | 3 | | `help()` | Display the help window. | 4 | | `destroy()` | **Destroy your computer!** | 5 | -------------------------------------------------------------------------------- /test/features/tables/pipe_escape.json: -------------------------------------------------------------------------------- 1 | [ "html", 2 | [ "table", 3 | [ "thead", 4 | [ "tr", 5 | [ "th", 6 | "a|b" 7 | ], 8 | [ "th", 9 | "c" 10 | ] 11 | ] 12 | ], 13 | [ "tbody", 14 | [ "tr", 15 | [ "td", 16 | "1" 17 | ], 18 | [ "td", 19 | "2|3" 20 | ] 21 | ], 22 | [ "tr", 23 | [ "td", 24 | "4|5" 25 | ], 26 | [ "td", 27 | "6" 28 | ] 29 | ] 30 | ] 31 | ] 32 | ] -------------------------------------------------------------------------------- /test/features/tables/pipe_escape.text: -------------------------------------------------------------------------------- 1 | | a\|b | c | 2 | | -----|------| 3 | | 1 | 2\|3 | 4 | | 4\|5 | 6 | 5 | -------------------------------------------------------------------------------- /test/features/tables/simple_leading.text: -------------------------------------------------------------------------------- 1 | | First Header | Second Header | 2 | | ------------- | ------------- | 3 | | Content 1 | Content 2 | 4 | | Content 3 | Content 4 | 5 | -------------------------------------------------------------------------------- /test/features/tables/simple_no_leading.text: -------------------------------------------------------------------------------- 1 | First Header | Second Header 2 | ------------- | ------------- 3 | Content 1 | Content 2 4 | Content 3 | Content 4 5 | -------------------------------------------------------------------------------- /test/features/tables/spaces_tolerance.text: -------------------------------------------------------------------------------- 1 | This is a table (look out, less than 4 spaces 2 | before headers and rule). 3 | 4 | Header | Header 5 | -------- | -------- 6 | 1 | 2 7 | 3 | 4 8 | 9 | Yeah, right. 10 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Amps_and_angle_encoding.text: -------------------------------------------------------------------------------- 1 | AT&T has an ampersand in their name. 2 | 3 | AT&T is another way to write it. 4 | 5 | This & that. 6 | 7 | 4 < 5. 8 | 9 | 6 > 5. 10 | 11 | Here's a [link] [1] with an ampersand in the URL. 12 | 13 | Here's a link with an amersand in the link text: [AT&T] [2]. 14 | 15 | Here's an inline [link](/script?foo=1&bar=2). 16 | 17 | Here's an inline [link](). 18 | 19 | 20 | [1]: http://example.com/?foo=1&bar=2 21 | [2]: http://att.com/ "AT&T" -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Auto_links.text: -------------------------------------------------------------------------------- 1 | Link: . 2 | 3 | With an ampersand: 4 | 5 | * In a list? 6 | * 7 | * It should. 8 | 9 | > Blockquoted: 10 | 11 | Auto-links should not occur here: `` 12 | 13 | or here: -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Blockquotes_with_code_blocks.json: -------------------------------------------------------------------------------- 1 | ["html", ["blockquote", ["p", "Example:"], 2 | ["pre", ["code", "sub status {\u000a print \"working\";\u000a}\u000a"]], 3 | ["p", "Or:"], 4 | ["pre", ["code", "sub status {\u000a return \"working\";\u000a}\u000a"]]]] 5 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Blockquotes_with_code_blocks.text: -------------------------------------------------------------------------------- 1 | > Example: 2 | > 3 | > sub status { 4 | > print "working"; 5 | > } 6 | > 7 | > Or: 8 | > 9 | > sub status { 10 | > return "working"; 11 | > } 12 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Blockquotes_with_code_blocks.xhtml: -------------------------------------------------------------------------------- 1 |
2 |

Example:

3 | 4 |
sub status {
 5 |     print "working";
 6 | }
 7 | 
8 | 9 |

Or:

10 | 11 |
sub status {
12 |     return "working";
13 | }
14 | 
15 |
16 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Code_Blocks.json: -------------------------------------------------------------------------------- 1 | ["html", ["pre", ["code", "code block on the first line\u000a"]], 2 | ["p", "Regular text."], 3 | ["pre", ["code", "code block indented by spaces\u000a"]], 4 | ["p", "Regular text."], 5 | ["pre", ["code", "the lines in this block \u000aall contain trailing spaces \u000a"]], 6 | ["p", "Regular Text."], 7 | ["pre", ["code", "code block on the last line\u000a"]]] 8 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Code_Blocks.text: -------------------------------------------------------------------------------- 1 | code block on the first line 2 | 3 | Regular text. 4 | 5 | code block indented by spaces 6 | 7 | Regular text. 8 | 9 | the lines in this block 10 | all contain trailing spaces 11 | 12 | Regular Text. 13 | 14 | code block on the last line -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Code_Blocks.xhtml: -------------------------------------------------------------------------------- 1 |
code block on the first line
 2 | 
3 | 4 |

Regular text.

5 | 6 |
code block indented by spaces
 7 | 
8 | 9 |

Regular text.

10 | 11 |
the lines in this block  
12 | all contain trailing spaces  
13 | 
14 | 15 |

Regular Text.

16 | 17 |
code block on the last line
18 | 
19 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Code_Spans.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["code", ""]], 2 | ["p", "Fix for backticks within HTML tag: ", ["span", { 3 | "attr": "`ticks`" 4 | }, 5 | "like this"]], 6 | ["p", "Here's how you put ", ["code", "`backticks`"], " in a code span."]] 7 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Code_Spans.text: -------------------------------------------------------------------------------- 1 | `` 2 | 3 | Fix for backticks within HTML tag: like this 4 | 5 | Here's how you put `` `backticks` `` in a code span. -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Code_Spans.xhtml: -------------------------------------------------------------------------------- 1 |

<test a=" content of attribute ">

2 | 3 |

Fix for backticks within HTML tag: like this

4 | 5 |

Here's how you put `backticks` in a code span.

6 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Hard-wrapped_paragraphs_with_list-like_lines.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "In Markdown 1.0.0 and earlier. Version\u000a8. This line turns into a list item.\u000aBecause a hard-wrapped line in the\u000amiddle of a paragraph looked like a\u000alist item."], 2 | ["p", "Here's one with a bullet.\u000a* criminey."]] 3 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Hard-wrapped_paragraphs_with_list-like_lines.text: -------------------------------------------------------------------------------- 1 | In Markdown 1.0.0 and earlier. Version 2 | 8. This line turns into a list item. 3 | Because a hard-wrapped line in the 4 | middle of a paragraph looked like a 5 | list item. 6 | 7 | Here's one with a bullet. 8 | * criminey. 9 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Hard-wrapped_paragraphs_with_list-like_lines.xhtml: -------------------------------------------------------------------------------- 1 |

In Markdown 1.0.0 and earlier. Version 2 | 8. This line turns into a list item. 3 | Because a hard-wrapped line in the 4 | middle of a paragraph looked like a 5 | list item.

6 | 7 |

Here's one with a bullet. 8 | * criminey.

9 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Inline_HTML_(Advanced).text: -------------------------------------------------------------------------------- 1 | Simple block on one line: 2 | 3 |
foo
4 | 5 | And nested without indentation: 6 | 7 |
8 |
9 |
10 | foo 11 |
12 |
13 |
14 |
bar
15 |
16 | 17 | And with attributes: 18 | 19 |
20 |
21 |
22 |
23 | 24 | This was broken in 1.0.2b7: 25 | 26 |
27 |
28 | foo 29 |
30 |
31 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Inline_HTML_(Advanced).xhtml: -------------------------------------------------------------------------------- 1 |

Simple block on one line:

2 | 3 |
foo
4 | 5 |

And nested without indentation:

6 | 7 |
8 |
9 |
10 | foo 11 |
12 |
13 |
14 |
bar
15 |
16 | 17 |

And with attributes:

18 | 19 |
20 |
21 |
22 |
23 | 24 |

This was broken in 1.0.2b7:

25 | 26 |
27 |
28 | foo 29 |
30 |
31 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Inline_HTML_comments.html: -------------------------------------------------------------------------------- 1 |

Paragraph one.

2 | 3 | 4 | 5 | 8 | 9 |

Paragraph two.

10 | 11 | 12 | 13 |

The end.

14 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Inline_HTML_comments.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Paragraph one."], "\u000a\u000a", "\u000a\u000a", "\u000a\u000a", ["p", "Paragraph two."], "\u000a\u000a", "\u000a\u000a", ["p", "The end."]] 2 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Inline_HTML_comments.text: -------------------------------------------------------------------------------- 1 | Paragraph one. 2 | 3 | 4 | 5 | 8 | 9 | Paragraph two. 10 | 11 | 12 | 13 | The end. 14 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Links_shortcut_references.text: -------------------------------------------------------------------------------- 1 | This is the [simple case]. 2 | 3 | [simple case]: /simple 4 | 5 | 6 | 7 | This one has a [line 8 | break]. 9 | 10 | This one has a [line 11 | break] with a line-ending space. 12 | 13 | [line break]: /foo 14 | 15 | 16 | [this] [that] and the [other] 17 | 18 | [this]: /this 19 | [that]: /that 20 | [other]: /other 21 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Links_shortcut_references.xhtml: -------------------------------------------------------------------------------- 1 |

This is the simple case.

2 | 3 |

This one has a line 4 | break.

5 | 6 |

This one has a line 7 | break with a line-ending space.

8 | 9 |

this and the other

10 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Literal_quotes_in_titles.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Foo ", ["a", { 2 | "href": "/url/", 3 | "title": "Title with \"quotes\" inside" 4 | }, 5 | "bar"], "."], 6 | ["p", "Foo ", ["a", { 7 | "href": "/url/", 8 | "title": "Title with \"quotes\" inside" 9 | }, 10 | "bar"], "."]] 11 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Literal_quotes_in_titles.text: -------------------------------------------------------------------------------- 1 | Foo [bar][]. 2 | 3 | Foo [bar](/url/ "Title with "quotes" inside"). 4 | 5 | 6 | [bar]: /url/ "Title with "quotes" inside" 7 | 8 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Literal_quotes_in_titles.xhtml: -------------------------------------------------------------------------------- 1 |

Foo bar.

2 | 3 |

Foo bar.

4 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Nested_blockquotes.json: -------------------------------------------------------------------------------- 1 | ["html", ["blockquote", ["p", "foo"], 2 | ["blockquote", ["p", "bar"]], 3 | ["p", "foo"]]] 4 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Nested_blockquotes.text: -------------------------------------------------------------------------------- 1 | > foo 2 | > 3 | > > bar 4 | > 5 | > foo 6 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Nested_blockquotes.xhtml: -------------------------------------------------------------------------------- 1 |
2 |

foo

3 | 4 |
5 |

bar

6 |
7 | 8 |

foo

9 |
10 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Strong_and_em_together.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["strong", ["em", "This is strong and em."]]], 2 | ["p", "So is ", ["strong", ["em", "this"]], " word."], 3 | ["p", ["strong", ["em", "This is strong and em."]]], 4 | ["p", "So is ", ["strong", ["em", "this"]], " word."]] 5 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Strong_and_em_together.text: -------------------------------------------------------------------------------- 1 | ***This is strong and em.*** 2 | 3 | So is ***this*** word. 4 | 5 | ___This is strong and em.___ 6 | 7 | So is ___this___ word. 8 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Strong_and_em_together.xhtml: -------------------------------------------------------------------------------- 1 |

This is strong and em.

2 | 3 |

So is this word.

4 | 5 |

This is strong and em.

6 | 7 |

So is this word.

8 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Tabs.text: -------------------------------------------------------------------------------- 1 | + this is a list item 2 | indented with tabs 3 | 4 | + this is a list item 5 | indented with spaces 6 | 7 | Code: 8 | 9 | this code block is indented by one tab 10 | 11 | And: 12 | 13 | this code block is indented by two tabs 14 | 15 | And: 16 | 17 | + this is an example list item 18 | indented with tabs 19 | 20 | + this is an example list item 21 | indented with spaces 22 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Tidyness.json: -------------------------------------------------------------------------------- 1 | ["html", ["blockquote", ["p", "A list within a blockquote:"], 2 | ["ul", ["li", "asterisk 1"], 3 | ["li", "asterisk 2"], 4 | ["li", "asterisk 3"]]]] 5 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Tidyness.text: -------------------------------------------------------------------------------- 1 | > A list within a blockquote: 2 | > 3 | > * asterisk 1 4 | > * asterisk 2 5 | > * asterisk 3 6 | -------------------------------------------------------------------------------- /test/fixtures/Markdown-from-MDTest1.1.mdtest/Tidyness.xhtml: -------------------------------------------------------------------------------- 1 |
2 |

A list within a blockquote:

3 |
    4 |
  • asterisk 1
  • 5 |
  • asterisk 2
  • 6 |
  • asterisk 3
  • 7 |
8 |
9 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Backslash_escapes.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Tricky combinaisons:"], 2 | ["p", "backslash with \\-- two dashes"], 3 | ["p", "backslash with \\> greater than"], 4 | ["p", "\\[test](not a link)"], 5 | ["p", "\\*no emphasis*"]] 6 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Backslash_escapes.text: -------------------------------------------------------------------------------- 1 | Tricky combinaisons: backslash with \\-- two dashes backslash with \\> greater than \\\[test](not a link) \\\*no emphasis* -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Backslash_escapes.xhtml: -------------------------------------------------------------------------------- 1 |

Tricky combinaisons:

backslash with \-- two dashes

backslash with \> greater than

\[test](not a link)

\*no emphasis*

-------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Code_Spans.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "From ", ["code", ""], "\u000aon two lines."], 2 | ["p", "From ", ["code", ""], "\u000aon three lines."]] 3 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Code_Spans.text: -------------------------------------------------------------------------------- 1 | From `` 2 | on two lines. 3 | 4 | From `` 6 | on three lines. 7 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Code_Spans.xhtml: -------------------------------------------------------------------------------- 1 |

From <!-- to --> 2 | on two lines.

3 | 4 |

From <!-- 5 | to --> 6 | on three lines.

7 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Code_block_in_a_list_item.json: -------------------------------------------------------------------------------- 1 | ["html", ["ul", ["li", ["p", "List Item:"], 2 | ["pre", ["code", "code block\u000a\u000awith a blank line\u000a"]], 3 | ["p", "within a list item."]]]] 4 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Code_block_in_a_list_item.text: -------------------------------------------------------------------------------- 1 | 2 | * List Item: 3 | 4 | code block 5 | 6 | with a blank line 7 | 8 | within a list item. -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Code_block_in_a_list_item.xhtml: -------------------------------------------------------------------------------- 1 |
    2 |
  • List Item:

    3 | 4 |
    code block
     5 | 
     6 | with a blank line
     7 | 
    8 | 9 |

    within a list item.

  • 10 |
-------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Email_auto_links.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["a", { 2 | "href": "mailto:michel.fortin@michelf.com" 3 | }, 4 | "michel.fortin@michelf.com"]], 5 | ["p", "International domain names: ", ["a", { 6 | "href": "mailto:help@tūdaliņ.lv" 7 | }, 8 | "help@tūdaliņ.lv"]]] 9 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Email_auto_links.text: -------------------------------------------------------------------------------- 1 | 2 | 3 | International domain names: -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Headers.text: -------------------------------------------------------------------------------- 1 | Header ====== Header ------ ### Header 2 | 3 | - - - 4 | 5 | Header ====== Paragraph Header ------ Paragraph ### Header Paragraph 6 | 7 | - - - 8 | 9 | Paragraph Header ====== Paragraph Paragraph Header ------ Paragraph Paragraph ### Header Paragraph -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Headers.xhtml: -------------------------------------------------------------------------------- 1 |

Header

2 | 3 |

Header

4 | 5 |

Header

6 | 7 |
8 | 9 |

Header

10 | 11 |

Paragraph

12 | 13 |

Header

14 | 15 |

Paragraph

16 | 17 |

Header

18 | 19 |

Paragraph

20 | 21 |
22 | 23 |

Paragraph

24 | 25 |

Header

26 | 27 |

Paragraph

28 | 29 |

Paragraph

30 | 31 |

Header

32 | 33 |

Paragraph

34 | 35 |

Paragraph

36 | 37 |

Header

38 | 39 |

Paragraph

40 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Horizontal_Rules.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Horizontal rules:"], "\u000a\u000a", ["hr"], "\u000a\u000a", ["hr"], "\u000a\u000a", ["hr"], "\u000a\u000a", ["hr"], "\u000a\u000a", ["hr"], "\u000a\u000a", ["p", "Not horizontal rules (testing for a bug in 1.0.1j):"], 2 | ["p", "+++"], 3 | ["p", ",,,"], 4 | ["p", "==="], 5 | ["p", "???"], 6 | ["p", "AAA"], 7 | ["p", "jjj"], 8 | ["p", "j j j"], 9 | ["p", "n n n"]] 10 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Horizontal_Rules.text: -------------------------------------------------------------------------------- 1 | Horizontal rules: 2 | 3 | - - - 4 | 5 | * * * 6 | 7 | *** 8 | 9 | --- 10 | 11 | ___ 12 | 13 | Not horizontal rules (testing for a bug in 1.0.1j): 14 | 15 | +++ 16 | 17 | ,,, 18 | 19 | === 20 | 21 | ??? 22 | 23 | AAA 24 | 25 | jjj 26 | 27 | j j j 28 | 29 | n n n 30 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Horizontal_Rules.xhtml: -------------------------------------------------------------------------------- 1 |

Horizontal rules:

2 | 3 |
4 | 5 |
6 | 7 |
8 | 9 |
10 | 11 |
12 | 13 |

Not horizontal rules (testing for a bug in 1.0.1j):

14 | 15 |

+++

16 | 17 |

,,,

18 | 19 |

===

20 | 21 |

???

22 | 23 |

AAA

24 | 25 |

jjj

26 | 27 |

j j j

28 | 29 |

n n n

30 | 31 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Inline_HTML_(Simple).html: -------------------------------------------------------------------------------- 1 |

With some attributes:

2 | 3 |
4 | foo 5 |
6 | 7 |
9 | foo 10 |
11 | 12 |

Hr's:

13 | 14 |
-------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Inline_HTML_(Simple).json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "With some attributes:"], "\u000a\u000a", ["div", { 2 | "id": "test" 3 | }, 4 | "\u000a foo\u000a"], "\u000a\u000a", ["div", { 5 | "id": "test", 6 | "class": "nono" 7 | }, 8 | "\u000a foo\u000a"], "\u000a\u000a", ["p", "Hr's:"], "\u000a\u000a", ["hr", { 9 | "class": "foo", 10 | "id": "bar" 11 | }]] 12 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Inline_HTML_(Simple).text: -------------------------------------------------------------------------------- 1 | With some attributes: 2 | 3 |
4 | foo 5 |
6 | 7 |
9 | foo 10 |
11 | 12 | Hr's: 13 | 14 |
16 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Inline_HTML_(Span).json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["abbr", { 2 | "title": "` **Attribute Content Is Not A Code Span** `" 3 | }, 4 | "ACINACS"]], 5 | ["p", ["abbr", { 6 | "title": "`first backtick!" 7 | }, 8 | "SB"], " \u000a", ["abbr", { 9 | "title": "`second backtick!" 10 | }, 11 | "SB"]]] 12 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Inline_HTML_(Span).text: -------------------------------------------------------------------------------- 1 | ACINACS 2 | 3 | SB 4 | SB -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Inline_HTML_(Span).xhtml: -------------------------------------------------------------------------------- 1 |

ACINACS

2 | 3 |

SB 4 | SB

-------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Inline_HTML_comments.html: -------------------------------------------------------------------------------- 1 |

Paragraph one.

2 | 3 | 4 | 5 |

Paragraph two.

6 | 7 | 8 | 9 |

The end.

10 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Inline_HTML_comments.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Paragraph one."], "\u000a\u000a", "\u000a\u000a", ["p", "Paragraph two."], "\u000a\u000a", "\u000a\u000a", ["p", "The end."]] 2 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Inline_HTML_comments.text: -------------------------------------------------------------------------------- 1 | Paragraph one. 2 | 3 | 4 | 5 | Paragraph two. 6 | 7 | 8 | 9 | The end. 10 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Ins_and_del.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Here is a block tag ins:"], "\u000a\u000a", ["ins", ["p", "Some text"]], "\u000a\u000a", ["p", ["ins", "And here it is inside a paragraph."]], 2 | ["p", "And here it is ", ["ins", "in the middle of"], " a paragraph."], "\u000a\u000a", ["del", ["p", "Some text"]], "\u000a\u000a", ["p", ["del", "And here is ins as a paragraph."]], 3 | ["p", "And here it is ", ["del", "in the middle of"], " a paragraph."]] 4 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Ins_and_del.text: -------------------------------------------------------------------------------- 1 | Here is a block tag ins: 2 | 3 | 4 |

Some text

5 |
6 | 7 | And here it is inside a paragraph. 8 | 9 | And here it is in the middle of a paragraph. 10 | 11 | 12 |

Some text

13 |
14 | 15 | And here is ins as a paragraph. 16 | 17 | And here it is in the middle of a paragraph. 18 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Ins_and_del.xhtml: -------------------------------------------------------------------------------- 1 |

Here is a block tag ins:

2 | 3 | 4 |

Some text

5 |
6 | 7 |

And here it is inside a paragraph.

8 | 9 |

And here it is in the middle of a paragraph.

10 | 11 | 12 |

Some text

13 |
14 | 15 |

And here is ins as a paragraph.

16 | 17 |

And here it is in the middle of a paragraph.

18 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Links_inline_style.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["a", { 2 | "href": "?}]*+|&)" 3 | }, 4 | "silly URL w/ angle brackets"], "."]] 5 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Links_inline_style.text: -------------------------------------------------------------------------------- 1 | [silly URL w/ angle brackets](). 2 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Links_inline_style.xhtml: -------------------------------------------------------------------------------- 1 |

silly URL w/ angle brackets.

2 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/MD5_Hashes.json: -------------------------------------------------------------------------------- 1 | ["html", ["h1", "Character Escapes"], "\u000a\u000a", ["p", "The MD5 value for ", ["code", "+"], " is \"26b17225b626fb9238849fd60eabdf60\"."], "\u000a\u000a", ["h1", "HTML Blocks"], "\u000a\u000a", ["p", "test"], 2 | ["p", "The MD5 value for ", ["code", "

test

"], " is:"], 3 | ["p", "6205333b793f34273d75379350b36826"]] 4 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/MD5_Hashes.text: -------------------------------------------------------------------------------- 1 | # Character Escapes 2 | 3 | The MD5 value for `+` is "26b17225b626fb9238849fd60eabdf60". 4 | 5 | # HTML Blocks 6 | 7 |

test

8 | 9 | The MD5 value for `

test

` is: 10 | 11 | 6205333b793f34273d75379350b36826 -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/MD5_Hashes.xhtml: -------------------------------------------------------------------------------- 1 |

Character Escapes

2 | 3 |

The MD5 value for + is "26b17225b626fb9238849fd60eabdf60".

4 | 5 |

HTML Blocks

6 | 7 |

test

8 | 9 |

The MD5 value for <p>test</p> is:

10 | 11 |

6205333b793f34273d75379350b36826

12 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Nesting.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Valid nesting:"], 2 | ["p", ["strong", ["a", { 3 | "href": "url" 4 | }, 5 | "Link"]]], 6 | ["p", ["a", { 7 | "href": "url" 8 | }, 9 | ["strong", "Link"]]], 10 | ["p", ["strong", ["a", { 11 | "href": "url" 12 | }, 13 | ["strong", "Link"]]]], 14 | ["p", "Invalid nesting:"], 15 | ["p", ["a", { 16 | "href": "url" 17 | }, 18 | "[Link](url)"]]] 19 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Nesting.text: -------------------------------------------------------------------------------- 1 | Valid nesting: 2 | 3 | **[Link](url)** 4 | 5 | [**Link**](url) 6 | 7 | **[**Link**](url)** 8 | 9 | Invalid nesting: 10 | 11 | [[Link](url)](url) -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Nesting.xhtml: -------------------------------------------------------------------------------- 1 |

Valid nesting:

2 | 3 |

Link

4 | 5 |

Link

6 | 7 |

Link

8 | 9 |

Invalid nesting:

10 | 11 |

[Link](url)

12 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Parens_in_URL.text: -------------------------------------------------------------------------------- 1 | [Inline link 1 with parens](/url\(test\) "title"). 2 | 3 | [Inline link 2 with parens]( "title"). 4 | 5 | [Inline link 3 with non-escaped parens](/url(test) "title"). 6 | 7 | [Inline link 4 with non-escaped parens]( "title"). 8 | 9 | [Reference link 1 with parens][1]. 10 | 11 | [Reference link 2 with parens][2]. 12 | 13 | [1]: /url(test) "title" 14 | [2]: "title" 15 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Tight_blocks.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Paragraph and no space:\u000a* ciao"], 2 | ["p", "Paragraph and 1 space:\u000a * ciao"], 3 | ["p", "Paragraph and 3 spaces:\u000a * ciao"], 4 | ["p", "Paragraph and 4 spaces:\u000a * ciao"], 5 | ["p", "Paragraph before header:"], "\u000a\u000a", ["h1", "Header"], "\u000a\u000a", ["p", "Paragraph before blockquote:"], 6 | ["blockquote", ["p", "Some quote."]]] 7 | -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Tight_blocks.text: -------------------------------------------------------------------------------- 1 | Paragraph and no space: * ciao Paragraph and 1 space: * ciao Paragraph and 3 spaces: * ciao Paragraph and 4 spaces: * ciao Paragraph before header: #Header Paragraph before blockquote: >Some quote. -------------------------------------------------------------------------------- /test/fixtures/PHP_Markdown-from-MDTest1.1.mdtest/Tight_blocks.xhtml: -------------------------------------------------------------------------------- 1 |

Paragraph and no space: 2 | * ciao

3 | 4 |

Paragraph and 1 space: 5 | * ciao

6 | 7 |

Paragraph and 3 spaces: 8 | * ciao

9 | 10 |

Paragraph and 4 spaces: 11 | * ciao

12 | 13 |

Paragraph before header:

14 | 15 |

Header

16 | 17 |

Paragraph before blockquote:

18 | 19 |
20 |

Some quote.

21 |
22 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/CoreDumps5.8.json: -------------------------------------------------------------------------------- 1 | ["html", ["ul", ["li", "Unordered\u000a", ["ol", ["li", "Ordered"]]]], 2 | ["p", "Text"], 3 | ["ul", ["li", "Unordered\u000a", ["ol", ["li", "Ordered"]]]]] 4 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/CoreDumps5.8.text: -------------------------------------------------------------------------------- 1 | * Unordered 2 | 1. Ordered 3 | 4 | Text 5 | 6 | * Unordered 7 | 1. Ordered 8 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/CoreDumps5.8.xhtml: -------------------------------------------------------------------------------- 1 |
    2 |
  • Unordered 3 |
      4 |
    1. Ordered
    2. 5 |
  • 6 |
7 | 8 |

Text

9 | 10 |
    11 |
  • Unordered 12 |
      13 |
    1. Ordered
    2. 14 |
  • 15 |
16 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Emphasis.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["em", "M*A*S*H"], " here I am going with original Markdown.."], 2 | ["p", "foo_bar_bas I am going with PHP Markdown Extra here (by default, there is an option for original style behavior - see\u000adocs).."]] 3 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Emphasis.text: -------------------------------------------------------------------------------- 1 | _M*A*S*H_ here I am going with original Markdown.. 2 | 3 | foo_bar_bas I am going with PHP Markdown Extra here (by default, there is an option for original style behavior - see 4 | docs).. 5 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Emphasis.xhtml: -------------------------------------------------------------------------------- 1 |

M*A*S*H here I am going with original Markdown..

2 | 3 |

foo_bar_bas I am going with PHP Markdown Extra here (by default, there is an option for original style behavior - see 4 | docs)..

5 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/HTML-Comment-encoding.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "A markdown paragraph with a comment that ", ["em", "will"], " be processed by original Markdown. However MultiMarkdown and Pandoc do not convert the & sigil in the comment.. "], 2 | ["p", "A paragraph "], 3 | ["p"]] 4 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/HTML-Comment-encoding.text: -------------------------------------------------------------------------------- 1 | A markdown paragraph with a comment that *will* be processed by original Markdown. However MultiMarkdown and Pandoc do not convert the & sigil in the comment.. 2 | 3 | A paragraph 4 | 5 |

6 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/HTML-Comment-encoding.xhtml: -------------------------------------------------------------------------------- 1 |

A markdown paragraph with a comment that will be processed by original Markdown. However MultiMarkdown and Pandoc do not convert the & sigil in the comment..

2 | 3 |

A paragraph

4 | 5 |

6 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/HTML5-attributes.html: -------------------------------------------------------------------------------- 1 |

foo

2 | 3 |

4 | this is a paragraph 5 |

6 | 7 |

8 | an h2 9 |

10 | 11 |

normal

12 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/HTML5-attributes.json: -------------------------------------------------------------------------------- 1 | ["html", ["h1", { 2 | "class": "foo" 3 | }, 4 | "foo"], "\u000a\u000a", ["p", { 5 | "class": "bar" 6 | }, 7 | "\u000athis is a paragraph\u000a"], "\u000a\u000a", ["h2", { 8 | "class": "bar" 9 | }, 10 | "\u000aan h2\u000a"], "\u000a\u000a", ["p", "normal"]] 11 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/HTML5-attributes.text: -------------------------------------------------------------------------------- 1 |

foo

2 | 3 |

4 | this is a paragraph 5 |

6 | 7 |

8 | an h2 9 |

10 | 11 | normal 12 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Links_brackets.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["a", { 2 | "href": "http://en.wikipedia.org/wiki/ZIP_(file_format)", 3 | "title": "ZIP (file format) - Wikipedia, the free encyclopedia" 4 | }, 5 | "ZIP archives"]]] 6 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Links_brackets.text: -------------------------------------------------------------------------------- 1 | [ZIP archives](http://en.wikipedia.org/wiki/ZIP_(file_format) "ZIP (file format) - Wikipedia, the free encyclopedia") 2 | 3 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Links_brackets.xhtml: -------------------------------------------------------------------------------- 1 |

ZIP archives

2 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Links_multiline_bugs_1.html: -------------------------------------------------------------------------------- 1 |

http://bugs.debian.org/459885

2 | 3 |

link 4 | text

5 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Links_multiline_bugs_1.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["a", { 2 | "href": "http://bugs.debian.org/459885" 3 | }, 4 | "http://bugs.debian.org/459885"]], 5 | ["p", ["a", { 6 | "href": "/someurl/" 7 | }, 8 | "link \u000atext"]]] 9 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Links_multiline_bugs_1.text: -------------------------------------------------------------------------------- 1 | 2 | 3 | [link 4 | text] [link 5 | id] 6 | 7 | [link id]: /someurl/ 8 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Links_multiline_bugs_2.html: -------------------------------------------------------------------------------- 1 |

http://bugs.debian.org/459885

2 | 3 |

Bla, bla, bla, bla, bla, bla, bla, bla, bla, bla bla. This is my
4 | University
.

5 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Links_multiline_bugs_2.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["a", { 2 | "href": "http://bugs.debian.org/459885" 3 | }, 4 | "http://bugs.debian.org/459885"]], 5 | ["p", "Bla, bla, bla, bla, bla, bla, bla, bla, bla, bla bla. This is ", ["a", { 6 | "href": "http://www.ua.es" 7 | }, 8 | "my ", ["br"], "\u000aUniversity"], "."]] 9 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Links_multiline_bugs_2.text: -------------------------------------------------------------------------------- 1 | 2 | 3 | Bla, bla, bla, bla, bla, bla, bla, bla, bla, bla bla. This is [my 4 | University][]. 5 | 6 | [my university]: http://www.ua.es 7 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Lists-multilevel-md5-edgecase.json: -------------------------------------------------------------------------------- 1 | ["html", ["h1", "text1"], "\u000a\u000a", ["ul", ["li", ["p", "text2"], 2 | ["ul", ["li", "text3"]], 3 | ["p", "text4"]]], "\u000a\u000a", ["h2", "text5"], "\u000a\u000a", ["ul", ["li", ["p", "text6"], 4 | ["ul", ["li", "text7"]], 5 | ["p", "text8"]]], "\u000a\u000a", ["h2", "text9"], "\u000a\u000a", ["ul", ["li", ["p", "text10"], 6 | ["ul", ["li", "text11"]], 7 | ["p", "text12"], 8 | ["p", "text13"]]]] 9 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Lists-multilevel-md5-edgecase.text: -------------------------------------------------------------------------------- 1 | # text1 2 | 3 | * text2 4 | 5 | * text3 6 | 7 | text4 8 | 9 | ## text5 10 | 11 | * text6 12 | 13 | * text7 14 | 15 | text8 16 | 17 | ## text9 18 | 19 | * text10 20 | 21 | * text11 22 | 23 | text12 24 | 25 | text13 26 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Lists-multilevel-md5-edgecase.xhtml: -------------------------------------------------------------------------------- 1 |

text1

2 | 3 |
    4 |
  • text2

    5 | 6 |
      7 |
    • text3
    • 8 |
    9 | 10 |

    text4

  • 11 |
12 | 13 |

text5

14 | 15 |
    16 |
  • text6

    17 | 18 |
      19 |
    • text7
    • 20 |
    21 | 22 |

    text8

  • 23 |
24 | 25 |

text9

26 | 27 |
    28 |
  • text10

    29 | 30 |
      31 |
    • text11
    • 32 |
    33 | 34 |

    text12

    35 | 36 |

    text13

  • 37 |
38 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/PHP-ASP_tags.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "I am going with the same as Markdown.pl 1.0.2b8 here. ", ["em", "However"], " I reserve the right to also leave Template toolkit alone at a later date if I need to.."], "\u000a\u000a", ["foo", { 2 | "ok": "ok", 3 | "_": "_" 4 | }, 5 | "\u000a\u000a", "\u000a\u000a", ["p", "[% template_toolkit %]"]]] 6 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/PHP-ASP_tags.text: -------------------------------------------------------------------------------- 1 | I am going with the same as Markdown.pl 1.0.2b8 here. *However* I reserve the right to also leave Template toolkit alone at a later date if I need to.. 2 | 3 | <%foo ok %> 4 | 5 | 6 | 7 | [% template_toolkit %] -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/PHP-ASP_tags.xhtml: -------------------------------------------------------------------------------- 1 |

I am going with the same as Markdown.pl 1.0.2b8 here. However I reserve the right to also leave Template toolkit alone at a later date if I need to..

2 | 3 | <%foo ok %> 4 | 5 | 6 | 7 |

[% template_toolkit %]

8 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Unicode.json: -------------------------------------------------------------------------------- 1 | ["html", ["blockquote", ["p", "Fo—o"]], 2 | ["p", "μορεοϋερ"], 3 | ["blockquote", ["p", "ßåř"]]] 4 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Unicode.text: -------------------------------------------------------------------------------- 1 | > Fo—o 2 | 3 | μορεοϋερ 4 | 5 | > ßåř 6 | -------------------------------------------------------------------------------- /test/fixtures/Text-Markdown.mdtest/Unicode.xhtml: -------------------------------------------------------------------------------- 1 |
2 |

Fo—o

3 |
4 | 5 |

μορεοϋερ

6 | 7 |
8 |

ßåř

9 |
10 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/abbreviations.html: -------------------------------------------------------------------------------- 1 |

The HTML specification is maintained by the W3C.

2 | 3 |

Operation Tigra Genesis is going well.

4 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/abbreviations.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "The ", ["abbr", { 2 | "title": "Hyper Text Markup Language" 3 | }, 4 | "HTML"], " specification is maintained by the ", ["abbr", { 5 | "title": "World Wide Web Consortium" 6 | }, 7 | "W3C"], "."], 8 | ["p", "Operation ", ["abbr", "Tigra Genesis"], " is going well."]] 9 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/abbreviations.text: -------------------------------------------------------------------------------- 1 | 2 | The HTML specification is maintained by the W3C. 3 | 4 | *[HTML]: Hyper Text Markup Language 5 | *[W3C]: World Wide Web Consortium 6 | 7 | 8 | 9 | Operation Tigra Genesis is going well. 10 | 11 | *[Tigra Genesis]: 12 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/alt.html: -------------------------------------------------------------------------------- 1 |

bar

2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/alt.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["img", { 2 | "src": "/foo.jpg", 3 | "alt": "bar" 4 | }]]] 5 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/alt.text: -------------------------------------------------------------------------------- 1 | ![bar](/foo.jpg) 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/blank.html: -------------------------------------------------------------------------------- 1 |

Linea 1

2 | 3 |

Linea 2

4 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/blank.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Linea 1"], 2 | ["p", "Linea 2"]] 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/blank.text: -------------------------------------------------------------------------------- 1 | 2 | Linea 1 3 | 4 | Linea 2 5 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/blanks_in_code.html: -------------------------------------------------------------------------------- 1 |

This block is composed of three lines:

2 | 3 |
one
 4 | 
 5 | three
6 | 7 |

This block is composed of 5

8 | 9 |
one
10 | 
11 | 
12 | four
13 | 14 |

This block is composed of 2

15 | 16 |
two
17 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/blanks_in_code.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "This block is composed of three lines:"], 2 | ["pre", ["code", "one\u000a\u000athree"]], 3 | ["p", "This block is composed of 5"], 4 | ["pre", ["code", "one\u000a\u000a\u000afour"]], 5 | ["p", "This block is composed of 2"], 6 | ["pre", ["code", "two"]]] 7 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/blanks_in_code.text: -------------------------------------------------------------------------------- 1 | This block is composed of three lines: 2 | 3 | one 4 | 5 | three 6 | 7 | This block is composed of 5 8 | 9 | 10 | one 11 | 12 | 13 | four 14 | 15 | 16 | This block is composed of 2 17 | 18 | 19 | two 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/bug_def.html: -------------------------------------------------------------------------------- 1 |

test:

2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/bug_def.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["span", "test"], ":"]] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/bug_def.text: -------------------------------------------------------------------------------- 1 | [test][]: 2 | 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/bug_table.html: -------------------------------------------------------------------------------- 1 |

hello

2 | 3 |
hh
c1c2
4 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/bug_table.text: -------------------------------------------------------------------------------- 1 | 2 | 3 | hello 4 | {: summary="Table summary" .class1 style="color:red"} 5 | 6 | h | h 7 | ----------|-- 8 | {:t} c1 | c2 9 | {: summary="Table summary" .class1 style="color:red"} 10 | 11 | 12 | 13 | {:t: scope="row"} 14 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/code.html: -------------------------------------------------------------------------------- 1 |

Here is an example of AppleScript:

2 | 3 |
tell application "Foo"
4 |     beep
5 | end tell
6 | 	tab
7 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/code.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Here is an example of AppleScript:"], 2 | ["pre", ["code", "tell application \"Foo\"\u000a beep\u000aend tell\u000a\u0009tab"]]] 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/code.text: -------------------------------------------------------------------------------- 1 | Here is an example of AppleScript: 2 | 3 | tell application "Foo" 4 | beep 5 | end tell 6 | tab 7 | 8 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/code2.html: -------------------------------------------------------------------------------- 1 |
2 |

Code

3 | 4 |
Ciao
5 |
6 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/code2.json: -------------------------------------------------------------------------------- 1 | ["html", ["blockquote", ["p", "Code"], 2 | ["pre", ["code", "Ciao"]]]] 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/code2.text: -------------------------------------------------------------------------------- 1 | > Code 2 | > 3 | > Ciao 4 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/code3.html: -------------------------------------------------------------------------------- 1 |

This is code (4 spaces):

2 | 3 |
Code
4 | 5 |

This is not code

6 | 7 |
Code
8 | 9 |

This is code (1 tab):

10 | 11 |
Code
12 | 13 |

This is not code

14 | 15 |
Code
16 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/code3.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "This is code (4 spaces):"], 2 | ["pre", ["code", "Code"]], 3 | ["p", "This is not code"], 4 | ["pre", ["code", "Code"]], 5 | ["p", "This is code (1 tab):"], 6 | ["pre", ["code", "Code"]], 7 | ["p", "This is not code"], 8 | ["pre", ["code", "Code"]]] 9 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/code3.text: -------------------------------------------------------------------------------- 1 | 2 | This is code (4 spaces): 3 | 4 | Code 5 | This is not code 6 | 7 | Code 8 | 9 | This is code (1 tab): 10 | 11 | Code 12 | This is not code 13 | 14 | Code 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/data_loss.html: -------------------------------------------------------------------------------- 1 |
    2 |
  1. abcd efgh ijkl
  2. 3 |
4 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/data_loss.json: -------------------------------------------------------------------------------- 1 | ["html", ["ol", ["li", "abcd efgh ijkl"]]] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/data_loss.text: -------------------------------------------------------------------------------- 1 | 1. abcd 2 | efgh 3 | ijkl 4 | 5 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/easy.html: -------------------------------------------------------------------------------- 1 |

Hello! how are you?

2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/easy.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["em", "Hello!"], " how are ", ["strong", "you"], "?"]] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/easy.text: -------------------------------------------------------------------------------- 1 | *Hello!* how are **you**? 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/email.html: -------------------------------------------------------------------------------- 1 |

This is an email address: andrea@invalid.it

2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/email.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "This is an email address: ", ["a", { 2 | "href": "mailto:andrea@invalid.it" 3 | }, 4 | "andrea@invalid.it"]]] 5 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/email.text: -------------------------------------------------------------------------------- 1 | 2 | 3 | This is an email address: 4 | 5 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/entities.text: -------------------------------------------------------------------------------- 1 | Maruku translates HTML entities to the equivalent in LaTeX: 2 | 3 | Entity | Result 4 | ------------|---------- 5 | `©` | © 6 | `£` | £ 7 | `a b` | a b 8 | `λ` | λ 9 | `—` | — 10 | 11 | 12 | Entity-substitution does not happen in code blocks or inline code. 13 | 14 | The following should not be translated: 15 | 16 | © 17 | 18 | It should read just like this: `©`. 19 | 20 | 21 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/escaping.html: -------------------------------------------------------------------------------- 1 |

Hello: ! ! ` { } [ ] ( ) # . ! * * *

2 | 3 |

Ora, emphasis, bold, * <- due asterischi-> * , un underscore-> _ , emphasis, incrediblee!

4 | 5 |

This is Code with a special: -> ` <-(after)

6 | 7 |

Start of paragraph

8 | 9 |

End of paragraph

10 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/escaping.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Hello: ! ! ` { } [ ] ( ) # . ! * * *"], 2 | ["p", "Ora, ", ["em", "emphasis"], ", ", ["strong", "bold"], ", * <- due asterischi-> * , un underscore-> _ , ", ["em", "emphasis"], ", incre", ["em", "dible"], "e!"], 3 | ["p", "This is ", ["code", "Code with a special: -> ` <-"], "(after)"], 4 | ["p", ["code", "Start "], " of paragraph"], 5 | ["p", "End of ", ["code", "paragraph "]]] 6 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/escaping.text: -------------------------------------------------------------------------------- 1 | Hello: ! \! \` \{ \} \[ \] \( \) \# \. \! * \* * 2 | 3 | 4 | Ora, *emphasis*, **bold**, * <- due asterischi-> * , un underscore-> _ , _emphasis_, 5 | incre*dible*e! 6 | 7 | This is ``Code with a special: -> ` <- ``(after) 8 | 9 | `Start ` of paragraph 10 | 11 | End of `paragraph ` 12 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/extra_dl.html: -------------------------------------------------------------------------------- 1 |
2 |
Apple
3 | 4 |
Pomaceous fruit of plants of the genus Malus in the family Rosaceae.
5 | 6 |
Orange
7 | 8 |
The fruit of an evergreen tree of the genus Citrus.
9 |
10 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/extra_dl.json: -------------------------------------------------------------------------------- 1 | ["html", ["dl", ["dt", "Apple"], 2 | ["dd", "Pomaceous fruit of plants of the genus Malus in the family Rosaceae."], 3 | ["dt", "Orange"], 4 | ["dd", "The fruit of an evergreen tree of the genus Citrus."]], "\u000a"] 5 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/extra_dl.text: -------------------------------------------------------------------------------- 1 | CSS: style.css 2 | 3 | 4 | Apple 5 | : Pomaceous fruit of plants of the genus Malus in 6 | the family Rosaceae. 7 | 8 | Orange 9 | : The fruit of an evergreen tree of the genus Citrus. 10 | 11 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/extra_header_id.html: -------------------------------------------------------------------------------- 1 |

Header 1

2 | 3 |

Header 2

4 | 5 |

Header 3

6 | 7 |

Then you can create links to different parts of the same document like this:

8 | 9 |

Link back to header 1, Link back to header 2, Link back to header 3

10 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/extra_header_id.text: -------------------------------------------------------------------------------- 1 | Header 1 {#header1} 2 | ======== 3 | 4 | Header 2 {#header2} 5 | -------- 6 | 7 | ### Header 3 ### {#header3} 8 | 9 | Then you can create links to different parts of the same document like this: 10 | 11 | [Link back to header 1](#header1), 12 | [Link back to header 2](#header2), 13 | [Link back to header 3](#header3) 14 | 15 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/extra_table1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
First HeaderSecond Header
Content CellContent Cell
Content CellContent Cell
4 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/extra_table1.text: -------------------------------------------------------------------------------- 1 | CSS: style.css 2 | 3 | First Header | Second Header 4 | ------------- | ------------- 5 | Content Cell | Content Cell 6 | Content Cell | Content Cell 7 | 8 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/footnotes.text: -------------------------------------------------------------------------------- 1 | That's some text with a footnote [^b] and another [^c] and another [^a]. 2 | 3 | [^a]: And that's the footnote. 4 | 5 | That's the second paragraph of the footnote. 6 | 7 | 8 | [^b]: And that's the footnote. 9 | This is second sentence (same paragraph). 10 | 11 | [^c]: 12 | This is the very long one. 13 | 14 | That's the second paragraph. 15 | 16 | 17 | This is not a footnote. 18 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/headers.html: -------------------------------------------------------------------------------- 1 |

A title with emphasis

2 | 3 |

A title with emphasis

4 | 5 |

A title with emphasis

6 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/headers.json: -------------------------------------------------------------------------------- 1 | ["html", ["h1", { 2 | "id": "a_title_with_emphasis" 3 | }, 4 | "A title with ", ["em", "emphasis"]], "\u000a\u000a", ["h2", { 5 | "id": "a_title_with_emphasis" 6 | }, 7 | "A title with ", ["em", "emphasis"]], "\u000a\u000a", ["h4", { 8 | "id": "a_title_with_emphasis" 9 | }, 10 | "A title with ", ["em", "emphasis"]], "\u000a"] 11 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/headers.text: -------------------------------------------------------------------------------- 1 | A title with *emphasis* 2 | ======================= 3 | 4 | A title with *emphasis* 5 | ----------------------- 6 | 7 | 8 | #### A title with *emphasis* #### 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/hex_entities.html: -------------------------------------------------------------------------------- 1 |

Examples of numeric character references include © or © for the copyright symbol, Α or Α for the Greek capital letter alpha, and ا or ا for the Arabic letter alef.

2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/hex_entities.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Examples of numeric character references include © or © for the copyright symbol, Α or Α for the Greek capital letter alpha, and ا or ا for the Arabic letter alef."]] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/hex_entities.text: -------------------------------------------------------------------------------- 1 | Examples of numeric character references include © or © for the copyright symbol, Α or Α for the Greek capital letter alpha, and ا or ا for the Arabic letter alef. 2 | 3 | 4 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/hrule.html: -------------------------------------------------------------------------------- 1 |




2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/hrule.json: -------------------------------------------------------------------------------- 1 | ["html", ["hr"], 2 | ["hr"], 3 | ["hr"], 4 | ["hr"], 5 | ["hr"], "\u000a"] 6 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/hrule.text: -------------------------------------------------------------------------------- 1 | * * * 2 | 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/html2.html: -------------------------------------------------------------------------------- 1 |

One

123

2 |
3 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/html2.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "One ", ["div"], "123"], "\u000a", ["div"], "\u000a"] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/html2.text: -------------------------------------------------------------------------------- 1 | One 2 |
123 3 | 4 |
123 5 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/html3.html: -------------------------------------------------------------------------------- 1 |

taking part in some arcane conspirations which involve coffee, robots, sushi,

2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/html3.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "taking part in ", ["a", { 2 | "href": "http://sied.dis.uniroma1.it/" 3 | }, 4 | "some arcane conspirations"], " which involve ", ["b", { 5 | "href": "http://www.flickr.com/photos/censi/70893277/" 6 | }, 7 | "coffee"], ", ", ["a", { 8 | "href": "http://flickr.com/photos/censi/42775664/in/set-936677/" 9 | }, 10 | "robots"], ", ", ["a", { 11 | "href": "http://www.flickr.com/photos/censi/42775888/in/set-936677/" 12 | }, 13 | "sushi"], ","]] 14 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/html3.text: -------------------------------------------------------------------------------- 1 | taking part in some arcane conspirations which 2 | involve coffee, 3 | robots, 4 | sushi, 5 | 6 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/html4.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |
4 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/html4.json: -------------------------------------------------------------------------------- 1 | ["html", ["div", { 2 | "class": "frame" 3 | }, 4 | "\u000a\u0009", ["a", { 5 | "href": "http://www.flickr.com/photos/censi/54757256/", 6 | "class": "photo" 7 | }, 8 | ["img", { 9 | "src": "http://static.flickr.com/27/54757256_1a2c1d2a95_m.jpg", 10 | "moz-do-not-send": "true" 11 | }]], "\u000a"], "\u000a"] 12 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/html4.text: -------------------------------------------------------------------------------- 1 |
2 | 5 |
6 | 7 | 8 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/html5.html: -------------------------------------------------------------------------------- 1 |
2 | Aperitif 3 |
4 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/html5.json: -------------------------------------------------------------------------------- 1 | ["html", ["div", { 2 | "class": "frame" 3 | }, 4 | "\u000a ", ["a", { 5 | "href": "http://www.flickr.com/photos/censi/88561568/", 6 | "class": "photo" 7 | }, 8 | ["img", { 9 | "src": "http://static.flickr.com/28/88561568_ab84d28245_m.jpg", 10 | "height": "180", 11 | "moz-do-not-send": "true", 12 | "alt": "Aperitif", 13 | "width": "240" 14 | }]], "\u000a "], "\u000a"] 15 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/html5.text: -------------------------------------------------------------------------------- 1 |
2 | Aperitif 3 |
4 | 5 | 6 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/ie.text: -------------------------------------------------------------------------------- 1 | `

here's an apostrophe & a quote "

` 2 | 3 |

here's an apostrophe & a quote "

4 | {:} 5 | 6 |

here's an apostrophe & a quote "

7 | {:lang=xml} 8 | 9 |

here's an apostrophe & a quote "

10 | {:html_use_syntax=true lang=not_supported} 11 | 12 |

here's an apostrophe & a quote "

13 | {:html_use_syntax=true lang=xml} 14 | 15 | 16 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/images2.html: -------------------------------------------------------------------------------- 1 |

This is an image.

2 | 3 |

This is an image.

4 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/images2.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "This is an ", ["img", { 2 | "src": "image.jpg", 3 | "alt": "image" 4 | }], "."], 5 | ["p", "This is an ", ["img", { 6 | "src": "image.jpg", 7 | "alt": "image" 8 | }], "."]] 9 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/images2.text: -------------------------------------------------------------------------------- 1 | 2 | This is an ![image][]. 3 | 4 | This is an ![image]. 5 | 6 | [image]: image.jpg 7 | 8 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/inline_html2.html: -------------------------------------------------------------------------------- 1 |
2 |

Test bold

3 |

Test bold

4 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/inline_html2.json: -------------------------------------------------------------------------------- 1 | ["html", ["div", ["p", "Test ", ["strong", "bold"]]], 2 | ["p", "Test ", ["strong", "bold"]]] 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/inline_html2.text: -------------------------------------------------------------------------------- 1 |
Test **bold**
2 |

Test **bold**

3 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/list1.html: -------------------------------------------------------------------------------- 1 |
    2 |
  • 3 |

    A list item with a blockquote:

    4 | 5 |
    6 |

    This is a blockquote inside a list item.

    7 |
    8 |
  • 9 |
10 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/list1.json: -------------------------------------------------------------------------------- 1 | ["html", ["ul", ["li", ["p", "A list item with a blockquote:"], 2 | ["blockquote", ["p", "This is a blockquote inside a list item."]]]]] 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/list1.text: -------------------------------------------------------------------------------- 1 | * A list item with a blockquote: 2 | 3 | > This is a blockquote 4 | > inside a list item. 5 | 6 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/list2.html: -------------------------------------------------------------------------------- 1 |
    2 |
  • 3 |

    This is a list item with two paragraphs.

    4 | 5 |

    This is the second paragraph in the list item. You’re only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

    6 |
  • 7 | 8 |
  • 9 |

    other

    10 |
  • 11 |
12 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/list2.json: -------------------------------------------------------------------------------- 1 | ["html", ["ul", ["li", ["p", "This is a list item with two paragraphs."], 2 | ["p", "This is the second paragraph in the list item. You’re only required to indent the first line. Lorem ipsum dolor sit amet, consectetuer adipiscing elit."]], 3 | ["li", ["p", "other"]]]] 4 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/list2.text: -------------------------------------------------------------------------------- 1 | * This is a list item with two paragraphs. 2 | 3 | This is the second paragraph in the list item. You're 4 | only required to indent the first line. Lorem ipsum dolor 5 | sit amet, consectetuer adipiscing elit. 6 | 7 | * other 8 | 9 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/list3.html: -------------------------------------------------------------------------------- 1 |
    2 |
  • 3 |

    A list item with a blockquote:

    4 | 5 |
    6 |

    This is a blockquote inside a list item.

    7 |
    8 |
  • 9 | 10 |
  • 11 |

    A list item with a code block:

    12 | 13 |
    <code goes here>
    14 |
  • 15 |
16 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/list3.json: -------------------------------------------------------------------------------- 1 | ["html", ["ul", ["li", ["p", "A list item with a blockquote:"], 2 | ["blockquote", ["p", "This is a blockquote inside a list item."]]], 3 | ["li", ["p", "A list item with a code block:"], 4 | ["pre", ["code", ""]]]]] 5 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/list3.text: -------------------------------------------------------------------------------- 1 | * A list item with a blockquote: 2 | 3 | > This is a blockquote 4 | > inside a list item. 5 | 6 | * A list item with a code block: 7 | 8 | 9 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/list4.html: -------------------------------------------------------------------------------- 1 |

This is a list:

2 | 3 |
    4 |
  • one
  • 5 | 6 |
  • two
  • 7 |
8 | 9 |

This is not a list: * one ciao

10 | 11 |

This is a list:

12 | 13 |
    14 |
  1. one
  2. 15 | 16 |
  3. two
  4. 17 |
18 | 19 |

This is not a list: 1987. one ciao

20 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/list4.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "This is a list:"], 2 | ["ul", ["li", "one"], 3 | ["li", "two"]], 4 | ["p", "This is not a list: * one ciao"], 5 | ["p", "This is a list:"], 6 | ["ol", ["li", "one"], 7 | ["li", "two"]], 8 | ["p", "This is not a list: 1987. one ciao"]] 9 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/list4.text: -------------------------------------------------------------------------------- 1 | This is a list: 2 | * one 3 | * two 4 | 5 | This is not a list: 6 | * one 7 | ciao 8 | 9 | This is a list: 10 | 1. one 11 | 1. two 12 | 13 | This is not a list: 14 | 1987. one 15 | ciao 16 | 17 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists11.html: -------------------------------------------------------------------------------- 1 |

- ένα

2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists11.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "- ένα"]] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists11.text: -------------------------------------------------------------------------------- 1 | - ένα 2 | 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists6.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists6.json: -------------------------------------------------------------------------------- 1 | ["html"] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists6.text: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists7.html: -------------------------------------------------------------------------------- 1 |

Ciao

2 | 3 |
    4 |
  • Tab * Tab * Tab
  • 5 |
6 |

Ciao

7 | 8 |
    9 |
  • Tab * Tab * Tab
  • 10 |
11 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists7.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Ciao"], 2 | ["ul", ["li", "Tab * Tab * Tab"]], 3 | ["p", "Ciao"], 4 | ["ul", ["li", "Tab * Tab * Tab"]]] 5 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists7.text: -------------------------------------------------------------------------------- 1 | Ciao 2 | 3 | * Tab 4 | * Tab 5 | * Tab 6 | 7 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists7b.html: -------------------------------------------------------------------------------- 1 |
    2 |
  • 3 | a 4 | 5 |
      6 |
    • a1
    • 7 | 8 |
    • a2
    • 9 |
    10 |
  • 11 | 12 |
  • 13 |

    b

    14 |
  • 15 |
16 | -----| WARNING | ----- 17 |
    18 |
  • 19 |

    a

    20 | 21 |
      22 |
    • a1
    • 23 | 24 |
    • a2
    • 25 |
    26 |
  • 27 | 28 |
  • 29 |

    b

    30 |
  • 31 |
32 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists7b.json: -------------------------------------------------------------------------------- 1 | ["html", ["ul", ["li", "\u000aa\u000a\u000a", ["ul", ["li", "a1"], 2 | ["li", "a2"]]], 3 | ["li", ["p", "b"]]], "\u000a-----| WARNING | -----\u000a", ["ul", ["li", ["p", "a"], 4 | ["ul", ["li", "a1"], 5 | ["li", "a2"]]], 6 | ["li", ["p", "b"]]]] 7 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists7b.text: -------------------------------------------------------------------------------- 1 | * a 2 | * a1 3 | * a2 4 | * b 5 | 6 | 7 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists8.html: -------------------------------------------------------------------------------- 1 |

Here is a paragraph.

2 | 3 |
    4 |
  • Item 1
  • 5 | 6 |
  • Item 2
  • 7 | 8 |
  • Item 3
  • 9 |
10 | -----| WARNING | ----- 11 |

Here is a paragraph.

12 | 13 |

* Item 1 * Item 2 * Item 3

14 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists8.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Here is a paragraph."], 2 | ["ul", ["li", "Item 1"], 3 | ["li", "Item 2"], 4 | ["li", "Item 3"]], "\u000a-----| WARNING | -----\u000a", ["p", "Here is a paragraph."], 5 | ["p", "* Item 1 * Item 2 * Item 3"]] 6 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists8.text: -------------------------------------------------------------------------------- 1 | Here is a paragraph. 2 | 3 | 4 | * Item 1 5 | * Item 2 6 | * Item 3 7 | 8 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists9.html: -------------------------------------------------------------------------------- 1 |
    2 |
  • 3 |

    Due

    4 | 5 |
      6 |
    1. tre
    2. 7 | 8 |
    3. tre
    4. 9 | 10 |
    5. tre
    6. 11 |
    12 |
  • 13 | 14 |
  • 15 |

    Due

    16 |
  • 17 |
18 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists9.json: -------------------------------------------------------------------------------- 1 | ["html", ["ul", ["li", ["p", "Due"], 2 | ["ol", ["li", "tre"], 3 | ["li", "tre"], 4 | ["li", "tre"]]], 5 | ["li", ["p", "Due"]]]] 6 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/lists9.text: -------------------------------------------------------------------------------- 1 | - Due 2 | 1. tre 3 | 1. tre 4 | 1. tre 5 | - Due 6 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/loss.html: -------------------------------------------------------------------------------- 1 |
2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/loss.json: -------------------------------------------------------------------------------- 1 | ["html", ["br"], "\u000a"] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/loss.text: -------------------------------------------------------------------------------- 1 |
123 2 | 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/olist.html: -------------------------------------------------------------------------------- 1 |

This is a list:

2 | 3 |
    4 |
  1. one
  2. 5 | 6 |
  3. two
  4. 7 | 8 |
  5. three
  6. 9 |
10 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/olist.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "This is a list:"], 2 | ["ol", ["li", "one"], 3 | ["li", "two"], 4 | ["li", "three"]]] 5 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/olist.text: -------------------------------------------------------------------------------- 1 | This is a list: 2 | 3 | 2. one 4 | 2. two 5 | 3. three 6 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/one.html: -------------------------------------------------------------------------------- 1 |

One line

2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/one.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "One line"]] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/one.text: -------------------------------------------------------------------------------- 1 | One line 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/paragraph.html: -------------------------------------------------------------------------------- 1 |

Paragraph

2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/paragraph.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Paragraph"]] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/paragraph.text: -------------------------------------------------------------------------------- 1 | Paragraph 2 | 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/paragraphs.html: -------------------------------------------------------------------------------- 1 |

Paragraph 1

2 | 3 |

Paragraph 2

4 | 5 |

Paragraph 3 Paragraph 4 Paragraph Br->
Paragraph 5

6 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/paragraphs.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Paragraph 1"], 2 | ["p", "Paragraph 2"], 3 | ["p", "Paragraph 3 Paragraph 4 Paragraph Br->", ["br"], "Paragraph 5"]] 4 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/paragraphs.text: -------------------------------------------------------------------------------- 1 | Paragraph 1 2 | 3 | Paragraph 2 4 | 5 | 6 | Paragraph 3 7 | Paragraph 4 8 | Paragraph Br-> 9 | Paragraph 5 10 | 11 | 12 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/smartypants.text: -------------------------------------------------------------------------------- 1 | 'Twas a "test" to 'remember' in the '90s. 2 | 'Twas a "test" to 'remember' in the '90s. 3 | 4 | It was --- in a sense --- really... interesting. 5 | It was --- in a sense --- really... interesting. 6 | 7 | I -- too -- met << some curly quotes >> there or <>No space. 8 | I -- too -- met << some curly quotes >> there or <>No space. 9 | 10 | 11 | She was 6\"12\'. 12 | > She was 6\"12\'. 13 | 14 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/syntax_hl.html: -------------------------------------------------------------------------------- 1 |

This is ruby code:

2 | 3 |
require 'maruku'
 4 | 
 5 | puts Maruku.new($stdin).to_html
6 | 7 |

This is ruby code:

8 | 9 |
require 'maruku'
10 | 11 |
puts Maruku.new($stdin).to_html
12 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/syntax_hl.text: -------------------------------------------------------------------------------- 1 | This is ruby code: 2 | 3 | require 'maruku' 4 | 5 | puts Maruku.new($stdin).to_html 6 | 7 | This is ruby code: 8 | 9 | require 'maruku' 10 | {: lang=ruby html_use_syntax} 11 | 12 | puts Maruku.new($stdin).to_html 13 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/table_attributes.html: -------------------------------------------------------------------------------- 1 | 2 |
hh
c1c2
3 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/table_attributes.text: -------------------------------------------------------------------------------- 1 | 2 | h | h 3 | ----------|-- 4 | {:t} c1 | c2 5 | {: summary="Table summary" .class1 style="color:red" border=3 width="50%" frame=lhs rules=cols cellspacing=2em cellpadding=4px} 6 | 7 | {:t: scope="row"} 8 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/test.html: -------------------------------------------------------------------------------- 1 |
       $ python       
2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/test.json: -------------------------------------------------------------------------------- 1 | ["html", ["pre", ["code", " $ python "]]] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/test.text: -------------------------------------------------------------------------------- 1 | 2 | $ python 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/xml.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/xml.text: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/xml2.html: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/xml2.json: -------------------------------------------------------------------------------- 1 | ["html", "\u000a"] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/xml2.text: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/xml3.html: -------------------------------------------------------------------------------- 1 | Blah 2 | 3 | 4 |
em
5 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/xml3.json: -------------------------------------------------------------------------------- 1 | ["html", ["table", "Blah", ["thead", ["td", ["em", "em"]]]], "\u000a"] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/xml3.text: -------------------------------------------------------------------------------- 1 | 2 | Blah 3 | 4 | 5 | 6 |
*em*
7 | 8 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/xml_instruction.html: -------------------------------------------------------------------------------- 1 | 2 |

Targets

3 | 4 |

Inside: last

5 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/xml_instruction.json: -------------------------------------------------------------------------------- 1 | ["html", "\u000a", ["p", "Targets ", " ", " "], 2 | ["p", "Inside: ", " last"]] 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-maruku-unittest/xml_instruction.text: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Targets 8 | 9 | Inside: last 10 | 11 | 12 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown-todo/Email_auto_links.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["a", { 2 | "href": "mailto:michel.fortin@michelf.com" 3 | }, 4 | "michel.fortin@michelf.com"]], 5 | ["p", "International domain names: ", ["a", { 6 | "href": "mailto:help@tūdaliņ.lv" 7 | }, 8 | "help@tūdaliņ.lv"]]] 9 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown-todo/Email_auto_links.text: -------------------------------------------------------------------------------- 1 | 2 | 3 | International domain names: -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown-todo/Inline_HTML_(Span).html: -------------------------------------------------------------------------------- 1 |

ACINACS

2 | 3 |

SB 4 | SB

-------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown-todo/Inline_HTML_(Span).json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["abbr", { 2 | "title": "` **Attribute Content Is Not A Code Span** `" 3 | }, 4 | "ACINACS"]], 5 | ["p", ["abbr", { 6 | "title": "`first backtick!" 7 | }, 8 | "SB"], " \u000a", ["abbr", { 9 | "title": "`second backtick!" 10 | }, 11 | "SB"]]] 12 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown-todo/Inline_HTML_(Span).text: -------------------------------------------------------------------------------- 1 | ACINACS 2 | 3 | SB 4 | SB -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown-todo/Ins_and_del.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Here is a block tag ins:"], "\u000a\u000a", ["ins", ["p", "Some text"]], "\u000a\u000a", ["p", ["ins", "And here it is inside a paragraph."]], 2 | ["p", "And here it is ", ["ins", "in the middle of"], " a paragraph."], "\u000a\u000a", ["del", ["p", "Some text"]], "\u000a\u000a", ["p", ["del", "And here is ins as a paragraph."]], 3 | ["p", "And here it is ", ["del", "in the middle of"], " a paragraph."]] 4 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown-todo/Ins_and_del.text: -------------------------------------------------------------------------------- 1 | Here is a block tag ins: 2 | 3 | 4 |

Some text

5 |
6 | 7 | And here it is inside a paragraph. 8 | 9 | And here it is in the middle of a paragraph. 10 | 11 | 12 |

Some text

13 |
14 | 15 | And here is ins as a paragraph. 16 | 17 | And here it is in the middle of a paragraph. 18 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown-todo/Ins_and_del.xhtml: -------------------------------------------------------------------------------- 1 |

Here is a block tag ins:

2 | 3 | 4 |

Some text

5 |
6 | 7 |

And here it is inside a paragraph.

8 | 9 |

And here it is in the middle of a paragraph.

10 | 11 | 12 |

Some text

13 |
14 | 15 |

And here is ins as a paragraph.

16 | 17 |

And here it is in the middle of a paragraph.

18 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown-todo/Links_inline_style.html: -------------------------------------------------------------------------------- 1 |

silly URL w/ angle brackets.

2 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown-todo/Links_inline_style.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["a", { 2 | "href": "?}]*+|&)" 3 | }, 4 | "silly URL w/ angle brackets"], "."]] 5 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown-todo/Links_inline_style.text: -------------------------------------------------------------------------------- 1 | [silly URL w/ angle brackets](). 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown-todo/Nesting.html: -------------------------------------------------------------------------------- 1 |

Valid nesting:

2 | 3 |

Link

4 | 5 |

Link

6 | 7 |

Link

8 | 9 |

Invalid nesting:

10 | 11 |

[Link](url)

12 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown-todo/Nesting.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Valid nesting:"], 2 | ["p", ["strong", ["a", { 3 | "href": "url" 4 | }, 5 | "Link"]]], 6 | ["p", ["a", { 7 | "href": "url" 8 | }, 9 | ["strong", "Link"]]], 10 | ["p", ["strong", ["a", { 11 | "href": "url" 12 | }, 13 | ["strong", "Link"]]]], 14 | ["p", "Invalid nesting:"], 15 | ["p", ["a", { 16 | "href": "url" 17 | }, 18 | "[Link](url)"]]] 19 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown-todo/Nesting.text: -------------------------------------------------------------------------------- 1 | Valid nesting: 2 | 3 | **[Link](url)** 4 | 5 | [**Link**](url) 6 | 7 | **[**Link**](url)** 8 | 9 | Invalid nesting: 10 | 11 | [[Link](url)](url) -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown-todo/Parens_in_URL.html: -------------------------------------------------------------------------------- 1 |

Inline link 1 with parens.

2 | 3 |

Inline link 2 with parens.

4 | 5 |

Inline link 3 with non-escaped parens.

6 | 7 |

Inline link 4 with non-escaped parens.

8 | 9 |

Reference link 1 with parens.

10 | 11 |

Reference link 2 with parens.

-------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown-todo/Parens_in_URL.text: -------------------------------------------------------------------------------- 1 | [Inline link 1 with parens](/url\(test\) "title"). 2 | 3 | [Inline link 2 with parens]( "title"). 4 | 5 | [Inline link 3 with non-escaped parens](/url(test) "title"). 6 | 7 | [Inline link 4 with non-escaped parens]( "title"). 8 | 9 | [Reference link 1 with parens][1]. 10 | 11 | [Reference link 2 with parens][2]. 12 | 13 | [1]: /url(test) "title" 14 | [2]: "title" 15 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Backslash_escapes.html: -------------------------------------------------------------------------------- 1 |

Tricky combinaisons:

2 | 3 |

backslash with \-- two dashes

4 | 5 |

backslash with \> greater than

6 | 7 |

\[test](not a link)

8 | 9 |

\*no emphasis*

10 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Backslash_escapes.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Tricky combinaisons:"], 2 | ["p", "backslash with \\-- two dashes"], 3 | ["p", "backslash with \\> greater than"], 4 | ["p", "\\[test](not a link)"], 5 | ["p", "\\*no emphasis*"]] 6 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Backslash_escapes.text: -------------------------------------------------------------------------------- 1 | Tricky combinaisons: backslash with \\-- two dashes backslash with \\> greater than \\\[test](not a link) \\\*no emphasis* -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Code_Spans.html: -------------------------------------------------------------------------------- 1 |

From <!-- to --> 2 | on two lines.

3 | 4 |

From <!-- 5 | to --> 6 | on three lines.

7 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Code_Spans.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "From ", ["code", ""], "\u000aon two lines."], 2 | ["p", "From ", ["code", ""], "\u000aon three lines."]] 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Code_Spans.text: -------------------------------------------------------------------------------- 1 | From `` 2 | on two lines. 3 | 4 | From `` 6 | on three lines. 7 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Code_block_in_a_list_item.html: -------------------------------------------------------------------------------- 1 |
    2 |
  • List Item:

    3 | 4 |
    code block
     5 | 
     6 | 
     7 | with a blank line
     8 | 
    9 | 10 |

    within a list item.

  • 11 |
-------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Code_block_in_a_list_item.json: -------------------------------------------------------------------------------- 1 | ["html", ["ul", ["li", ["p", "List Item:"], 2 | ["pre", ["code", "code block\u000a\u000a\u000awith a blank line\u000a"]], 3 | ["p", "within a list item."]]]] 4 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Code_block_in_a_list_item.text: -------------------------------------------------------------------------------- 1 | 2 | * List Item: 3 | 4 | code block 5 | 6 | with a blank line 7 | 8 | within a list item. -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Headers.html: -------------------------------------------------------------------------------- 1 |

Header

2 | 3 |

Header

4 | 5 |

Header

6 | 7 |
8 | 9 |

Header

10 | 11 |

Paragraph

12 | 13 |

Header

14 | 15 |

Paragraph

16 | 17 |

Header

18 | 19 |

Paragraph

20 | 21 |
22 | 23 |

Paragraph

24 | 25 |

Header

26 | 27 |

Paragraph

28 | 29 |

Paragraph

30 | 31 |

Header

32 | 33 |

Paragraph

34 | 35 |

Paragraph

36 | 37 |

Header

38 | 39 |

Paragraph

40 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Headers.text: -------------------------------------------------------------------------------- 1 | Header ====== Header ------ ### Header 2 | 3 | - - - 4 | 5 | Header ====== Paragraph Header ------ Paragraph ### Header Paragraph 6 | 7 | - - - 8 | 9 | Paragraph Header ====== Paragraph Paragraph Header ------ Paragraph Paragraph ### Header Paragraph -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Images_(Untitled).html: -------------------------------------------------------------------------------- 1 |

alt text

2 | 3 |

alt text

4 | 5 |

alt text

6 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Images_(Untitled).json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["img", { 2 | "src": "/url/", 3 | "alt": "alt text" 4 | }]], 5 | ["p", ["img", { 6 | "src": "/url/", 7 | "alt": "alt text" 8 | }]], 9 | ["p", ["img", { 10 | "src": "/url/", 11 | "alt": "alt text" 12 | }]]] 13 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Images_(Untitled).text: -------------------------------------------------------------------------------- 1 | ![alt text](/url/) 2 | 3 | ![alt text]() 4 | 5 | ![alt text][foo] 6 | 7 | [foo]: /url/ -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Inline_HTML_(Simple).html: -------------------------------------------------------------------------------- 1 |

With some attributes:

2 | 3 |
4 | foo 5 |
6 | 7 |
9 | foo 10 |
11 | 12 |

Hr's:

13 | 14 |
-------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Inline_HTML_(Simple).json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "With some attributes:"], "\u000a\u000a", ["div", { 2 | "id": "test" 3 | }, 4 | "\u000a foo\u000a"], "\u000a\u000a", ["div", { 5 | "id": "test", 6 | "class": "nono" 7 | }, 8 | "\u000a foo\u000a"], "\u000a\u000a", ["p", "Hr's:"], "\u000a\u000a", ["hr", { 9 | "class": "foo", 10 | "id": "bar" 11 | }]] 12 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Inline_HTML_(Simple).text: -------------------------------------------------------------------------------- 1 | With some attributes: 2 | 3 |
4 | foo 5 |
6 | 7 |
9 | foo 10 |
11 | 12 | Hr's: 13 | 14 |
16 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Inline_HTML_comments.html: -------------------------------------------------------------------------------- 1 |

Paragraph one.

2 | 3 | 4 | 5 |

Paragraph two.

6 | 7 | 8 | 9 |

The end.

10 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Inline_HTML_comments.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Paragraph one."], "\u000a\u000a", "\u000a\u000a", ["p", "Paragraph two."], "\u000a\u000a", "\u000a\u000a", ["p", "The end."]] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Inline_HTML_comments.text: -------------------------------------------------------------------------------- 1 | Paragraph one. 2 | 3 | 4 | 5 | Paragraph two. 6 | 7 | 8 | 9 | The end. 10 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Tight_blocks.html: -------------------------------------------------------------------------------- 1 |

Paragraph and no space: 2 | * ciao

3 | 4 |

Paragraph and 1 space: 5 | * ciao

6 | 7 |

Paragraph and 3 spaces: 8 | * ciao

9 | 10 |

Paragraph and 4 spaces: 11 | * ciao

12 | 13 |

Paragraph before header:

14 | 15 |

Header

16 | 17 |

Paragraph before blockquote:

18 | 19 |
20 |

Some quote.

21 |
22 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Tight_blocks.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Paragraph and no space:\u000a* ciao"], 2 | ["p", "Paragraph and 1 space:\u000a * ciao"], 3 | ["p", "Paragraph and 3 spaces:\u000a * ciao"], 4 | ["p", "Paragraph and 4 spaces:\u000a * ciao"], 5 | ["p", "Paragraph before header:"], "\u000a\u000a", ["h1", "Header"], "\u000a\u000a", ["p", "Paragraph before blockquote:"], 6 | ["blockquote", ["p", "Some quote."]]] 7 | -------------------------------------------------------------------------------- /test/fixtures/docs-php-markdown/Tight_blocks.text: -------------------------------------------------------------------------------- 1 | Paragraph and no space: * ciao Paragraph and 1 space: * ciao Paragraph and 3 spaces: * ciao Paragraph and 4 spaces: * ciao Paragraph before header: #Header Paragraph before blockquote: >Some quote. -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/auto_link.html: -------------------------------------------------------------------------------- 1 |

I can has autolink? http://icanhascheeseburger.com

2 | 3 |

Ask garfield: garfield@example.com

4 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/auto_link.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "I can has autolink? ", ["a", { 2 | "href": "http://icanhascheeseburger.com" 3 | }, 4 | "http://icanhascheeseburger.com"]], 5 | ["p", "Ask garfield: ", ["a", { 6 | "href": "mailto:garfield@example.com" 7 | }, 8 | "garfield@example.com"]]] 9 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/auto_link.text: -------------------------------------------------------------------------------- 1 | I can has autolink? 2 | 3 | Ask garfield: 4 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/auto_link_safe_mode.html: -------------------------------------------------------------------------------- 1 |

I can has autolink? http://icanhascheeseburger.com

2 | 3 |

Ask garfield: garfield@example.com

4 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/auto_link_safe_mode.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "I can has autolink? ", ["a", { 2 | "href": "http://icanhascheeseburger.com" 3 | }, 4 | "http://icanhascheeseburger.com"]], 5 | ["p", "Ask garfield: ", ["a", { 6 | "href": "mailto:garfield@example.com" 7 | }, 8 | "garfield@example.com"]]] 9 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/auto_link_safe_mode.opts: -------------------------------------------------------------------------------- 1 | {'safe_mode': True} 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/auto_link_safe_mode.text: -------------------------------------------------------------------------------- 1 | I can has autolink? 2 | 3 | Ask garfield: 4 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/basic_safe_mode.html: -------------------------------------------------------------------------------- 1 |

blah [HTML_REMOVED] blah

2 | 3 |

[HTML_REMOVED]yowzer![HTML_REMOVED]

4 | 5 |

blah

6 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/basic_safe_mode.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "blah [HTML_REMOVED] blah"], 2 | ["p", "[HTML_REMOVED]yowzer![HTML_REMOVED]"], 3 | ["p", "blah"]] 4 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/basic_safe_mode.opts: -------------------------------------------------------------------------------- 1 | # Use the old (for-compat-only) way of specifying "replace" safe mode. 2 | {"safe_mode": True} 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/basic_safe_mode.text: -------------------------------------------------------------------------------- 1 | blah blah 2 | 3 |
yowzer!
4 | 5 | blah 6 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/basic_safe_mode_escape.html: -------------------------------------------------------------------------------- 1 |

blah <img src="dangerous"> blah

2 | 3 |

<div>yowzer!</div>

4 | 5 |

blah

6 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/basic_safe_mode_escape.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "blah blah"], 2 | ["p", "
yowzer!
"], 3 | ["p", "blah"]] 4 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/basic_safe_mode_escape.opts: -------------------------------------------------------------------------------- 1 | {"safe_mode": "escape"} 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/basic_safe_mode_escape.text: -------------------------------------------------------------------------------- 1 | blah blah 2 | 3 |
yowzer!
4 | 5 | blah 6 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/blockquote.html: -------------------------------------------------------------------------------- 1 |

[Trent wrote]

2 | 3 |
4 |

no way

5 |
6 | 7 |

[Jeff wrote]

8 | 9 |
10 |

way

11 |
12 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/blockquote.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "[Trent wrote]"], 2 | ["blockquote", ["p", "no way"]], 3 | ["p", "[Jeff wrote]"], 4 | ["blockquote", ["p", "way"]]] 5 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/blockquote.text: -------------------------------------------------------------------------------- 1 | [Trent wrote] 2 | > no way 3 | 4 | [Jeff wrote] 5 | > way 6 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/blockquote_with_pre.html: -------------------------------------------------------------------------------- 1 |
2 |

Markdown indents blockquotes a couple of spaces 3 | necessitating some tweaks for pre-blocks in that 4 | blockquote:

5 | 6 |
here is a check
 7 | for that
 8 | 
9 |
10 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/blockquote_with_pre.json: -------------------------------------------------------------------------------- 1 | ["html", ["blockquote", ["p", "Markdown indents blockquotes a couple of spaces\u000a necessitating some tweaks for pre-blocks in that\u000a blockquote:"], 2 | ["pre", ["code", "here is a check\u000afor that\u000a"]]]] 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/blockquote_with_pre.text: -------------------------------------------------------------------------------- 1 | > Markdown indents blockquotes a couple of spaces 2 | > necessitating some tweaks for pre-blocks in that 3 | > blockquote: 4 | > 5 | > here is a check 6 | > for that 7 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/code_block_with_tabs.html: -------------------------------------------------------------------------------- 1 |

Test with tabs for _Detab:

2 | 3 |
Code    'block' with    some    "tabs"  and "quotes"
4 | 
5 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/code_block_with_tabs.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Test with tabs for ", ["code", "_Detab"], ":"], 2 | ["pre", ["code", "Code 'block' with some \"tabs\" and \"quotes\"\u000a"]]] 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/code_block_with_tabs.text: -------------------------------------------------------------------------------- 1 | Test with tabs for `_Detab`: 2 | 3 | Code 'block' with some "tabs" and "quotes" 4 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/code_safe_emphasis.html: -------------------------------------------------------------------------------- 1 |

This is italic and this is bold. 2 | This is NOT _italic_ and this is __bold__ because --code-safe is turned on.

3 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/code_safe_emphasis.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "This is ", ["em", "italic"], " and this is ", ["strong", "bold"], ".\u000aThis is NOT _italic_ and this is __bold__ because --code-safe is turned on."]] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/code_safe_emphasis.opts: -------------------------------------------------------------------------------- 1 | {"extras": ["code-friendly"]} 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/code_safe_emphasis.text: -------------------------------------------------------------------------------- 1 | This is *italic* and this is **bold**. 2 | This is NOT _italic_ and this is __bold__ because --code-safe is turned on. 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/codeblock.html: -------------------------------------------------------------------------------- 1 |
some code
2 | 
3 | 4 |

some 'splaining

5 | 6 |
some more code
7 | 2 > 1
8 | 
9 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/codeblock.json: -------------------------------------------------------------------------------- 1 | ["html", ["pre", ["code", "some code\u000a"]], 2 | ["p", "some 'splaining"], 3 | ["pre", ["code", "some more code\u000a2 > 1\u000a"]]] 4 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/codeblock.text: -------------------------------------------------------------------------------- 1 | some code 2 | 3 | some 'splaining 4 | 5 | some more code 6 | 2 > 1 7 | 8 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/codespans.html: -------------------------------------------------------------------------------- 1 |

This is a code span. 2 | And This is one with an `embedded backtick`.

3 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/codespans.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["code", "This"], " is a code span.\u000aAnd ", ["code", "This is one with an `embedded backtick`"], "."]] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/codespans.text: -------------------------------------------------------------------------------- 1 | `This` is a code span. 2 | And ``This is one with an `embedded backtick` ``. 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/codespans_safe_mode.html: -------------------------------------------------------------------------------- 1 |

This is a code span. 2 | And This is one with an `embedded backtick`.

3 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/codespans_safe_mode.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["code", "This"], " is a code span.\u000aAnd ", ["code", "This is one with an `embedded backtick`"], "."]] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/codespans_safe_mode.opts: -------------------------------------------------------------------------------- 1 | {'safe_mode': True} 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/codespans_safe_mode.text: -------------------------------------------------------------------------------- 1 | `This` is a code span. 2 | And ``This is one with an `embedded backtick` ``. 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/emacs_head_vars.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

This sentence talks about the Python __init__ method, which I'd rather not be 4 | interpreted as Markdown's strong.

5 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/emacs_head_vars.json: -------------------------------------------------------------------------------- 1 | ["html", "\u000a\u000a", ["p", "This sentence talks about the Python __init__ method, which I'd rather not be\u000ainterpreted as Markdown's strong."]] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/emacs_head_vars.text: -------------------------------------------------------------------------------- 1 | 2 | 3 | This sentence talks about the Python __init__ method, which I'd rather not be 4 | interpreted as Markdown's strong. 5 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/emacs_tail_vars.html: -------------------------------------------------------------------------------- 1 |

This sentence talks about the Python __init__ method, which I'd rather not be 2 | interpreted as Markdown's strong.

3 | 4 | 9 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/emacs_tail_vars.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "This sentence talks about the Python __init__ method, which I'd rather not be\u000ainterpreted as Markdown's strong."], "\u000a\u000a", "\u000a"] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/emacs_tail_vars.text: -------------------------------------------------------------------------------- 1 | This sentence talks about the Python __init__ method, which I'd rather not be 2 | interpreted as Markdown's strong. 3 | 4 | 9 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/emphasis.html: -------------------------------------------------------------------------------- 1 |

This is italic and this is bold. 2 | This is also italic and this is bold.

3 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/emphasis.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "This is ", ["em", "italic"], " and this is ", ["strong", "bold"], ".\u000aThis is also ", ["em", "italic"], " and this is ", ["strong", "bold"], "."]] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/emphasis.text: -------------------------------------------------------------------------------- 1 | This is *italic* and this is **bold**. 2 | This is also _italic_ and this is __bold__. 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/escapes.html: -------------------------------------------------------------------------------- 1 |

**don't shout**

2 | 3 |

*don't emphasize*

4 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/escapes.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "**don't shout**"], 2 | ["p", "*don't emphasize*"]] 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/escapes.text: -------------------------------------------------------------------------------- 1 | \*\*don't shout\*\* 2 | 3 | \*don't emphasize\* 4 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/footnotes.opts: -------------------------------------------------------------------------------- 1 | {"extras": ["footnotes"]} 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/footnotes.text: -------------------------------------------------------------------------------- 1 | This is a para with a footnote.[^1] 2 | 3 | This is another para with a footnote[^2] in it. Actually it has two[^3] of 4 | them. No, three[^4]. 5 | 6 | 7 | [^1]: Here is the body of the first footnote. 8 | 9 | [^2]: And of the second footnote. 10 | 11 | This one has multiple paragraphs. 12 | 13 | [^3]: 14 | Here is a footnote body that starts on next line. 15 | 16 | [^4]: quickie "that looks like a link ref if not careful" 17 | 18 | 19 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/footnotes_letters.opts: -------------------------------------------------------------------------------- 1 | {"extras": ["footnotes"]} 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/footnotes_letters.text: -------------------------------------------------------------------------------- 1 | This is a para with a footnote.[^foo] 2 | 3 | This is another para with a footnote[^hyphen-ated] in it. Actually it has two[^Capital] of 4 | them. 5 | 6 | 7 | [^foo]: Here is the body of the first footnote. 8 | 9 | [^hyphen-ated]: And of the second footnote. 10 | 11 | This one has multiple paragraphs. 12 | 13 | [^Capital]: 14 | Here is a footnote body that starts on next line. 15 | 16 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/footnotes_markup.opts: -------------------------------------------------------------------------------- 1 | {"extras": ["footnotes"]} 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/footnotes_markup.text: -------------------------------------------------------------------------------- 1 | This is a para with a footnote.[^1] 2 | 3 | This is another para with a footnote.[^2] 4 | 5 | [^1]: And the **body** of the footnote has `markup`. For example, 6 | a [link to digg](http://digg.com). And some code: 7 | 8 | print "Hello, World!" 9 | 10 | [^2]: This body has markup too, *but* doesn't end with a code block. 11 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/footnotes_safe_mode_escape.opts: -------------------------------------------------------------------------------- 1 | {"safe_mode": "escape", "extras": ["footnotes"]} 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/footnotes_safe_mode_escape.text: -------------------------------------------------------------------------------- 1 | This is a para with a footnote.[^1] 2 | 3 | [^1]: Here is the body of the footnote. 4 | 5 |
And here is the second para of the footnote.
6 | 7 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/header.html: -------------------------------------------------------------------------------- 1 |

an h1

2 | 3 |

an h2

4 | 5 |

another h1

6 | 7 |

another h2

8 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/header.json: -------------------------------------------------------------------------------- 1 | ["html", ["h1", "an h1"], "\u000a\u000a", ["h2", "an h2"], "\u000a\u000a", ["h1", "another h1"], "\u000a\u000a", ["h2", "another h2"], "\u000a"] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/header.text: -------------------------------------------------------------------------------- 1 | # an h1 2 | 3 | ## an h2 4 | 5 | another h1 6 | ========== 7 | 8 | another h2 9 | ---------- 10 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/hr.html: -------------------------------------------------------------------------------- 1 |

Dashes:

2 | 3 |
4 | 5 |
6 | 7 |
8 | 9 |
10 | 11 |
---
12 | 
13 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/hr.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Dashes:"], "\u000a\u000a", ["hr"], "\u000a\u000a", ["hr"], "\u000a\u000a", ["hr"], "\u000a\u000a", ["hr"], "\u000a\u000a", ["pre", ["code", "---\u000a"]]] 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/hr.text: -------------------------------------------------------------------------------- 1 | Dashes: 2 | 3 | --- 4 | 5 | --- 6 | 7 | --- 8 | 9 | --- 10 | 11 | --- 12 | 13 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/img_in_link.html: -------------------------------------------------------------------------------- 1 |

This example from 2 | http://orestis.gr/en/blog/2007/05/28/python-markdown-problems/:

3 | 4 |

the google logo

5 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/img_in_link.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "This example from\u000a", ["a", { 2 | "href": "http://orestis.gr/en/blog/2007/05/28/python-markdown-problems/" 3 | }, 4 | "http://orestis.gr/en/blog/2007/05/28/python-markdown-problems/"], ":"], 5 | ["p", ["a", { 6 | "href": "http://www.google.com/", 7 | "title": "click to visit Google.com" 8 | }, 9 | ["img", { 10 | "src": "http://www.google.com/images/logo.gif", 11 | "alt": "the google logo" 12 | }]]]] 13 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/img_in_link.text: -------------------------------------------------------------------------------- 1 | This example from 2 | : 3 | 4 | [![the google logo][logo]][google] 5 | [logo]: http://www.google.com/images/logo.gif 6 | [google]: http://www.google.com/ "click to visit Google.com" 7 | 8 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/inline_links.html: -------------------------------------------------------------------------------- 1 |

an inline link

2 | 3 |

a link "with" title

4 | 5 |

an inline image link

6 | 7 |

an image "with" title

8 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/inline_links.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "an inline ", ["a", { 2 | "href": "/url/" 3 | }, 4 | "link"]], 5 | ["p", "a ", ["a", { 6 | "href": "/url/", 7 | "title": "title" 8 | }, 9 | "link \"with\" title"]], 10 | ["p", "an inline ", ["img", { 11 | "src": "/url/", 12 | "alt": "image link" 13 | }]], 14 | ["p", "an ", ["img", { 15 | "src": "/url/", 16 | "alt": "image \"with\" title", 17 | "title": "title" 18 | }]]] 19 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/inline_links.text: -------------------------------------------------------------------------------- 1 | an inline [link](/url/) 2 | 3 | a [link "with" title](/url/ "title") 4 | 5 | an inline ![image link](/url/) 6 | 7 | an ![image "with" title](/url/ "title") 8 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/issue2_safe_mode_borks_markup.html: -------------------------------------------------------------------------------- 1 |

Heading 2

2 | 3 |

blah [HTML_REMOVED]alert('this should be removed')[HTML_REMOVED] blah

4 | 5 |

[HTML_REMOVED]alert('as should this')[HTML_REMOVED]

6 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/issue2_safe_mode_borks_markup.json: -------------------------------------------------------------------------------- 1 | ["html", ["h2", "Heading 2"], "\u000a\u000a", ["p", "blah [HTML_REMOVED]alert('this should be removed')[HTML_REMOVED] ", ["strong", "blah"]], 2 | ["p", "[HTML_REMOVED]alert('as should this')[HTML_REMOVED]"]] 3 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/issue2_safe_mode_borks_markup.opts: -------------------------------------------------------------------------------- 1 | {"safe_mode": "replace"} 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/issue2_safe_mode_borks_markup.text: -------------------------------------------------------------------------------- 1 | ## Heading 2 2 | 3 | blah **blah** 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/link_defn_alt_title_delims.html: -------------------------------------------------------------------------------- 1 |

Alternative delimiters for link definitions are allowed -- as of 2 | Markdown 1.0.2, I think. Hence, this link and this link work 3 | too.

4 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/link_defn_alt_title_delims.text: -------------------------------------------------------------------------------- 1 | Alternative delimiters for [link definitions][link1] are allowed -- as of 2 | Markdown 1.0.2, I think. Hence, [this link][link2] and [this link][link3] work 3 | too. 4 | 5 | [link1]: http://daringfireball.net/projects/markdown/syntax#link "link syntax" 6 | [link2]: http://daringfireball.net/projects/markdown/syntax#link 'link syntax' 7 | [link3]: http://daringfireball.net/projects/markdown/syntax#link (link syntax) 8 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/link_patterns.html: -------------------------------------------------------------------------------- 1 |

Recipe 123 and Komodo bug 234 are related.

2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/link_patterns.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["a", { 2 | "href": "http://code.activestate.com/recipes/123/" 3 | }, 4 | "Recipe 123"], " and ", ["a", { 5 | "href": "http://bugs.activestate.com/show_bug.cgi?id=234" 6 | }, 7 | "Komodo bug 234"], " are related."]] 8 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/link_patterns.opts: -------------------------------------------------------------------------------- 1 | {"extras": ["link-patterns"], 2 | "link_patterns": [ 3 | (re.compile("recipe\s+(\d+)", re.I), r"http://code.activestate.com/recipes/\1/"), 4 | (re.compile("(?:komodo\s+)?bug\s+(\d+)", re.I), r"http://bugs.activestate.com/show_bug.cgi?id=\1"), 5 | ], 6 | } 7 | 8 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/link_patterns.text: -------------------------------------------------------------------------------- 1 | Recipe 123 and Komodo bug 234 are related. 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/link_patterns_double_hit.html: -------------------------------------------------------------------------------- 1 |

There once was a Mozilla bug 123 and a Komodo bug 123.

2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/link_patterns_double_hit.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "There once was a ", ["a", { 2 | "href": "http://bugzilla.mozilla.org/show_bug.cgi?id=123" 3 | }, 4 | "Mozilla bug 123"], " and a ", ["a", { 5 | "href": "http://bugs.activestate.com/show_bug.cgi?id=123" 6 | }, 7 | "Komodo bug 123"], "."]] 8 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/link_patterns_double_hit.opts: -------------------------------------------------------------------------------- 1 | {"extras": ["link-patterns"], 2 | "link_patterns": [ 3 | (re.compile(r'mozilla\s+bug\s+(\d+)', re.I), r'http://bugzilla.mozilla.org/show_bug.cgi?id=\1'), 4 | (re.compile("(?:komodo\s+)?bug\s+(\d+)", re.I), r"http://bugs.activestate.com/show_bug.cgi?id=\1"), 5 | ], 6 | } 7 | 8 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/link_patterns_double_hit.text: -------------------------------------------------------------------------------- 1 | There once was a Mozilla bug 123 and a Komodo bug 123. 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/link_patterns_edge_cases.html: -------------------------------------------------------------------------------- 1 |

Blah 123 becomes a line with two underscores.

2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/link_patterns_edge_cases.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["a", { 2 | "href": "http://foo.com/blah_blah_blah/123" 3 | }, 4 | "Blah 123"], " becomes a line with two underscores."]] 5 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/link_patterns_edge_cases.opts: -------------------------------------------------------------------------------- 1 | {"extras": ["link-patterns"], 2 | "link_patterns": [ 3 | (re.compile("Blah\s+(\d+)", re.I), r"http://foo.com/blah_blah_blah/\1"), 4 | ], 5 | } 6 | 7 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/link_patterns_edge_cases.text: -------------------------------------------------------------------------------- 1 | Blah 123 becomes a line with two underscores. 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/lists.html: -------------------------------------------------------------------------------- 1 |

count:

2 | 3 |
    4 |
  • one
  • 5 |
  • two
  • 6 |
  • three
  • 7 |
8 | 9 |

count in spanish:

10 | 11 |
    12 |
  1. uno
  2. 13 |
  3. dos
  4. 14 |
  5. tres
  6. 15 |
16 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/lists.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "count:"], 2 | ["ul", ["li", "one"], 3 | ["li", "two"], 4 | ["li", "three"]], 5 | ["p", "count in spanish:"], 6 | ["ol", ["li", "uno"], 7 | ["li", "dos"], 8 | ["li", "tres"]]] 9 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/lists.text: -------------------------------------------------------------------------------- 1 | count: 2 | 3 | * one 4 | * two 5 | * three 6 | 7 | count in spanish: 8 | 9 | 1. uno 10 | 2. dos 11 | 3. tres 12 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/mismatched_footnotes.opts: -------------------------------------------------------------------------------- 1 | {"extras": ["footnotes"]} 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/mismatched_footnotes.text: -------------------------------------------------------------------------------- 1 | This is sentence has a footnote foo[^foo] and whamo[^whamo]. 2 | 3 | This is another para with a numbered footnote[^6]. 4 | 5 | 6 | [^foo]: Here is the body of the footnote foo. 7 | [^bar]: Here is the body of the footnote bar. 8 | [^6]: Here is the body of the footnote 6. 9 | 10 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/missing_link_defn.html: -------------------------------------------------------------------------------- 1 |

This is a [missing link][missing] and a used link.

2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/missing_link_defn.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "This is a [missing link][missing] and a ", ["a", { 2 | "href": "http://foo.com" 3 | }, 4 | "used link"], "."]] 5 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/missing_link_defn.text: -------------------------------------------------------------------------------- 1 | 2 | This is a [missing link][missing] and a [used link][used]. 3 | 4 | 5 | [used]: http://foo.com 6 | [unused]: http://foo.com 7 | 8 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/nested_list.html: -------------------------------------------------------------------------------- 1 |

shopping list:

2 | 3 |
    4 |
  • veggies 5 |
      6 |
    • carrots
    • 7 |
    • lettuce
    • 8 |
  • 9 |
  • fruits 10 |
      11 |
    • oranges
    • 12 |
    • apples
    • 13 |
    • peaches
    • 14 |
  • 15 |
16 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/nested_list.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "shopping list:"], 2 | ["ul", ["li", "veggies\u000a", ["ul", ["li", "carrots"], 3 | ["li", "lettuce"]]], 4 | ["li", "fruits\u000a", ["ul", ["li", "oranges"], 5 | ["li", "apples"], 6 | ["li", ["em", "peaches"]]]]]] 7 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/nested_list.text: -------------------------------------------------------------------------------- 1 | shopping list: 2 | 3 | - veggies 4 | + carrots 5 | + lettuce 6 | - fruits 7 | + oranges 8 | + apples 9 | + *peaches* 10 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/nested_list_safe_mode.html: -------------------------------------------------------------------------------- 1 |

shopping list:

2 | 3 |
    4 |
  • veggies 5 |
      6 |
    • carrots
    • 7 |
    • lettuce
    • 8 |
  • 9 |
  • fruits 10 |
      11 |
    • oranges
    • 12 |
    • apples
    • 13 |
    • peaches
    • 14 |
  • 15 |
16 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/nested_list_safe_mode.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "shopping list:"], 2 | ["ul", ["li", "veggies\u000a", ["ul", ["li", "carrots"], 3 | ["li", "lettuce"]]], 4 | ["li", "fruits\u000a", ["ul", ["li", "oranges"], 5 | ["li", "apples"], 6 | ["li", ["em", "peaches"]]]]]] 7 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/nested_list_safe_mode.opts: -------------------------------------------------------------------------------- 1 | {'safe_mode': True} 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/nested_list_safe_mode.text: -------------------------------------------------------------------------------- 1 | shopping list: 2 | 3 | - veggies 4 | + carrots 5 | + lettuce 6 | - fruits 7 | + oranges 8 | + apples 9 | + *peaches* 10 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/parens_in_url_4.html: -------------------------------------------------------------------------------- 1 |

Inline link 4 with non-escaped parens.

2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/parens_in_url_4.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["a", { 2 | "href": "/url(test)", 3 | "title": "title" 4 | }, 5 | "Inline link 4 with non-escaped parens"], "."]] 6 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/parens_in_url_4.text: -------------------------------------------------------------------------------- 1 | [Inline link 4 with non-escaped parens]( "title"). 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/raw_html.html: -------------------------------------------------------------------------------- 1 |

Hi, there. blah

2 | 3 |
4 | **ack** 5 |
6 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/raw_html.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Hi, ", ["span", { 2 | "foo": "*bar*" 3 | }, 4 | ["em", "there"]], ". ", " blah"], "\u000a\u000a", ["div", "\u000a **ack**\u000a"], "\u000a"] 5 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/raw_html.text: -------------------------------------------------------------------------------- 1 | 2 | Hi, *there*. blah 3 | 4 |
5 | **ack** 6 |
7 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/ref_links.html: -------------------------------------------------------------------------------- 1 |

Google is fast star.

2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/ref_links.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", ["a", { 2 | "href": "http://www.google.com/" 3 | }, 4 | "Google"], " is fast ", ["img", { 5 | "src": "/img/star.png", 6 | "alt": "star" 7 | }], "."]] 8 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/ref_links.text: -------------------------------------------------------------------------------- 1 | [Google][] is fast ![star][]. 2 | 3 | [google]: http://www.google.com/ 4 | [star]: /img/star.png 5 | 6 | 7 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/syntax_color.opts: -------------------------------------------------------------------------------- 1 | {"extras": ["code-color"]} 2 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/syntax_color.text: -------------------------------------------------------------------------------- 1 | Here is some sample code: 2 | 3 | :::python 4 | import sys 5 | def main(argv=sys.argv): 6 | logging.basicConfig() 7 | log.info('hi') 8 | 9 | and: 10 | 11 | :::ruby 12 | use 'zlib' 13 | sub main(argv) 14 | puts 'hi' 15 | end 16 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/tricky_anchors.html: -------------------------------------------------------------------------------- 1 |

with [brackets][] in text

2 | 3 |

with [[brackets][]] in text

4 | 5 |

full link [like](/this/) in text

6 | 7 |

full link to img like is ok

8 | 9 |

[only open bracket(/in/) text

10 | 11 |

only close bracket text](/url/)

12 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/tricky_anchors.text: -------------------------------------------------------------------------------- 1 | [with [brackets][] in text](/url/) 2 | 3 | [with [[brackets][]] in text](/url/ "a title") 4 | 5 | [full link [like](/this/) in text](/url/) 6 | 7 | [full link to img ![like](/this/) is ok](/url/) 8 | 9 | [only open [bracket(/in/) text](/url/ 'a title') 10 | 11 | [only close bracket](/in/) text](/url/) 12 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/underline_in_autolink.html: -------------------------------------------------------------------------------- 1 |

Eric wrote up a (long) intro to writing UDL definitions a while back on 2 | his blog: http://blogs.activestate.com/ericp/2007/01/kid_adding_a_ne.html

3 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/underline_in_autolink.json: -------------------------------------------------------------------------------- 1 | ["html", ["p", "Eric wrote up a (long) intro to writing UDL definitions a while back on\u000ahis blog: ", ["a", { 2 | "href": "http://blogs.activestate.com/ericp/2007/01/kid_adding_a_ne.html" 3 | }, 4 | "http://blogs.activestate.com/ericp/2007/01/kid_adding_a_ne.html"]]] 5 | -------------------------------------------------------------------------------- /test/fixtures/docs-pythonmarkdown2-tm-cases-pass/underline_in_autolink.text: -------------------------------------------------------------------------------- 1 | Eric wrote up a (long) intro to writing UDL definitions a while back on 2 | his blog: 3 | -------------------------------------------------------------------------------- /test/html_renderer.t.js: -------------------------------------------------------------------------------- 1 | var markdown = require("../src/markdown"), 2 | tap = require("tap"); 3 | 4 | tap.test("src attribute order", function(t) { 5 | var tree = markdown.toHTML("![photo](/images/photo.jpg)"); 6 | t.equivalent( tree, '

photo

' ); 7 | t.end(); 8 | }); --------------------------------------------------------------------------------