diff options
Diffstat (limited to 'glfm_specification/output_example_snapshots')
6 files changed, 10163 insertions, 2480 deletions
diff --git a/glfm_specification/output_example_snapshots/examples_index.yml b/glfm_specification/output_example_snapshots/examples_index.yml index 45d10679a71..d08f16c7313 100644 --- a/glfm_specification/output_example_snapshots/examples_index.yml +++ b/glfm_specification/output_example_snapshots/examples_index.yml @@ -2084,3 +2084,174 @@ 08_03_00__gitlab_internal_extension_markdown__markdown_preview_api_request_overrides__006: spec_example_position: 697 source_specification: gitlab +08_04_01__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_image_for_group__001: + spec_example_position: 698 + source_specification: gitlab +08_04_02__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_image_for_project__001: + spec_example_position: 699 + source_specification: gitlab +08_04_03__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_image_for_project_wiki__001: + spec_example_position: 700 + source_specification: gitlab +08_04_04__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_group__001: + spec_example_position: 701 + source_specification: gitlab +08_04_05__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_project__001: + spec_example_position: 702 + source_specification: gitlab +08_04_06__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_project_wiki__001: + spec_example_position: 703 + source_specification: gitlab +08_04_07__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_group_wiki__001: + spec_example_position: 704 + source_specification: gitlab +08_04_08__gitlab_internal_extension_markdown__migrated_golden_master_examples__audio__001: + spec_example_position: 705 + source_specification: gitlab +08_04_09__gitlab_internal_extension_markdown__migrated_golden_master_examples__audio_and_video_in_lists__001: + spec_example_position: 706 + source_specification: gitlab +08_04_10__gitlab_internal_extension_markdown__migrated_golden_master_examples__blockquote__001: + spec_example_position: 707 + source_specification: gitlab +08_04_11__gitlab_internal_extension_markdown__migrated_golden_master_examples__bold__001: + spec_example_position: 708 + source_specification: gitlab +08_04_12__gitlab_internal_extension_markdown__migrated_golden_master_examples__bullet_list_style_1__001: + spec_example_position: 709 + source_specification: gitlab +08_04_13__gitlab_internal_extension_markdown__migrated_golden_master_examples__bullet_list_style_2__001: + spec_example_position: 710 + source_specification: gitlab +08_04_14__gitlab_internal_extension_markdown__migrated_golden_master_examples__bullet_list_style_3__001: + spec_example_position: 711 + source_specification: gitlab +08_04_15__gitlab_internal_extension_markdown__migrated_golden_master_examples__code_block_javascript__001: + spec_example_position: 712 + source_specification: gitlab +08_04_16__gitlab_internal_extension_markdown__migrated_golden_master_examples__code_block_plaintext__001: + spec_example_position: 713 + source_specification: gitlab +08_04_17__gitlab_internal_extension_markdown__migrated_golden_master_examples__code_block_unknown__001: + spec_example_position: 714 + source_specification: gitlab +08_04_18__gitlab_internal_extension_markdown__migrated_golden_master_examples__color_chips__001: + spec_example_position: 715 + source_specification: gitlab +08_04_19__gitlab_internal_extension_markdown__migrated_golden_master_examples__description_list__001: + spec_example_position: 716 + source_specification: gitlab +08_04_20__gitlab_internal_extension_markdown__migrated_golden_master_examples__details__001: + spec_example_position: 717 + source_specification: gitlab +08_04_21__gitlab_internal_extension_markdown__migrated_golden_master_examples__diagram_kroki_nomnoml__001: + spec_example_position: 718 + source_specification: gitlab +08_04_22__gitlab_internal_extension_markdown__migrated_golden_master_examples__diagram_plantuml__001: + spec_example_position: 719 + source_specification: gitlab +08_04_23__gitlab_internal_extension_markdown__migrated_golden_master_examples__diagram_plantuml_unicode__001: + spec_example_position: 720 + source_specification: gitlab +08_04_24__gitlab_internal_extension_markdown__migrated_golden_master_examples__div__001: + spec_example_position: 721 + source_specification: gitlab +08_04_25__gitlab_internal_extension_markdown__migrated_golden_master_examples__emoji__001: + spec_example_position: 722 + source_specification: gitlab +08_04_26__gitlab_internal_extension_markdown__migrated_golden_master_examples__emphasis__001: + spec_example_position: 723 + source_specification: gitlab +08_04_27__gitlab_internal_extension_markdown__migrated_golden_master_examples__figure__001: + spec_example_position: 724 + source_specification: gitlab +08_04_28__gitlab_internal_extension_markdown__migrated_golden_master_examples__footnotes__001: + spec_example_position: 725 + source_specification: gitlab +08_04_29__gitlab_internal_extension_markdown__migrated_golden_master_examples__frontmatter_json__001: + spec_example_position: 726 + source_specification: gitlab +08_04_30__gitlab_internal_extension_markdown__migrated_golden_master_examples__frontmatter_toml__001: + spec_example_position: 727 + source_specification: gitlab +08_04_31__gitlab_internal_extension_markdown__migrated_golden_master_examples__frontmatter_yaml__001: + spec_example_position: 728 + source_specification: gitlab +08_04_32__gitlab_internal_extension_markdown__migrated_golden_master_examples__hard_break__001: + spec_example_position: 729 + source_specification: gitlab +08_04_33__gitlab_internal_extension_markdown__migrated_golden_master_examples__headings__001: + spec_example_position: 730 + source_specification: gitlab +08_04_34__gitlab_internal_extension_markdown__migrated_golden_master_examples__horizontal_rule__001: + spec_example_position: 731 + source_specification: gitlab +08_04_35__gitlab_internal_extension_markdown__migrated_golden_master_examples__html_marks__001: + spec_example_position: 732 + source_specification: gitlab +08_04_36__gitlab_internal_extension_markdown__migrated_golden_master_examples__image__001: + spec_example_position: 733 + source_specification: gitlab +08_04_37__gitlab_internal_extension_markdown__migrated_golden_master_examples__inline_code__001: + spec_example_position: 734 + source_specification: gitlab +08_04_38__gitlab_internal_extension_markdown__migrated_golden_master_examples__inline_diff__001: + spec_example_position: 735 + source_specification: gitlab +08_04_39__gitlab_internal_extension_markdown__migrated_golden_master_examples__label__001: + spec_example_position: 736 + source_specification: gitlab +08_04_40__gitlab_internal_extension_markdown__migrated_golden_master_examples__link__001: + spec_example_position: 737 + source_specification: gitlab +08_04_41__gitlab_internal_extension_markdown__migrated_golden_master_examples__math__001: + spec_example_position: 738 + source_specification: gitlab +08_04_42__gitlab_internal_extension_markdown__migrated_golden_master_examples__ordered_list__001: + spec_example_position: 739 + source_specification: gitlab +08_04_43__gitlab_internal_extension_markdown__migrated_golden_master_examples__ordered_list_with_start_order__001: + spec_example_position: 740 + source_specification: gitlab +08_04_44__gitlab_internal_extension_markdown__migrated_golden_master_examples__ordered_task_list__001: + spec_example_position: 741 + source_specification: gitlab +08_04_45__gitlab_internal_extension_markdown__migrated_golden_master_examples__ordered_task_list_with_order__001: + spec_example_position: 742 + source_specification: gitlab +08_04_46__gitlab_internal_extension_markdown__migrated_golden_master_examples__reference_for_project_wiki__001: + spec_example_position: 743 + source_specification: gitlab +08_04_47__gitlab_internal_extension_markdown__migrated_golden_master_examples__strike__001: + spec_example_position: 744 + source_specification: gitlab +08_04_48__gitlab_internal_extension_markdown__migrated_golden_master_examples__table__001: + spec_example_position: 745 + source_specification: gitlab +08_04_49__gitlab_internal_extension_markdown__migrated_golden_master_examples__table_of_contents__001: + spec_example_position: 746 + source_specification: gitlab +08_04_50__gitlab_internal_extension_markdown__migrated_golden_master_examples__task_list__001: + spec_example_position: 747 + source_specification: gitlab +08_04_51__gitlab_internal_extension_markdown__migrated_golden_master_examples__video__001: + spec_example_position: 748 + source_specification: gitlab +08_04_52__gitlab_internal_extension_markdown__migrated_golden_master_examples__word_break__001: + spec_example_position: 749 + source_specification: gitlab +08_05_00__gitlab_internal_extension_markdown__image_attributes__001: + spec_example_position: 750 + source_specification: gitlab +08_05_00__gitlab_internal_extension_markdown__image_attributes__002: + spec_example_position: 751 + source_specification: gitlab +08_05_00__gitlab_internal_extension_markdown__image_attributes__003: + spec_example_position: 752 + source_specification: gitlab +08_05_00__gitlab_internal_extension_markdown__image_attributes__004: + spec_example_position: 753 + source_specification: gitlab +08_05_00__gitlab_internal_extension_markdown__image_attributes__005: + spec_example_position: 754 + source_specification: gitlab diff --git a/glfm_specification/output_example_snapshots/html.yml b/glfm_specification/output_example_snapshots/html.yml index bdd0777ce17..06e88ce4b81 100644 --- a/glfm_specification/output_example_snapshots/html.yml +++ b/glfm_specification/output_example_snapshots/html.yml @@ -1911,7 +1911,7 @@ <!-- foo -->*bar* <p><em>baz</em></p> static: |- - *bar* + <!-- foo -->*bar* <p data-sourcepos="2:1-2:5" dir="auto"><em>baz</em></p> wysiwyg: |- <p>*bar* @@ -1933,8 +1933,11 @@ bar baz --> <p>okay</p> - static: |2- + static: |- + <!-- Foo + bar + baz --> <p data-sourcepos="5:1-5:4" dir="auto">okay</p> wysiwyg: |- <p>okay</p> @@ -1988,10 +1991,12 @@ <!-- foo --> <pre><code><!-- foo --> </code></pre> - static: " \n<div class=\"gl-relative markdown-code-block js-markdown-code\">\n<pre - data-sourcepos=\"3:5-3:16\" lang=\"plaintext\" class=\"code highlight js-syntax-highlight - language-plaintext\" data-canonical-lang=\"\" v-pre=\"true\"><code><span id=\"LC1\" - class=\"line\" lang=\"plaintext\"><!-- foo --></span></code></pre>\n<copy-code></copy-code>\n</div>" + static: |2- + <!-- foo --> + <div class="gl-relative markdown-code-block js-markdown-code"> + <pre data-sourcepos="3:5-3:16" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><!-- foo --></span></code></pre> + <copy-code></copy-code> + </div> wysiwyg: |- <pre class="content-editor-code-block undefined code highlight"><code><!-- foo --></code></pre> 04_06_00__leaf_blocks__html_blocks__036: @@ -4311,7 +4316,7 @@ <li data-sourcepos="1:1-1:5">foo</li> <li data-sourcepos="2:1-3:0">bar</li> </ul> - + <!-- --> <ul data-sourcepos="6:1-7:5" dir="auto"> <li data-sourcepos="6:1-6:5">baz</li> <li data-sourcepos="7:1-7:5">bim</li> @@ -4343,7 +4348,7 @@ <p data-sourcepos="5:5-5:7">foo</p> </li> </ul> - + <!-- --> <div class="gl-relative markdown-code-block js-markdown-code"> <pre data-sourcepos="9:5-9:8" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">code</span></code></pre> <copy-code></copy-code> @@ -7382,7 +7387,8 @@ <p>foo <!-- this is a comment - with hyphen --></p> static: |- - <p data-sourcepos="1:1-2:25" dir="auto">foo </p> + <p data-sourcepos="1:1-2:25" dir="auto">foo <!-- this is a + comment - with hyphen --></p> wysiwyg: |- <p>foo </p> 06_11_00__inlines__raw_html__014: @@ -7942,3 +7948,705 @@ <p><a href="group-wikis-test-file">group-wikis-test-file</a></p> static: |- <p data-sourcepos="1:1-1:46" dir="auto"><a href="/groups/glfm_group/-/wikis/group-wikis-test-file" data-canonical-src="group-wikis-test-file">group-wikis-test-file</a></p> +08_04_01__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_image_for_group__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:69" dir="auto"><a class="no-attachment-icon gfm" href="/groups/glfm_group/-/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png" target="_blank" rel="noopener noreferrer" data-canonical-src="/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png" data-link="true"><img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="test-file" decoding="async" class="lazy gfm" data-src="/groups/glfm_group/-/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png" data-canonical-src="/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png"></a></p> + wysiwyg: |- + <p><img src="/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png" alt="test-file"></p> +08_04_02__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_image_for_project__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:69" dir="auto"><a class="no-attachment-icon gfm" href="/glfm_group/glfm_project/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png" target="_blank" rel="noopener noreferrer" data-canonical-src="/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png" data-link="true"><img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="test-file" decoding="async" class="lazy gfm" data-src="/glfm_group/glfm_project/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png" data-canonical-src="/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png"></a></p> + wysiwyg: |- + <p><img src="/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png" alt="test-file"></p> +08_04_03__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_image_for_project_wiki__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:27" dir="auto"><a class="no-attachment-icon" href="/glfm_group/glfm_project/-/wikis/test-file.png" target="_blank" rel="noopener noreferrer" data-canonical-src="test-file.png"><img alt="test-file" decoding="async" class="lazy" data-src="/glfm_group/glfm_project/-/wikis/test-file.png" data-canonical-src="test-file.png"></a></p> + wysiwyg: |- + <p><img src="test-file.png" alt="test-file"></p> +08_04_04__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_group__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:68" dir="auto"><a href="/groups/glfm_group/-/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip" data-canonical-src="/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip" data-link="true" class="gfm">test-file</a></p> + wysiwyg: |- + <p><a target="_blank" rel="noopener noreferrer nofollow" href="/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip">test-file</a></p> +08_04_05__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_project__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:68" dir="auto"><a href="/glfm_group/glfm_project/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip" data-canonical-src="/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip" data-link="true" class="gfm">test-file</a></p> + wysiwyg: |- + <p><a target="_blank" rel="noopener noreferrer nofollow" href="/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip">test-file</a></p> +08_04_06__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_project_wiki__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:26" dir="auto"><a href="/glfm_group/glfm_project/-/wikis/test-file.zip" data-canonical-src="test-file.zip">test-file</a></p> +08_04_07__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_group_wiki__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:26" dir="auto"><a href="/groups/glfm_group/-/wikis/test-file.zip" data-canonical-src="test-file.zip">test-file</a></p> + wysiwyg: |- + <p><a target="_blank" rel="noopener noreferrer nofollow" href="test-file.zip">test-file</a></p> +08_04_08__gitlab_internal_extension_markdown__migrated_golden_master_examples__audio__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:46" dir="auto"><span class="media-container audio-container"><audio src="https://gitlab.com/gitlab.mp3" controls="true" data-setup="{}" data-title="Sample Audio"></audio><a href="https://gitlab.com/gitlab.mp3" target="_blank" rel="nofollow noreferrer noopener" title="Download 'Sample Audio'">Sample Audio</a></span></p> + wysiwyg: |- + <p><span class="media-container audio-container"><audio src="https://gitlab.com/gitlab.mp3" controls="true" data-setup="{}" data-title="Sample Audio"></audio><a href="https://gitlab.com/gitlab.mp3">Sample Audio</a></span></p> +08_04_09__gitlab_internal_extension_markdown__migrated_golden_master_examples__audio_and_video_in_lists__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <ul data-sourcepos="1:1-3:0" dir="auto"> + <li data-sourcepos="1:1-1:43"><span class="media-container audio-container"><audio src="https://gitlab.com/1.mp3" controls="true" data-setup="{}" data-title="Sample Audio"></audio><a href="https://gitlab.com/1.mp3" target="_blank" rel="nofollow noreferrer noopener" title="Download 'Sample Audio'">Sample Audio</a></span></li> + <li data-sourcepos="2:1-3:0"><span class="media-container video-container"><video src="https://gitlab.com/2.mp4" controls="true" data-setup="{}" data-title="Sample Video" width="400" preload="metadata"></video><a href="https://gitlab.com/2.mp4" target="_blank" rel="nofollow noreferrer noopener" title="Download 'Sample Video'">Sample Video</a></span></li> + </ul> + <ol data-sourcepos="4:1-6:0" dir="auto"> + <li data-sourcepos="4:1-4:44"><span class="media-container video-container"><video src="https://gitlab.com/1.mp4" controls="true" data-setup="{}" data-title="Sample Video" width="400" preload="metadata"></video><a href="https://gitlab.com/1.mp4" target="_blank" rel="nofollow noreferrer noopener" title="Download 'Sample Video'">Sample Video</a></span></li> + <li data-sourcepos="5:1-6:0"><span class="media-container audio-container"><audio src="https://gitlab.com/2.mp3" controls="true" data-setup="{}" data-title="Sample Audio"></audio><a href="https://gitlab.com/2.mp3" target="_blank" rel="nofollow noreferrer noopener" title="Download 'Sample Audio'">Sample Audio</a></span></li> + </ol> + <ul data-sourcepos="7:1-9:47" class="task-list" dir="auto"> + <li data-sourcepos="7:1-7:47" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" checked disabled> <span class="media-container audio-container"><audio src="https://gitlab.com/1.mp3" controls="true" data-setup="{}" data-title="Sample Audio"></audio><a href="https://gitlab.com/1.mp3" target="_blank" rel="nofollow noreferrer noopener" title="Download 'Sample Audio'">Sample Audio</a></span> + </li> + <li data-sourcepos="8:1-8:47" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" checked disabled> <span class="media-container audio-container"><audio src="https://gitlab.com/2.mp3" controls="true" data-setup="{}" data-title="Sample Audio"></audio><a href="https://gitlab.com/2.mp3" target="_blank" rel="nofollow noreferrer noopener" title="Download 'Sample Audio'">Sample Audio</a></span> + </li> + <li data-sourcepos="9:1-9:47" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" checked disabled> <span class="media-container video-container"><video src="https://gitlab.com/3.mp4" controls="true" data-setup="{}" data-title="Sample Video" width="400" preload="metadata"></video><a href="https://gitlab.com/3.mp4" target="_blank" rel="nofollow noreferrer noopener" title="Download 'Sample Video'">Sample Video</a></span> + </li> + </ul> + wysiwyg: |- + <ul bullet="*"><li><p><span class="media-container audio-container"><audio src="https://gitlab.com/1.mp3" controls="true" data-setup="{}" data-title="Sample Audio"></audio><a href="https://gitlab.com/1.mp3">Sample Audio</a></span></p></li><li><p><span class="media-container video-container"><video src="https://gitlab.com/2.mp4" controls="true" data-setup="{}" data-title="Sample Video"></video><a href="https://gitlab.com/2.mp4">Sample Video</a></span></p></li></ul> + <ol parens="false"><li><p><span class="media-container video-container"><video src="https://gitlab.com/1.mp4" controls="true" data-setup="{}" data-title="Sample Video"></video><a href="https://gitlab.com/1.mp4">Sample Video</a></span></p></li><li><p><span class="media-container audio-container"><audio src="https://gitlab.com/2.mp3" controls="true" data-setup="{}" data-title="Sample Audio"></audio><a href="https://gitlab.com/2.mp3">Sample Audio</a></span></p></li></ol> + <ul start="1" parens="false" data-type="taskList"><li data-checked="true" data-type="taskItem"><label><input type="checkbox" checked="checked"><span></span></label><div><p><span class="media-container audio-container"><audio src="https://gitlab.com/1.mp3" controls="true" data-setup="{}" data-title="Sample Audio"></audio><a href="https://gitlab.com/1.mp3">Sample Audio</a></span></p></div></li><li data-checked="true" data-type="taskItem"><label><input type="checkbox" checked="checked"><span></span></label><div><p><span class="media-container audio-container"><audio src="https://gitlab.com/2.mp3" controls="true" data-setup="{}" data-title="Sample Audio"></audio><a href="https://gitlab.com/2.mp3">Sample Audio</a></span></p></div></li><li data-checked="true" data-type="taskItem"><label><input type="checkbox" checked="checked"><span></span></label><div><p><span class="media-container video-container"><video src="https://gitlab.com/3.mp4" controls="true" data-setup="{}" data-title="Sample Video"></video><a href="https://gitlab.com/3.mp4">Sample Video</a></span></p></div></li></ul> +08_04_10__gitlab_internal_extension_markdown__migrated_golden_master_examples__blockquote__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <blockquote data-sourcepos="1:1-3:21" dir="auto"> + <p data-sourcepos="1:3-1:22">This is a blockquote</p> + <p data-sourcepos="3:3-3:21">This is another one</p> + </blockquote> + wysiwyg: |- + <blockquote multiline="false"><p>This is a blockquote</p><p>This is another one</p></blockquote> +08_04_11__gitlab_internal_extension_markdown__migrated_golden_master_examples__bold__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:8" dir="auto"><strong>bold</strong></p> + wysiwyg: |- + <p><strong>bold</strong></p> +08_04_12__gitlab_internal_extension_markdown__migrated_golden_master_examples__bullet_list_style_1__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <ul data-sourcepos="1:1-3:24" dir="auto"> + <li data-sourcepos="1:1-1:13">list item 1</li> + <li data-sourcepos="2:1-3:24">list item 2 + <ul data-sourcepos="3:3-3:24"> + <li data-sourcepos="3:3-3:24">embedded list item 3</li> + </ul> + </li> + </ul> + wysiwyg: |- + <ul bullet="*"><li><p>list item 1</p></li><li><p>list item 2</p><ul bullet="*"><li><p>embedded list item 3</p></li></ul></li></ul> +08_04_13__gitlab_internal_extension_markdown__migrated_golden_master_examples__bullet_list_style_2__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <ul data-sourcepos="1:1-3:24" dir="auto"> + <li data-sourcepos="1:1-1:13">list item 1</li> + <li data-sourcepos="2:1-3:24">list item 2 + <ul data-sourcepos="3:3-3:24"> + <li data-sourcepos="3:3-3:24">embedded list item 3</li> + </ul> + </li> + </ul> + wysiwyg: |- + <ul bullet="*"><li><p>list item 1</p></li><li><p>list item 2</p><ul bullet="*"><li><p>embedded list item 3</p></li></ul></li></ul> +08_04_14__gitlab_internal_extension_markdown__migrated_golden_master_examples__bullet_list_style_3__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <ul data-sourcepos="1:1-3:24" dir="auto"> + <li data-sourcepos="1:1-1:13">list item 1</li> + <li data-sourcepos="2:1-3:24">list item 2 + <ul data-sourcepos="3:3-3:24"> + <li data-sourcepos="3:3-3:24">embedded list item 3</li> + </ul> + </li> + </ul> + wysiwyg: |- + <ul bullet="*"><li><p>list item 1</p></li><li><p>list item 2</p><ul bullet="*"><li><p>embedded list item 3</p></li></ul></li></ul> +08_04_15__gitlab_internal_extension_markdown__migrated_golden_master_examples__code_block_javascript__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <div class="gl-relative markdown-code-block js-markdown-code"> + <pre data-sourcepos="1:1-3:3" lang="javascript" class="code highlight js-syntax-highlight language-javascript" v-pre="true"><code><span id="LC1" class="line" lang="javascript"> <span class="nx">console</span><span class="p">.</span><span class="nx">log</span><span class="p">(</span><span class="dl">'</span><span class="s1">hello world</span><span class="dl">'</span><span class="p">)</span></span></code></pre> + <copy-code></copy-code> + </div> + wysiwyg: |- + <pre language="javascript" class="content-editor-code-block undefined code highlight"><code> console.log('hello world')</code></pre> +08_04_16__gitlab_internal_extension_markdown__migrated_golden_master_examples__code_block_plaintext__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <div class="gl-relative markdown-code-block js-markdown-code"> + <pre data-sourcepos="1:1-3:3" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> plaintext</span></code></pre> + <copy-code></copy-code> + </div> + wysiwyg: |- + <pre class="content-editor-code-block undefined code highlight"><code> plaintext</code></pre> +08_04_17__gitlab_internal_extension_markdown__migrated_golden_master_examples__code_block_unknown__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <div class="gl-relative markdown-code-block js-markdown-code"> + <pre data-sourcepos="1:1-3:3" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="foobar" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> custom_language = >> this <<</span></code></pre> + <copy-code></copy-code> + </div> + wysiwyg: |- + <pre language="foobar" class="content-editor-code-block undefined code highlight"><code> custom_language = >> this <<</code></pre> +08_04_18__gitlab_internal_extension_markdown__migrated_golden_master_examples__color_chips__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <ul data-sourcepos="1:1-9:25" dir="auto"> + <li data-sourcepos="1:1-1:8"><code>#F00<span class="gfm-color_chip"><span style="background-color: #F00;"></span></span></code></li> + <li data-sourcepos="2:1-2:9"><code>#F00A<span class="gfm-color_chip"><span style="background-color: #F00A;"></span></span></code></li> + <li data-sourcepos="3:1-3:11"><code>#FF0000<span class="gfm-color_chip"><span style="background-color: #FF0000;"></span></span></code></li> + <li data-sourcepos="4:1-4:13"><code>#FF0000AA<span class="gfm-color_chip"><span style="background-color: #FF0000AA;"></span></span></code></li> + <li data-sourcepos="5:1-5:16"><code>RGB(0,255,0)<span class="gfm-color_chip"><span style="background-color: RGB(0,255,0);"></span></span></code></li> + <li data-sourcepos="6:1-6:19"><code>RGB(0%,100%,0%)<span class="gfm-color_chip"><span style="background-color: RGB(0%,100%,0%);"></span></span></code></li> + <li data-sourcepos="7:1-7:21"><code>RGBA(0,255,0,0.3)<span class="gfm-color_chip"><span style="background-color: RGBA(0,255,0,0.3);"></span></span></code></li> + <li data-sourcepos="8:1-8:20"><code>HSL(540,70%,50%)<span class="gfm-color_chip"><span style="background-color: HSL(540,70%,50%);"></span></span></code></li> + <li data-sourcepos="9:1-9:25"><code>HSLA(540,70%,50%,0.3)<span class="gfm-color_chip"><span style="background-color: HSLA(540,70%,50%,0.3);"></span></span></code></li> + </ul> + wysiwyg: |- + <ul bullet="*"><li><p><code>#F00</code></p></li><li><p><code>#F00A</code></p></li><li><p><code>#FF0000</code></p></li><li><p><code>#FF0000AA</code></p></li><li><p><code>RGB(0,255,0)</code></p></li><li><p><code>RGB(0%,100%,0%)</code></p></li><li><p><code>RGBA(0,255,0,0.3)</code></p></li><li><p><code>HSL(540,70%,50%)</code></p></li><li><p><code>HSLA(540,70%,50%,0.3)</code></p></li></ul> +08_04_19__gitlab_internal_extension_markdown__migrated_golden_master_examples__description_list__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <dl> + <dt>Frog</dt> + <dd>Wet green thing</dd> + <dt>Rabbit</dt> + <dd>Warm fluffy thing</dd> + <dt>Punt</dt> + <dd>Kick a ball</dd> + <dd>Take a bet</dd> + <dt>Color</dt> + <dt>Colour</dt> + <dd> + <p data-sourcepos="13:1-13:35">Any hue except <em>white</em> or <strong>black</strong></p> + </dd> + </dl> + wysiwyg: |- + <p></p> +08_04_20__gitlab_internal_extension_markdown__migrated_golden_master_examples__details__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <details> + <summary>This is the visible summary of the collapsible section</summary> + <ol data-sourcepos="4:1-6:0"> + <li data-sourcepos="4:1-4:21">collapsed markdown</li> + <li data-sourcepos="5:1-6:0">more collapsed markdown</li> + </ol> + </details> + wysiwyg: |- + <p></p> +08_04_21__gitlab_internal_extension_markdown__migrated_golden_master_examples__diagram_kroki_nomnoml__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <div class="gl-relative markdown-code-block js-markdown-code"> + <pre data-sourcepos="1:1-11:3" lang="nomnoml" class="code highlight js-syntax-highlight language-nomnoml" v-pre="true"><code><span id="LC1" class="line" lang="nomnoml"> #stroke: #a86128</span> + <span id="LC2" class="line" lang="nomnoml"> [<frame>Decorator pattern|</span> + <span id="LC3" class="line" lang="nomnoml"> [<abstract>Component||+ operation()]</span> + <span id="LC4" class="line" lang="nomnoml"> [Client] depends --> [Component]</span> + <span id="LC5" class="line" lang="nomnoml"> [Decorator|- next: Component]</span> + <span id="LC6" class="line" lang="nomnoml"> [Decorator] decorates -- [ConcreteComponent]</span> + <span id="LC7" class="line" lang="nomnoml"> [Component] <:- [Decorator]</span> + <span id="LC8" class="line" lang="nomnoml"> [Component] <:- [ConcreteComponent]</span> + <span id="LC9" class="line" lang="nomnoml"> ]</span></code></pre> + <copy-code></copy-code> + </div> + wysiwyg: |- + <pre language="nomnoml" class="content-editor-code-block undefined code highlight"><code> #stroke: #a86128 + [<frame>Decorator pattern| + [<abstract>Component||+ operation()] + [Client] depends --> [Component] + [Decorator|- next: Component] + [Decorator] decorates -- [ConcreteComponent] + [Component] <:- [Decorator] + [Component] <:- [ConcreteComponent] + ]</code></pre> +08_04_22__gitlab_internal_extension_markdown__migrated_golden_master_examples__diagram_plantuml__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <div class="gl-relative markdown-code-block js-markdown-code"> + <pre data-sourcepos="1:1-7:3" lang="plantuml" class="code highlight js-syntax-highlight language-plantuml" v-pre="true"><code><span id="LC1" class="line" lang="plantuml"> Alice -> Bob: Authentication Request</span> + <span id="LC2" class="line" lang="plantuml"> Bob --> Alice: Authentication Response</span> + <span id="LC3" class="line" lang="plantuml"></span> + <span id="LC4" class="line" lang="plantuml"> Alice -> Bob: Another authentication Request</span> + <span id="LC5" class="line" lang="plantuml"> Alice <-- Bob: Another authentication Response</span></code></pre> + <copy-code></copy-code> + </div> + wysiwyg: |- + <div><pre language="plantuml" class="content-editor-code-block code highlight" isdiagram="true" showpreview="true"><code> Alice -> Bob: Authentication Request + Bob --> Alice: Authentication Response + + Alice -> Bob: Another authentication Request + Alice <-- Bob: Another authentication Response</code></pre></div> +08_04_23__gitlab_internal_extension_markdown__migrated_golden_master_examples__diagram_plantuml_unicode__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <div class="gl-relative markdown-code-block js-markdown-code"> + <pre data-sourcepos="1:1-3:3" lang="plantuml" class="code highlight js-syntax-highlight language-plantuml" v-pre="true"><code><span id="LC1" class="line" lang="plantuml">A -> B : Text with norwegian characters: æøå</span></code></pre> + <copy-code></copy-code> + </div> + wysiwyg: |- + <div><pre language="plantuml" class="content-editor-code-block code highlight" isdiagram="true" showpreview="true"><code>A -> B : Text with norwegian characters: æøå</code></pre></div> +08_04_24__gitlab_internal_extension_markdown__migrated_golden_master_examples__div__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <div>plain text</div> + <div> + <p data-sourcepos="4:1-4:43">just a plain ol' div, not much to <em>expect</em>!</p> + </div> + wysiwyg: |- + <div><p>plain text</p></div> + <div><p>just a plain ol' div, not much to <em>expect</em>!</p></div> +08_04_25__gitlab_internal_extension_markdown__migrated_golden_master_examples__emoji__001: + canonical: | + TODO: Write canonical HTML for this example + static: "<p data-sourcepos=\"1:1-1:24\" dir=\"auto\"><gl-emoji title=\"sparkles\" + data-name=\"sparkles\" data-unicode-version=\"6.0\">✨</gl-emoji> <gl-emoji title=\"heavy + black heart\" data-name=\"heart\" data-unicode-version=\"1.1\">❤</gl-emoji> <gl-emoji + title=\"hundred points symbol\" data-name=\"100\" data-unicode-version=\"6.0\">\U0001F4AF</gl-emoji></p>" + wysiwyg: |- + <p>:sparkles: :heart: :100:</p> +08_04_26__gitlab_internal_extension_markdown__migrated_golden_master_examples__emphasis__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:17" dir="auto"><em>emphasized text</em></p> + wysiwyg: |- + <p><em>emphasized text</em></p> +08_04_27__gitlab_internal_extension_markdown__migrated_golden_master_examples__figure__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <figure> + <p data-sourcepos="3:1-3:42"><a class="no-attachment-icon" href="elephant-sunset.jpg" target="_blank" rel="noopener noreferrer"><img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="Elephant at sunset" decoding="async" class="lazy" data-src="elephant-sunset.jpg"></a></p> + <figcaption>An elephant at sunset</figcaption> + </figure> + <figure> + <p data-sourcepos="9:1-9:44"><a class="no-attachment-icon" href="croc-crocs.jpg" target="_blank" rel="noopener noreferrer"><img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="A crocodile wearing crocs" decoding="async" class="lazy" data-src="croc-crocs.jpg"></a></p> + <figcaption> + <p data-sourcepos="13:1-13:28">A crocodile wearing <em>crocs</em>!</p> + </figcaption> + </figure> + wysiwyg: |- + <p></p> +08_04_28__gitlab_internal_extension_markdown__migrated_golden_master_examples__footnotes__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:46" dir="auto">A footnote reference tag looks like this: <sup class="footnote-ref"><a href="#fn-1-42" id="fnref-1-42" data-footnote-ref>1</a></sup></p> + <p data-sourcepos="3:1-3:63" dir="auto">This reference tag is a mix of letters and numbers. <sup class="footnote-ref"><a href="#fn-footnote-42" id="fnref-footnote-42" data-footnote-ref>2</a></sup></p> + <section data-footnotes class="footnotes"> + <ol> + <li id="fn-1-42"> + <p data-sourcepos="5:7-5:41">This is the text inside a footnote. <a href="#fnref-1-42" data-footnote-backref aria-label="Back to content" class="footnote-backref"><gl-emoji title="leftwards arrow with hook" data-name="leftwards_arrow_with_hook" data-unicode-version="1.1">↩</gl-emoji></a></p> + </li> + <li id="fn-footnote-42"> + <p data-sourcepos="7:14-7:38">This is another footnote. <a href="#fnref-footnote-42" data-footnote-backref aria-label="Back to content" class="footnote-backref"><gl-emoji title="leftwards arrow with hook" data-name="leftwards_arrow_with_hook" data-unicode-version="1.1">↩</gl-emoji></a></p> + </li> + </ol> + </section> + wysiwyg: |- + <p>A footnote reference tag looks like this: <sup identifier="1">1</sup></p> + <p>This reference tag is a mix of letters and numbers. <sup identifier="footnote">footnote</sup></p> + <div node="footnoteDefinition(paragraph("This is the text inside a footnote."))" htmlattributes="[object Object]"><p>This is the text inside a footnote.</p></div> + <div node="footnoteDefinition(paragraph("This is another footnote."))" htmlattributes="[object Object]"><p>This is another footnote.</p></div> +08_04_29__gitlab_internal_extension_markdown__migrated_golden_master_examples__frontmatter_json__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <div class="gl-relative markdown-code-block js-markdown-code"> + <pre data-sourcepos="1:1-5:3" lang="json" class="code highlight js-syntax-highlight language-json" data-lang-params="frontmatter" v-pre="true"><code><span id="LC1" class="line" lang="json"><span class="p">{</span></span> + <span id="LC2" class="line" lang="json"><span class="w"> </span><span class="nl">"title"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Page title"</span></span> + <span id="LC3" class="line" lang="json"><span class="p">}</span></span></code></pre> + <copy-code></copy-code> + </div> + wysiwyg: |- + <pre language="json" class="content-editor-code-block undefined code highlight" isfrontmatter="true"><code>{ + "title": "Page title" + }</code></pre> +08_04_30__gitlab_internal_extension_markdown__migrated_golden_master_examples__frontmatter_toml__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <div class="gl-relative markdown-code-block js-markdown-code"> + <pre data-sourcepos="1:1-3:3" lang="toml" class="code highlight js-syntax-highlight language-toml" data-lang-params="frontmatter" v-pre="true"><code><span id="LC1" class="line" lang="toml"><span class="py">title</span> <span class="p">=</span> <span class="s">"Page title"</span></span></code></pre> + <copy-code></copy-code> + </div> + wysiwyg: |- + <pre language="toml" class="content-editor-code-block undefined code highlight" isfrontmatter="true"><code>title = "Page title"</code></pre> +08_04_31__gitlab_internal_extension_markdown__migrated_golden_master_examples__frontmatter_yaml__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <div class="gl-relative markdown-code-block js-markdown-code"> + <pre data-sourcepos="1:1-3:3" lang="yaml" class="code highlight js-syntax-highlight language-yaml" data-lang-params="frontmatter" v-pre="true"><code><span id="LC1" class="line" lang="yaml"><span class="na">title</span><span class="pi">:</span> <span class="s">Page title</span></span></code></pre> + <copy-code></copy-code> + </div> + wysiwyg: |- + <pre language="yaml" class="content-editor-code-block undefined code highlight" isfrontmatter="true"><code>title: Page title</code></pre> +08_04_32__gitlab_internal_extension_markdown__migrated_golden_master_examples__hard_break__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-2:10" dir="auto">This is a line after a<br> + hard break</p> + wysiwyg: |- + <p>This is a line after a<br> + hard break</p> +08_04_33__gitlab_internal_extension_markdown__migrated_golden_master_examples__headings__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <h1 data-sourcepos="1:1-1:11" dir="auto"> + <a id="user-content-heading-1" class="anchor" href="#heading-1" aria-hidden="true"></a>Heading 1</h1> + <h2 data-sourcepos="3:1-3:12" dir="auto"> + <a id="user-content-heading-2" class="anchor" href="#heading-2" aria-hidden="true"></a>Heading 2</h2> + <h3 data-sourcepos="5:1-5:13" dir="auto"> + <a id="user-content-heading-3" class="anchor" href="#heading-3" aria-hidden="true"></a>Heading 3</h3> + <h4 data-sourcepos="7:1-7:14" dir="auto"> + <a id="user-content-heading-4" class="anchor" href="#heading-4" aria-hidden="true"></a>Heading 4</h4> + <h5 data-sourcepos="9:1-9:15" dir="auto"> + <a id="user-content-heading-5" class="anchor" href="#heading-5" aria-hidden="true"></a>Heading 5</h5> + <h6 data-sourcepos="11:1-11:16" dir="auto"> + <a id="user-content-heading-6" class="anchor" href="#heading-6" aria-hidden="true"></a>Heading 6</h6> + wysiwyg: |- + <h1>Heading 1</h1> + <h2>Heading 2</h2> + <h3>Heading 3</h3> + <h4>Heading 4</h4> + <h5>Heading 5</h5> + <h6>Heading 6</h6> +08_04_34__gitlab_internal_extension_markdown__migrated_golden_master_examples__horizontal_rule__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <hr data-sourcepos="1:1-1:3"> + wysiwyg: |- + <hr> +08_04_35__gitlab_internal_extension_markdown__migrated_golden_master_examples__html_marks__001: + canonical: | + TODO: Write canonical HTML for this example + static: "<ul data-sourcepos=\"1:1-15:130\" dir=\"auto\">\n<li data-sourcepos=\"1:1-1:48\">Content + editor is <del>great</del><ins>amazing</ins>.</li>\n<li data-sourcepos=\"2:1-2:126\">If + the changes <abbr title=\"Looks good to merge\">LGTM</abbr>, please <abbr title=\"Merge + when pipeline succeeds\">MWPS</abbr>.</li>\n<li data-sourcepos=\"3:1-3:288\">The + English song <q>Oh I do like to be beside the seaside</q> looks like this in Hebrew: + <span dir=\"rtl\">אה, אני אוהב להיות ליד חוף הים</span>. In the computer's memory, + this is stored as <bdo dir=\"ltr\">אה, אני אוהב להיות ליד חוף הים</bdo>.</li>\n<li + data-sourcepos=\"4:1-4:59\">\n<cite>The Scream</cite> by Edvard Munch. Painted + in 1893.</li>\n<li data-sourcepos=\"5:1-5:73\">\n<dfn>HTML</dfn> is the standard + markup language for creating web pages.</li>\n<li data-sourcepos=\"6:1-6:47\">Do + not forget to buy <mark>milk</mark> today.</li>\n<li data-sourcepos=\"7:1-7:64\">This + is a paragraph and <small>smaller text goes here</small>.</li>\n<li data-sourcepos=\"8:1-8:149\">The + concert starts at <time datetime=\"20:00\">20:00</time> and you'll be able to + enjoy the band for at least <time datetime=\"PT2H30M\">2h 30m</time>.</li>\n<li + data-sourcepos=\"9:1-9:62\">Press <kbd>Ctrl</kbd> + <kbd>C</kbd> to copy text + (Windows).</li>\n<li data-sourcepos=\"10:1-10:105\">WWF's goal is to: <q>Build + a future where people live in harmony with nature.</q> We hope they succeed.</li>\n<li + data-sourcepos=\"11:1-11:80\">The error occurred was: <samp>Keyboard not found. + Press F1 to continue.</samp>\n</li>\n<li data-sourcepos=\"12:1-12:136\">The area + of a triangle is: 1/2 x <var>b</var> x <var>h</var>, where <var>b</var> is the + base, and <var>h</var> is the vertical height.</li>\n<li data-sourcepos=\"13:1-13:35\"><ruby>漢<rt>ㄏㄢˋ</rt></ruby></li>\n<li + data-sourcepos=\"14:1-14:79\">C<sub>7</sub>H<sub>16</sub> + O<sub>2</sub> \t CO<sub>2</sub> + + H<sub>2</sub>O</li>\n<li data-sourcepos=\"15:1-15:130\">The <strong>Pythagorean + theorem</strong> is often expressed as <var>a<sup>2</sup></var> + <var>b<sup>2</sup></var> + = <var>c<sup>2</sup></var>\n</li>\n</ul>" + wysiwyg: "<ul bullet=\"*\"><li><p>Content editor is<s>great</s></p><p>.</p></li><li><p>If + the changes</p><p>, please</p><p>.</p></li><li><p>The English song</p><p> looks + like this in Hebrew:</p><p>. In the computer's memory, this is stored as</p><p>.</p></li><li><p> + by Edvard Munch. Painted in 1893.</p></li><li><p> is the standard markup language + for creating web pages.</p></li><li><p>Do not forget to buy</p><p> today.</p></li><li><p>This + is a paragraph and</p><p>.</p></li><li><p>The concert starts at</p><p> and you'll + be able to enjoy the band for at least</p><p>.</p></li><li><p>Press</p><p> +</p><p> + to copy text (Windows).</p></li><li><p>WWF's goal is to:</p><p> We hope they succeed.</p></li><li><p>The + error occurred was:</p></li><li><p>The area of a triangle is: 1/2 x</p><p> x</p><p>, + where</p><p> is the base, and</p><p> is the vertical height.</p></li><li><p></p></li><li><p>C</p><p>H</p><p> + + O</p><p> \t CO</p><p> + H</p><p>O</p></li><li><p>The<strong>Pythagorean theorem</strong> + is often expressed as</p><p> +</p><p> =</p></li></ul>" +08_04_36__gitlab_internal_extension_markdown__migrated_golden_master_examples__image__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:40" dir="auto"><a class="no-attachment-icon" href="https://gitlab.com/logo.png" target="_blank" rel="nofollow noreferrer noopener"><img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="alt text" decoding="async" class="lazy" data-src="https://gitlab.com/logo.png"></a></p> + wysiwyg: |- + <p><img src="https://gitlab.com/logo.png" alt="alt text"></p> +08_04_37__gitlab_internal_extension_markdown__migrated_golden_master_examples__inline_code__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:6" dir="auto"><code>code</code></p> + wysiwyg: |- + <p><code>code</code></p> +08_04_38__gitlab_internal_extension_markdown__migrated_golden_master_examples__inline_diff__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <ul data-sourcepos="1:1-2:11" dir="auto"> + <li data-sourcepos="1:1-1:13"><span class="idiff left right deletion">deleted</span></li> + <li data-sourcepos="2:1-2:11"><span class="idiff left right addition">added</span></li> + </ul> + wysiwyg: |- + <ul bullet="*"><li><p>{-deleted-}</p></li><li><p>{+added+}</p></li></ul> +08_04_39__gitlab_internal_extension_markdown__migrated_golden_master_examples__label__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:4" dir="auto">~bug</p> + wysiwyg: |- + <p>~bug</p> +08_04_40__gitlab_internal_extension_markdown__migrated_golden_master_examples__link__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:28" dir="auto"><a href="https://gitlab.com" rel="nofollow noreferrer noopener" target="_blank">GitLab</a></p> + wysiwyg: |- + <p><a target="_blank" rel="noopener noreferrer nofollow" href="https://gitlab.com">GitLab</a></p> +08_04_41__gitlab_internal_extension_markdown__migrated_golden_master_examples__math__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:36" dir="auto">This math is inline <code class="code math js-render-math" data-math-style="inline">a^2+b^2=c^2</code>.</p> + <p data-sourcepos="3:1-3:27" dir="auto">This is on a separate line:</p> + <div class="gl-relative markdown-code-block js-markdown-code"> + <pre data-sourcepos="5:1-7:3" lang="math" data-math-style="display" class="js-render-math code highlight js-syntax-highlight language-math" v-pre="true"><code><span id="LC1" class="line" lang="math">a^2+b^2=c^2</span></code></pre> + <copy-code></copy-code> + </div> + wysiwyg: |- + <p>This math is inline $<code>a^2+b^2=c^2</code>$.</p> + <p>This is on a separate line:</p> + <pre language="math" class="content-editor-code-block undefined code highlight"><code>a^2+b^2=c^2</code></pre> +08_04_42__gitlab_internal_extension_markdown__migrated_golden_master_examples__ordered_list__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <ol data-sourcepos="1:1-3:14" dir="auto"> + <li data-sourcepos="1:1-1:14">list item 1</li> + <li data-sourcepos="2:1-2:14">list item 2</li> + <li data-sourcepos="3:1-3:14">list item 3</li> + </ol> + wysiwyg: |- + <ol parens="false"><li><p>list item 1</p></li><li><p>list item 2</p></li><li><p>list item 3</p></li></ol> +08_04_43__gitlab_internal_extension_markdown__migrated_golden_master_examples__ordered_list_with_start_order__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <ol start="134" data-sourcepos="1:1-3:16" dir="auto"> + <li data-sourcepos="1:1-1:16">list item 1</li> + <li data-sourcepos="2:1-2:16">list item 2</li> + <li data-sourcepos="3:1-3:16">list item 3</li> + </ol> + wysiwyg: |- + <ol parens="false"><li><p>list item 1</p></li><li><p>list item 2</p></li><li><p>list item 3</p></li></ol> +08_04_44__gitlab_internal_extension_markdown__migrated_golden_master_examples__ordered_task_list__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <ol data-sourcepos="1:1-6:18" class="task-list" dir="auto"> + <li data-sourcepos="1:1-1:12" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" checked disabled> hello</li> + <li data-sourcepos="2:1-2:12" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" checked disabled> world</li> + <li data-sourcepos="3:1-6:18" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" disabled> example + <ol data-sourcepos="4:4-6:18" class="task-list"> + <li data-sourcepos="4:4-6:18" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" disabled> of nested + <ol data-sourcepos="5:7-6:18" class="task-list"> + <li data-sourcepos="5:7-5:22" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" checked disabled> task list</li> + <li data-sourcepos="6:7-6:18" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" disabled> items</li> + </ol> + </li> + </ol> + </li> + </ol> +08_04_45__gitlab_internal_extension_markdown__migrated_golden_master_examples__ordered_task_list_with_order__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <ol start="4893" data-sourcepos="1:1-3:17" class="task-list" dir="auto"> + <li data-sourcepos="1:1-1:15" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" checked disabled> hello</li> + <li data-sourcepos="2:1-2:15" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" checked disabled> world</li> + <li data-sourcepos="3:1-3:17" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" disabled> example</li> + </ol> + wysiwyg: |- + <ol start="1" parens="false" data-type="taskList"><li data-checked="true" data-type="taskItem"><label><input type="checkbox" checked="checked"><span></span></label><div><p>hello</p></div></li><li data-checked="true" data-type="taskItem"><label><input type="checkbox" checked="checked"><span></span></label><div><p>world</p></div></li><li data-checked="false" data-type="taskItem"><label><input type="checkbox"><span></span></label><div><p>example</p></div></li></ol> +08_04_46__gitlab_internal_extension_markdown__migrated_golden_master_examples__reference_for_project_wiki__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:98" dir="auto">Hi @gfm_user - thank you for reporting this ~"UX bug" (#1) we hope to fix it in %1.1 as part of !1</p> + wysiwyg: |- + <p>Hi @gfm_user - thank you for reporting this ~"UX bug" (#1) we hope to fix it in %1.1 as part of !1</p> +08_04_47__gitlab_internal_extension_markdown__migrated_golden_master_examples__strike__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:7" dir="auto"><del>del</del></p> + wysiwyg: |- + <p><s>del</s></p> +08_04_48__gitlab_internal_extension_markdown__migrated_golden_master_examples__table__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <table data-sourcepos="1:1-4:35" dir="auto"> + <thead> + <tr data-sourcepos="1:1-1:19"> + <th data-sourcepos="1:2-1:9">header</th> + <th data-sourcepos="1:11-1:18">header</th> + </tr> + </thead> + <tbody> + <tr data-sourcepos="3:1-3:31"> + <td data-sourcepos="3:2-3:9"><code>code</code></td> + <td data-sourcepos="3:11-3:30">cell with <strong>bold</strong> + </td> + </tr> + <tr data-sourcepos="4:1-4:35"> + <td data-sourcepos="4:2-4:13"><del>strike</del></td> + <td data-sourcepos="4:15-4:34">cell with <em>italic</em> + </td> + </tr> + </tbody> + </table> + <h1 data-sourcepos="6:1-6:21" dir="auto"> + <a id="user-content-content-after-table" class="anchor" href="#content-after-table" aria-hidden="true"></a>content after table</h1> + wysiwyg: |- + <table><tbody><tr><th colspan="1" rowspan="1"><p>header</p></th><th colspan="1" rowspan="1"><p>header</p></th></tr><tr><td colspan="1" rowspan="1"><p><code>code</code></p></td><td colspan="1" rowspan="1"><p>cell with <strong>bold</strong></p></td></tr><tr><td colspan="1" rowspan="1"><p><s>strike</s></p></td><td colspan="1" rowspan="1"><p>cell with <em>italic</em></p></td></tr></tbody></table> + <h1>content after table</h1> +08_04_49__gitlab_internal_extension_markdown__migrated_golden_master_examples__table_of_contents__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <ul class="section-nav"> + <li> + <a href="#lorem">Lorem</a><ul><li> + <a href="#ipsum">Ipsum</a><ul><li><a href="#dolar">Dolar</a></li></ul> + </li></ul> + </li> + <li> + <a href="#sit-amit">Sit amit</a><ul><li><a href="#i-dont-know">I don't know</a></li></ul> + </li> + </ul> + <h1 data-sourcepos="3:1-3:7" dir="auto"> + <a id="user-content-lorem" class="anchor" href="#lorem" aria-hidden="true"></a>Lorem</h1> + <p data-sourcepos="5:1-5:45" dir="auto">Well, that's just like... your opinion.. man.</p> + <h2 data-sourcepos="7:1-7:8" dir="auto"> + <a id="user-content-ipsum" class="anchor" href="#ipsum" aria-hidden="true"></a>Ipsum</h2> + <h3 data-sourcepos="9:1-9:9" dir="auto"> + <a id="user-content-dolar" class="anchor" href="#dolar" aria-hidden="true"></a>Dolar</h3> + <h1 data-sourcepos="11:1-11:10" dir="auto"> + <a id="user-content-sit-amit" class="anchor" href="#sit-amit" aria-hidden="true"></a>Sit amit</h1> + <h3 data-sourcepos="13:1-13:16" dir="auto"> + <a id="user-content-i-dont-know" class="anchor" href="#i-dont-know" aria-hidden="true"></a>I don't know</h3> + wysiwyg: |- + <div class="table-of-contents gl-border-1 gl-border-solid gl-text-center gl-border-gray-100 gl-mb-5">Table of contents</div> + <h1>Lorem</h1> + <p>Well, that's just like... your opinion.. man.</p> + <h2>Ipsum</h2> + <h3>Dolar</h3> + <h1>Sit amit</h1> + <h3>I don't know</h3> +08_04_50__gitlab_internal_extension_markdown__migrated_golden_master_examples__task_list__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <ul data-sourcepos="1:1-6:15" class="task-list" dir="auto"> + <li data-sourcepos="1:1-1:11" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" checked disabled> hello</li> + <li data-sourcepos="2:1-2:11" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" checked disabled> world</li> + <li data-sourcepos="3:1-6:15" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" disabled> example + <ul data-sourcepos="4:3-6:15" class="task-list"> + <li data-sourcepos="4:3-6:15" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" disabled> of nested + <ul data-sourcepos="5:5-6:15" class="task-list"> + <li data-sourcepos="5:5-5:19" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" checked disabled> task list</li> + <li data-sourcepos="6:5-6:15" class="task-list-item"> + <task-button></task-button><input type="checkbox" class="task-list-item-checkbox" disabled> items</li> + </ul> + </li> + </ul> + </li> + </ul> +08_04_51__gitlab_internal_extension_markdown__migrated_golden_master_examples__video__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:46" dir="auto"><span class="media-container video-container"><video src="https://gitlab.com/gitlab.mp4" controls="true" data-setup="{}" data-title="Sample Video" width="400" preload="metadata"></video><a href="https://gitlab.com/gitlab.mp4" target="_blank" rel="nofollow noreferrer noopener" title="Download 'Sample Video'">Sample Video</a></span></p> + wysiwyg: |- + <p><span class="media-container video-container"><video src="https://gitlab.com/gitlab.mp4" controls="true" data-setup="{}" data-title="Sample Video"></video><a href="https://gitlab.com/gitlab.mp4">Sample Video</a></span></p> +08_04_52__gitlab_internal_extension_markdown__migrated_golden_master_examples__word_break__001: + canonical: | + TODO: Write canonical HTML for this example + static: |- + <p data-sourcepos="1:1-1:60" dir="auto">Fernstraßen<wbr>bau<wbr>privat<wbr>finanzierungs<wbr>gesetz</wbr></wbr></wbr></wbr></p> + wysiwyg: |- + <p>Fernstraßenbauprivatfinanzierungsgesetz</p> +08_05_00__gitlab_internal_extension_markdown__image_attributes__001: + canonical: | + <p><img src="https://gitlab.com/logo.png" width="100" height="100"></p> + static: |- + <p data-sourcepos="1:1-1:58" dir="auto"><a class="no-attachment-icon" href="https://gitlab.com/logo.png" target="_blank" rel="nofollow noreferrer noopener"><img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="" width="100" height="100" decoding="async" class="lazy" data-src="https://gitlab.com/logo.png"></a></p> +08_05_00__gitlab_internal_extension_markdown__image_attributes__002: + canonical: | + <p><img src="https://gitlab.com/logo.png" width="100%"></p> + static: |- + <p data-sourcepos="1:1-1:46" dir="auto"><a class="no-attachment-icon" href="https://gitlab.com/logo.png" target="_blank" rel="nofollow noreferrer noopener"><img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="" width="100%" decoding="async" class="lazy" data-src="https://gitlab.com/logo.png"></a></p> +08_05_00__gitlab_internal_extension_markdown__image_attributes__003: + canonical: | + <p><img src="https://gitlab.com/logo.png" height="100px"></p> + static: |- + <p data-sourcepos="1:1-1:48" dir="auto"><a class="no-attachment-icon" href="https://gitlab.com/logo.png" target="_blank" rel="nofollow noreferrer noopener"><img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="" height="100px" decoding="async" class="lazy" data-src="https://gitlab.com/logo.png"></a></p> +08_05_00__gitlab_internal_extension_markdown__image_attributes__004: + canonical: | + <p><img src="https://gitlab.com/logo.png" width="100" height="100"></p> + static: |- + <p data-sourcepos="1:1-1:60" dir="auto"><a class="no-attachment-icon" href="https://gitlab.com/logo.png" target="_blank" rel="nofollow noreferrer noopener"><img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="" width="100" height="100" decoding="async" class="lazy" data-src="https://gitlab.com/logo.png"></a></p> +08_05_00__gitlab_internal_extension_markdown__image_attributes__005: + canonical: | + <p><img src="https://gitlab.com/logo.png"> {width="100" height="100"}</p> + static: |- + <p data-sourcepos="1:1-1:59" dir="auto"><a class="no-attachment-icon" href="https://gitlab.com/logo.png" target="_blank" rel="nofollow noreferrer noopener"><img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="" decoding="async" class="lazy" data-src="https://gitlab.com/logo.png"></a> {width="100" height="100"}</p> diff --git a/glfm_specification/output_example_snapshots/markdown.yml b/glfm_specification/output_example_snapshots/markdown.yml index 867108a6cc5..c5145803088 100644 --- a/glfm_specification/output_example_snapshots/markdown.yml +++ b/glfm_specification/output_example_snapshots/markdown.yml @@ -2273,3 +2273,287 @@ [project-wikis-test-file](project-wikis-test-file) 08_03_00__gitlab_internal_extension_markdown__markdown_preview_api_request_overrides__006: | [group-wikis-test-file](group-wikis-test-file) +08_04_01__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_image_for_group__001: | + ![test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png) +08_04_02__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_image_for_project__001: | + ![test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png) +08_04_03__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_image_for_project_wiki__001: | + ![test-file](test-file.png) +08_04_04__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_group__001: | + [test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip) +08_04_05__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_project__001: | + [test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip) +08_04_06__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_project_wiki__001: | + [test-file](test-file.zip) +08_04_07__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_group_wiki__001: | + [test-file](test-file.zip) +08_04_08__gitlab_internal_extension_markdown__migrated_golden_master_examples__audio__001: | + ![Sample Audio](https://gitlab.com/gitlab.mp3) +08_04_09__gitlab_internal_extension_markdown__migrated_golden_master_examples__audio_and_video_in_lists__001: | + * ![Sample Audio](https://gitlab.com/1.mp3) + * ![Sample Video](https://gitlab.com/2.mp4) + + 1. ![Sample Video](https://gitlab.com/1.mp4) + 2. ![Sample Audio](https://gitlab.com/2.mp3) + + * [x] ![Sample Audio](https://gitlab.com/1.mp3) + * [x] ![Sample Audio](https://gitlab.com/2.mp3) + * [x] ![Sample Video](https://gitlab.com/3.mp4) +08_04_10__gitlab_internal_extension_markdown__migrated_golden_master_examples__blockquote__001: | + > This is a blockquote + > + > This is another one +08_04_11__gitlab_internal_extension_markdown__migrated_golden_master_examples__bold__001: | + **bold** +08_04_12__gitlab_internal_extension_markdown__migrated_golden_master_examples__bullet_list_style_1__001: | + * list item 1 + * list item 2 + * embedded list item 3 +08_04_13__gitlab_internal_extension_markdown__migrated_golden_master_examples__bullet_list_style_2__001: | + - list item 1 + - list item 2 + * embedded list item 3 +08_04_14__gitlab_internal_extension_markdown__migrated_golden_master_examples__bullet_list_style_3__001: | + + list item 1 + + list item 2 + - embedded list item 3 +08_04_15__gitlab_internal_extension_markdown__migrated_golden_master_examples__code_block_javascript__001: | + ```javascript + console.log('hello world') + ``` +08_04_16__gitlab_internal_extension_markdown__migrated_golden_master_examples__code_block_plaintext__001: | + ``` + plaintext + ``` +08_04_17__gitlab_internal_extension_markdown__migrated_golden_master_examples__code_block_unknown__001: | + ```foobar + custom_language = >> this << + ``` +08_04_18__gitlab_internal_extension_markdown__migrated_golden_master_examples__color_chips__001: | + - `#F00` + - `#F00A` + - `#FF0000` + - `#FF0000AA` + - `RGB(0,255,0)` + - `RGB(0%,100%,0%)` + - `RGBA(0,255,0,0.3)` + - `HSL(540,70%,50%)` + - `HSLA(540,70%,50%,0.3)` +08_04_19__gitlab_internal_extension_markdown__migrated_golden_master_examples__description_list__001: | + <dl> + <dt>Frog</dt> + <dd>Wet green thing</dd> + <dt>Rabbit</dt> + <dd>Warm fluffy thing</dd> + <dt>Punt</dt> + <dd>Kick a ball</dd> + <dd>Take a bet</dd> + <dt>Color</dt> + <dt>Colour</dt> + <dd> + + Any hue except _white_ or **black** + + </dd> + </dl> +08_04_20__gitlab_internal_extension_markdown__migrated_golden_master_examples__details__001: | + <details> + <summary>This is the visible summary of the collapsible section</summary> + + 1. collapsed markdown + 2. more collapsed markdown + + </details> +08_04_21__gitlab_internal_extension_markdown__migrated_golden_master_examples__diagram_kroki_nomnoml__001: | + ```nomnoml + #stroke: #a86128 + [<frame>Decorator pattern| + [<abstract>Component||+ operation()] + [Client] depends --> [Component] + [Decorator|- next: Component] + [Decorator] decorates -- [ConcreteComponent] + [Component] <:- [Decorator] + [Component] <:- [ConcreteComponent] + ] + ``` +08_04_22__gitlab_internal_extension_markdown__migrated_golden_master_examples__diagram_plantuml__001: | + ```plantuml + Alice -> Bob: Authentication Request + Bob --> Alice: Authentication Response + + Alice -> Bob: Another authentication Request + Alice <-- Bob: Another authentication Response + ``` +08_04_23__gitlab_internal_extension_markdown__migrated_golden_master_examples__diagram_plantuml_unicode__001: | + ```plantuml + A -> B : Text with norwegian characters: æøå + ``` +08_04_24__gitlab_internal_extension_markdown__migrated_golden_master_examples__div__001: | + <div>plain text</div> + <div> + + just a plain ol' div, not much to _expect_! + + </div> +08_04_25__gitlab_internal_extension_markdown__migrated_golden_master_examples__emoji__001: | + :sparkles: :heart: :100: +08_04_26__gitlab_internal_extension_markdown__migrated_golden_master_examples__emphasis__001: | + _emphasized text_ +08_04_27__gitlab_internal_extension_markdown__migrated_golden_master_examples__figure__001: | + <figure> + + ![Elephant at sunset](elephant-sunset.jpg) + + <figcaption>An elephant at sunset</figcaption> + </figure> + <figure> + + ![A crocodile wearing crocs](croc-crocs.jpg) + + <figcaption> + + A crocodile wearing _crocs_! + + </figcaption> + </figure> +08_04_28__gitlab_internal_extension_markdown__migrated_golden_master_examples__footnotes__001: | + A footnote reference tag looks like this: [^1] + + This reference tag is a mix of letters and numbers. [^footnote] + + [^1]: This is the text inside a footnote. + + [^footnote]: This is another footnote. +08_04_29__gitlab_internal_extension_markdown__migrated_golden_master_examples__frontmatter_json__001: | + ;;; + { + "title": "Page title" + } + ;;; +08_04_30__gitlab_internal_extension_markdown__migrated_golden_master_examples__frontmatter_toml__001: | + +++ + title = "Page title" + +++ +08_04_31__gitlab_internal_extension_markdown__migrated_golden_master_examples__frontmatter_yaml__001: | + --- + title: Page title + --- +08_04_32__gitlab_internal_extension_markdown__migrated_golden_master_examples__hard_break__001: | + This is a line after a\ + hard break +08_04_33__gitlab_internal_extension_markdown__migrated_golden_master_examples__headings__001: | + # Heading 1 + + ## Heading 2 + + ### Heading 3 + + #### Heading 4 + + ##### Heading 5 + + ###### Heading 6 +08_04_34__gitlab_internal_extension_markdown__migrated_golden_master_examples__horizontal_rule__001: | + --- +08_04_35__gitlab_internal_extension_markdown__migrated_golden_master_examples__html_marks__001: "* + Content editor is ~~great~~<ins>amazing</ins>.\n* If the changes <abbr title=\"Looks + good to merge\">LGTM</abbr>, please <abbr title=\"Merge when pipeline succeeds\">MWPS</abbr>.\n* + The English song <q>Oh I do like to be beside the seaside</q> looks like this in + Hebrew: <span dir=\"rtl\">אה, אני אוהב להיות ליד חוף הים</span>. In the computer's + memory, this is stored as <bdo dir=\"ltr\">אה, אני אוהב להיות ליד חוף הים</bdo>.\n* + <cite>The Scream</cite> by Edvard Munch. Painted in 1893.\n* <dfn>HTML</dfn> is + the standard markup language for creating web pages.\n* Do not forget to buy <mark>milk</mark> + today.\n* This is a paragraph and <small>smaller text goes here</small>.\n* The + concert starts at <time datetime=\"20:00\">20:00</time> and you'll be able to enjoy + the band for at least <time datetime=\"PT2H30M\">2h 30m</time>.\n* Press <kbd>Ctrl</kbd> + + <kbd>C</kbd> to copy text (Windows).\n* WWF's goal is to: <q>Build a future where + people live in harmony with nature.</q> We hope they succeed.\n* The error occurred + was: <samp>Keyboard not found. Press F1 to continue.</samp>\n* The area of a triangle + is: 1/2 x <var>b</var> x <var>h</var>, where <var>b</var> is the base, and <var>h</var> + is the vertical height.\n* <ruby>漢<rt>ㄏㄢˋ</rt></ruby>\n* C<sub>7</sub>H<sub>16</sub> + + O<sub>2</sub> \t CO<sub>2</sub> + H<sub>2</sub>O\n* The **Pythagorean theorem** + is often expressed as <var>a<sup>2</sup></var> + <var>b<sup>2</sup></var> = <var>c<sup>2</sup></var>\n" +08_04_36__gitlab_internal_extension_markdown__migrated_golden_master_examples__image__001: | + ![alt text](https://gitlab.com/logo.png) +08_04_37__gitlab_internal_extension_markdown__migrated_golden_master_examples__inline_code__001: | + `code` +08_04_38__gitlab_internal_extension_markdown__migrated_golden_master_examples__inline_diff__001: | + * {-deleted-} + * {+added+} +08_04_39__gitlab_internal_extension_markdown__migrated_golden_master_examples__label__001: | + ~bug +08_04_40__gitlab_internal_extension_markdown__migrated_golden_master_examples__link__001: | + [GitLab](https://gitlab.com) +08_04_41__gitlab_internal_extension_markdown__migrated_golden_master_examples__math__001: | + This math is inline $`a^2+b^2=c^2`$. + + This is on a separate line: + + ```math + a^2+b^2=c^2 + ``` +08_04_42__gitlab_internal_extension_markdown__migrated_golden_master_examples__ordered_list__001: | + 1. list item 1 + 2. list item 2 + 3. list item 3 +08_04_43__gitlab_internal_extension_markdown__migrated_golden_master_examples__ordered_list_with_start_order__001: | + 134. list item 1 + 135. list item 2 + 136. list item 3 +08_04_44__gitlab_internal_extension_markdown__migrated_golden_master_examples__ordered_task_list__001: | + 1. [x] hello + 2. [x] world + 3. [ ] example + 1. [ ] of nested + 1. [x] task list + 2. [ ] items +08_04_45__gitlab_internal_extension_markdown__migrated_golden_master_examples__ordered_task_list_with_order__001: | + 4893. [x] hello + 4894. [x] world + 4895. [ ] example +08_04_46__gitlab_internal_extension_markdown__migrated_golden_master_examples__reference_for_project_wiki__001: | + Hi @gfm_user - thank you for reporting this ~"UX bug" (#1) we hope to fix it in %1.1 as part of !1 +08_04_47__gitlab_internal_extension_markdown__migrated_golden_master_examples__strike__001: | + ~~del~~ +08_04_48__gitlab_internal_extension_markdown__migrated_golden_master_examples__table__001: | + | header | header | + |--------|--------| + | `code` | cell with **bold** | + | ~~strike~~ | cell with _italic_ | + + # content after table +08_04_49__gitlab_internal_extension_markdown__migrated_golden_master_examples__table_of_contents__001: | + [[_TOC_]] + + # Lorem + + Well, that's just like... your opinion.. man. + + ## Ipsum + + ### Dolar + + # Sit amit + + ### I don't know +08_04_50__gitlab_internal_extension_markdown__migrated_golden_master_examples__task_list__001: | + * [x] hello + * [x] world + * [ ] example + * [ ] of nested + * [x] task list + * [ ] items +08_04_51__gitlab_internal_extension_markdown__migrated_golden_master_examples__video__001: | + ![Sample Video](https://gitlab.com/gitlab.mp4) +08_04_52__gitlab_internal_extension_markdown__migrated_golden_master_examples__word_break__001: | + Fernstraßen<wbr>bau<wbr>privat<wbr>finanzierungs<wbr>gesetz +08_05_00__gitlab_internal_extension_markdown__image_attributes__001: | + ![](https://gitlab.com/logo.png){width="100" height="100"} +08_05_00__gitlab_internal_extension_markdown__image_attributes__002: | + ![](https://gitlab.com/logo.png){width="100%"} +08_05_00__gitlab_internal_extension_markdown__image_attributes__003: | + ![](https://gitlab.com/logo.png){height="100px"} +08_05_00__gitlab_internal_extension_markdown__image_attributes__004: | + ![](https://gitlab.com/logo.png){ width="100" height="100" } +08_05_00__gitlab_internal_extension_markdown__image_attributes__005: | + ![](https://gitlab.com/logo.png) {width="100" height="100"} diff --git a/glfm_specification/output_example_snapshots/prosemirror_json.yml b/glfm_specification/output_example_snapshots/prosemirror_json.yml index de54518a574..f6110185348 100644 --- a/glfm_specification/output_example_snapshots/prosemirror_json.yml +++ b/glfm_specification/output_example_snapshots/prosemirror_json.yml @@ -7,7 +7,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -26,7 +27,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -45,7 +47,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -119,7 +122,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -148,7 +152,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -181,7 +186,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -204,7 +210,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -439,7 +446,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -993,7 +1001,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -1441,7 +1450,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -1706,6 +1716,7 @@ "attrs": { "language": "yaml", "class": "code highlight", + "langParams": null, "isFrontmatter": true }, "content": [ @@ -1762,6 +1773,7 @@ "attrs": { "language": "yaml", "class": "code highlight", + "langParams": null, "isFrontmatter": true } } @@ -1806,7 +1818,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -1977,7 +1990,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2084,7 +2098,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2103,7 +2118,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2122,7 +2138,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2156,7 +2173,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2196,7 +2214,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2221,7 +2240,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2243,7 +2263,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2262,7 +2283,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2281,7 +2303,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2300,7 +2323,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2319,7 +2343,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2358,7 +2383,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2377,7 +2403,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2396,7 +2423,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2415,7 +2443,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2434,7 +2463,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null } } ] @@ -2447,7 +2477,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2472,7 +2503,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2502,7 +2534,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null } } ] @@ -2515,7 +2548,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null } } ] @@ -2528,7 +2562,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2547,7 +2582,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2566,7 +2602,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2585,7 +2622,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2604,7 +2642,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2623,7 +2662,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2642,7 +2682,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2676,7 +2717,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2704,7 +2746,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2744,7 +2787,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2775,7 +2819,8 @@ "type": "codeBlock", "attrs": { "language": "ruby", - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2794,7 +2839,8 @@ "type": "codeBlock", "attrs": { "language": "ruby", - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2813,7 +2859,8 @@ "type": "codeBlock", "attrs": { "language": ";", - "class": "code highlight" + "class": "code highlight", + "langParams": null } } ] @@ -2850,7 +2897,8 @@ "type": "codeBlock", "attrs": { "language": "aa", - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -2869,7 +2917,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -3641,7 +3690,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -3663,7 +3713,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -3861,7 +3912,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -4583,7 +4635,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -4611,7 +4664,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -5124,7 +5178,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -6090,7 +6145,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -6257,7 +6313,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -6272,7 +6329,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -6297,7 +6355,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null } } ] @@ -6315,7 +6374,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null } } ] @@ -6749,7 +6809,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -6796,7 +6857,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -6851,7 +6913,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -6987,7 +7050,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -7230,7 +7294,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -7297,7 +7362,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -7455,7 +7521,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -7497,7 +7564,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -7520,7 +7588,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -7542,7 +7611,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -7574,7 +7644,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -7596,7 +7667,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -7632,7 +7704,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -7654,7 +7727,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -7801,7 +7875,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -7822,7 +7897,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -8120,7 +8196,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -8179,7 +8256,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -8238,7 +8316,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -8278,7 +8357,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -8316,7 +8396,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -9410,7 +9491,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -9705,7 +9787,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -9991,7 +10074,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -10195,7 +10279,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -10323,7 +10408,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -10663,7 +10749,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -10682,7 +10769,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -10808,7 +10896,8 @@ "type": "codeBlock", "attrs": { "language": "foo+bar", - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -10996,7 +11085,8 @@ "type": "codeBlock", "attrs": { "language": "föö", - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -11035,7 +11125,8 @@ "type": "codeBlock", "attrs": { "language": null, - "class": "code highlight" + "class": "code highlight", + "langParams": null }, "content": [ { @@ -14577,6 +14668,8 @@ "title": "*", "uploading": false, "canonicalSrc": "foo", + "width": null, + "height": null, "isReference": false } } @@ -15723,6 +15816,8 @@ "title": null, "uploading": false, "canonicalSrc": "moon.jpg", + "width": null, + "height": null, "isReference": false }, "marks": [ @@ -15851,6 +15946,8 @@ "title": null, "uploading": false, "canonicalSrc": "uri3", + "width": null, + "height": null, "isReference": false } } @@ -16265,6 +16362,8 @@ "title": null, "uploading": false, "canonicalSrc": "moon.jpg", + "width": null, + "height": null, "isReference": false }, "marks": [ @@ -18112,6 +18211,8 @@ "title": "title", "uploading": false, "canonicalSrc": "/url", + "width": null, + "height": null, "isReference": false } } @@ -18134,6 +18235,8 @@ "title": "train & tracks", "uploading": false, "canonicalSrc": "foo *bar*", + "width": null, + "height": null, "isReference": true } } @@ -18170,6 +18273,8 @@ "title": null, "uploading": false, "canonicalSrc": "/url2", + "width": null, + "height": null, "isReference": false } } @@ -18192,6 +18297,8 @@ "title": null, "uploading": false, "canonicalSrc": "/url2", + "width": null, + "height": null, "isReference": false } } @@ -18214,6 +18321,8 @@ "title": "train & tracks", "uploading": false, "canonicalSrc": "foo *bar*", + "width": null, + "height": null, "isReference": true } } @@ -18250,6 +18359,8 @@ "title": "train & tracks", "uploading": false, "canonicalSrc": "foobar", + "width": null, + "height": null, "isReference": true } } @@ -18286,6 +18397,8 @@ "title": null, "uploading": false, "canonicalSrc": "train.jpg", + "width": null, + "height": null, "isReference": false } } @@ -18312,6 +18425,8 @@ "title": "title", "uploading": false, "canonicalSrc": "/path/to/train.jpg", + "width": null, + "height": null, "isReference": false } } @@ -18334,6 +18449,8 @@ "title": null, "uploading": false, "canonicalSrc": "url", + "width": null, + "height": null, "isReference": false } } @@ -18356,6 +18473,8 @@ "title": null, "uploading": false, "canonicalSrc": "/url", + "width": null, + "height": null, "isReference": false } } @@ -18378,6 +18497,8 @@ "title": null, "uploading": false, "canonicalSrc": "bar", + "width": null, + "height": null, "isReference": true } } @@ -18414,6 +18535,8 @@ "title": null, "uploading": false, "canonicalSrc": "bar", + "width": null, + "height": null, "isReference": true } } @@ -18450,6 +18573,8 @@ "title": "title", "uploading": false, "canonicalSrc": "foo", + "width": null, + "height": null, "isReference": true } } @@ -18486,6 +18611,8 @@ "title": "title", "uploading": false, "canonicalSrc": "*foo* bar", + "width": null, + "height": null, "isReference": true } } @@ -18522,6 +18649,8 @@ "title": "title", "uploading": false, "canonicalSrc": "foo", + "width": null, + "height": null, "isReference": true } } @@ -18558,6 +18687,8 @@ "title": "title", "uploading": false, "canonicalSrc": "foo", + "width": null, + "height": null, "isReference": true } }, @@ -18598,6 +18729,8 @@ "title": "title", "uploading": false, "canonicalSrc": "foo", + "width": null, + "height": null, "isReference": true } } @@ -18634,6 +18767,8 @@ "title": "title", "uploading": false, "canonicalSrc": "*foo* bar", + "width": null, + "height": null, "isReference": true } } @@ -18694,6 +18829,8 @@ "title": "title", "uploading": false, "canonicalSrc": "foo", + "width": null, + "height": null, "isReference": true } } @@ -20676,6 +20813,7 @@ "attrs": { "language": "yaml", "class": "code highlight", + "langParams": null, "isFrontmatter": true }, "content": [ @@ -20696,6 +20834,7 @@ "attrs": { "language": "toml", "class": "code highlight", + "langParams": null, "isFrontmatter": true }, "content": [ @@ -20716,6 +20855,7 @@ "attrs": { "language": "json", "class": "code highlight", + "langParams": null, "isFrontmatter": true }, "content": [ @@ -21010,3 +21150,2434 @@ } ] } +08_04_01__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_image_for_group__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "image", + "attrs": { + "src": "/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png", + "alt": "test-file", + "title": null, + "uploading": false, + "canonicalSrc": "/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png", + "width": null, + "height": null, + "isReference": false + } + } + ] + } + ] + } +08_04_02__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_image_for_project__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "image", + "attrs": { + "src": "/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png", + "alt": "test-file", + "title": null, + "uploading": false, + "canonicalSrc": "/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png", + "width": null, + "height": null, + "isReference": false + } + } + ] + } + ] + } +08_04_03__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_image_for_project_wiki__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "image", + "attrs": { + "src": "test-file.png", + "alt": "test-file", + "title": null, + "uploading": false, + "canonicalSrc": "test-file.png", + "width": null, + "height": null, + "isReference": false + } + } + ] + } + ] + } +08_04_04__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_group__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "link", + "attrs": { + "href": "/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip", + "target": "_blank", + "class": null, + "title": null, + "canonicalSrc": "/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip", + "isReference": false + } + } + ], + "text": "test-file" + } + ] + } + ] + } +08_04_05__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_project__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "link", + "attrs": { + "href": "/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip", + "target": "_blank", + "class": null, + "title": null, + "canonicalSrc": "/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip", + "isReference": false + } + } + ], + "text": "test-file" + } + ] + } + ] + } +08_04_06__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_project_wiki__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "link", + "attrs": { + "href": "test-file.zip", + "target": "_blank", + "class": null, + "title": null, + "canonicalSrc": "test-file.zip", + "isReference": false + } + } + ], + "text": "test-file" + } + ] + } + ] + } +08_04_07__gitlab_internal_extension_markdown__migrated_golden_master_examples__attachment_link_for_group_wiki__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "link", + "attrs": { + "href": "test-file.zip", + "target": "_blank", + "class": null, + "title": null, + "canonicalSrc": "test-file.zip", + "isReference": false + } + } + ], + "text": "test-file" + } + ] + } + ] + } +08_04_08__gitlab_internal_extension_markdown__migrated_golden_master_examples__audio__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "audio", + "attrs": { + "uploading": false, + "src": "https://gitlab.com/gitlab.mp3", + "canonicalSrc": "https://gitlab.com/gitlab.mp3", + "alt": "Sample Audio" + } + } + ] + } + ] + } +08_04_09__gitlab_internal_extension_markdown__migrated_golden_master_examples__audio_and_video_in_lists__001: |- + { + "type": "doc", + "content": [ + { + "type": "bulletList", + "attrs": { + "bullet": "*" + }, + "content": [ + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "audio", + "attrs": { + "uploading": false, + "src": "https://gitlab.com/1.mp3", + "canonicalSrc": "https://gitlab.com/1.mp3", + "alt": "Sample Audio" + } + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "video", + "attrs": { + "uploading": false, + "src": "https://gitlab.com/2.mp4", + "canonicalSrc": "https://gitlab.com/2.mp4", + "alt": "Sample Video" + } + } + ] + } + ] + } + ] + }, + { + "type": "orderedList", + "attrs": { + "start": 1, + "parens": false + }, + "content": [ + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "video", + "attrs": { + "uploading": false, + "src": "https://gitlab.com/1.mp4", + "canonicalSrc": "https://gitlab.com/1.mp4", + "alt": "Sample Video" + } + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "audio", + "attrs": { + "uploading": false, + "src": "https://gitlab.com/2.mp3", + "canonicalSrc": "https://gitlab.com/2.mp3", + "alt": "Sample Audio" + } + } + ] + } + ] + } + ] + }, + { + "type": "taskList", + "attrs": { + "numeric": false, + "start": 1, + "parens": false + }, + "content": [ + { + "type": "taskItem", + "attrs": { + "checked": true + }, + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "audio", + "attrs": { + "uploading": false, + "src": "https://gitlab.com/1.mp3", + "canonicalSrc": "https://gitlab.com/1.mp3", + "alt": "Sample Audio" + } + } + ] + } + ] + }, + { + "type": "taskItem", + "attrs": { + "checked": true + }, + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "audio", + "attrs": { + "uploading": false, + "src": "https://gitlab.com/2.mp3", + "canonicalSrc": "https://gitlab.com/2.mp3", + "alt": "Sample Audio" + } + } + ] + } + ] + }, + { + "type": "taskItem", + "attrs": { + "checked": true + }, + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "video", + "attrs": { + "uploading": false, + "src": "https://gitlab.com/3.mp4", + "canonicalSrc": "https://gitlab.com/3.mp4", + "alt": "Sample Video" + } + } + ] + } + ] + } + ] + } + ] + } +08_04_10__gitlab_internal_extension_markdown__migrated_golden_master_examples__blockquote__001: |- + { + "type": "doc", + "content": [ + { + "type": "blockquote", + "attrs": { + "multiline": false + }, + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "This is a blockquote" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "This is another one" + } + ] + } + ] + } + ] + } +08_04_11__gitlab_internal_extension_markdown__migrated_golden_master_examples__bold__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "bold" + } + ], + "text": "bold" + } + ] + } + ] + } +08_04_12__gitlab_internal_extension_markdown__migrated_golden_master_examples__bullet_list_style_1__001: |- + { + "type": "doc", + "content": [ + { + "type": "bulletList", + "attrs": { + "bullet": "*" + }, + "content": [ + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "list item 1" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "list item 2" + } + ] + }, + { + "type": "bulletList", + "attrs": { + "bullet": "*" + }, + "content": [ + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "embedded list item 3" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } +08_04_13__gitlab_internal_extension_markdown__migrated_golden_master_examples__bullet_list_style_2__001: |- + { + "type": "doc", + "content": [ + { + "type": "bulletList", + "attrs": { + "bullet": "*" + }, + "content": [ + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "list item 1" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "list item 2" + } + ] + }, + { + "type": "bulletList", + "attrs": { + "bullet": "*" + }, + "content": [ + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "embedded list item 3" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } +08_04_14__gitlab_internal_extension_markdown__migrated_golden_master_examples__bullet_list_style_3__001: |- + { + "type": "doc", + "content": [ + { + "type": "bulletList", + "attrs": { + "bullet": "*" + }, + "content": [ + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "list item 1" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "list item 2" + } + ] + }, + { + "type": "bulletList", + "attrs": { + "bullet": "*" + }, + "content": [ + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "embedded list item 3" + } + ] + } + ] + } + ] + } + ] + } + ] + } + ] + } +08_04_15__gitlab_internal_extension_markdown__migrated_golden_master_examples__code_block_javascript__001: |- + { + "type": "doc", + "content": [ + { + "type": "codeBlock", + "attrs": { + "language": "javascript", + "class": "code highlight", + "langParams": null + }, + "content": [ + { + "type": "text", + "text": " console.log('hello world')" + } + ] + } + ] + } +08_04_16__gitlab_internal_extension_markdown__migrated_golden_master_examples__code_block_plaintext__001: |- + { + "type": "doc", + "content": [ + { + "type": "codeBlock", + "attrs": { + "language": null, + "class": "code highlight", + "langParams": null + }, + "content": [ + { + "type": "text", + "text": " plaintext" + } + ] + } + ] + } +08_04_17__gitlab_internal_extension_markdown__migrated_golden_master_examples__code_block_unknown__001: |- + { + "type": "doc", + "content": [ + { + "type": "codeBlock", + "attrs": { + "language": "foobar", + "class": "code highlight", + "langParams": null + }, + "content": [ + { + "type": "text", + "text": " custom_language = >> this <<" + } + ] + } + ] + } +08_04_18__gitlab_internal_extension_markdown__migrated_golden_master_examples__color_chips__001: |- + { + "type": "doc", + "content": [ + { + "type": "bulletList", + "attrs": { + "bullet": "*" + }, + "content": [ + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "code" + } + ], + "text": "#F00" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "code" + } + ], + "text": "#F00A" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "code" + } + ], + "text": "#FF0000" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "code" + } + ], + "text": "#FF0000AA" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "code" + } + ], + "text": "RGB(0,255,0)" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "code" + } + ], + "text": "RGB(0%,100%,0%)" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "code" + } + ], + "text": "RGBA(0,255,0,0.3)" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "code" + } + ], + "text": "HSL(540,70%,50%)" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "code" + } + ], + "text": "HSLA(540,70%,50%,0.3)" + } + ] + } + ] + } + ] + } + ] + } +08_04_19__gitlab_internal_extension_markdown__migrated_golden_master_examples__description_list__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph" + } + ] + } +08_04_20__gitlab_internal_extension_markdown__migrated_golden_master_examples__details__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph" + } + ] + } +08_04_21__gitlab_internal_extension_markdown__migrated_golden_master_examples__diagram_kroki_nomnoml__001: |- + { + "type": "doc", + "content": [ + { + "type": "codeBlock", + "attrs": { + "language": "nomnoml", + "class": "code highlight", + "langParams": null + }, + "content": [ + { + "type": "text", + "text": " #stroke: #a86128\n [<frame>Decorator pattern|\n [<abstract>Component||+ operation()]\n [Client] depends --> [Component]\n [Decorator|- next: Component]\n [Decorator] decorates -- [ConcreteComponent]\n [Component] <:- [Decorator]\n [Component] <:- [ConcreteComponent]\n ]" + } + ] + } + ] + } +08_04_22__gitlab_internal_extension_markdown__migrated_golden_master_examples__diagram_plantuml__001: |- + { + "type": "doc", + "content": [ + { + "type": "diagram", + "attrs": { + "language": "plantuml", + "isDiagram": true, + "showPreview": true + }, + "content": [ + { + "type": "text", + "text": " Alice -> Bob: Authentication Request\n Bob --> Alice: Authentication Response\n\n Alice -> Bob: Another authentication Request\n Alice <-- Bob: Another authentication Response" + } + ] + } + ] + } +08_04_23__gitlab_internal_extension_markdown__migrated_golden_master_examples__diagram_plantuml_unicode__001: |- + { + "type": "doc", + "content": [ + { + "type": "diagram", + "attrs": { + "language": "plantuml", + "isDiagram": true, + "showPreview": true + }, + "content": [ + { + "type": "text", + "text": "A -> B : Text with norwegian characters: æøå" + } + ] + } + ] + } +08_04_24__gitlab_internal_extension_markdown__migrated_golden_master_examples__div__001: |- + { + "type": "doc", + "content": [ + { + "type": "div", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "plain text" + } + ] + } + ] + }, + { + "type": "div", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "just a plain ol' div, not much to " + }, + { + "type": "text", + "marks": [ + { + "type": "italic" + } + ], + "text": "expect" + }, + { + "type": "text", + "text": "!" + } + ] + } + ] + } + ] + } +08_04_25__gitlab_internal_extension_markdown__migrated_golden_master_examples__emoji__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": ":sparkles: :heart: :100:" + } + ] + } + ] + } +08_04_26__gitlab_internal_extension_markdown__migrated_golden_master_examples__emphasis__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "italic" + } + ], + "text": "emphasized text" + } + ] + } + ] + } +08_04_27__gitlab_internal_extension_markdown__migrated_golden_master_examples__figure__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph" + } + ] + } +08_04_28__gitlab_internal_extension_markdown__migrated_golden_master_examples__footnotes__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "A footnote reference tag looks like this: " + }, + { + "type": "footnoteReference", + "attrs": { + "identifier": "1", + "label": "1" + } + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "This reference tag is a mix of letters and numbers. " + }, + { + "type": "footnoteReference", + "attrs": { + "identifier": "footnote", + "label": "footnote" + } + } + ] + }, + { + "type": "footnoteDefinition", + "attrs": { + "identifier": "1", + "label": "1" + }, + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "This is the text inside a footnote." + } + ] + } + ] + }, + { + "type": "footnoteDefinition", + "attrs": { + "identifier": "footnote", + "label": "footnote" + }, + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "This is another footnote." + } + ] + } + ] + } + ] + } +08_04_29__gitlab_internal_extension_markdown__migrated_golden_master_examples__frontmatter_json__001: |- + { + "type": "doc", + "content": [ + { + "type": "frontmatter", + "attrs": { + "language": "json", + "class": "code highlight", + "langParams": null, + "isFrontmatter": true + }, + "content": [ + { + "type": "text", + "text": "{\n \"title\": \"Page title\"\n}" + } + ] + } + ] + } +08_04_30__gitlab_internal_extension_markdown__migrated_golden_master_examples__frontmatter_toml__001: |- + { + "type": "doc", + "content": [ + { + "type": "frontmatter", + "attrs": { + "language": "toml", + "class": "code highlight", + "langParams": null, + "isFrontmatter": true + }, + "content": [ + { + "type": "text", + "text": "title = \"Page title\"" + } + ] + } + ] + } +08_04_31__gitlab_internal_extension_markdown__migrated_golden_master_examples__frontmatter_yaml__001: |- + { + "type": "doc", + "content": [ + { + "type": "frontmatter", + "attrs": { + "language": "yaml", + "class": "code highlight", + "langParams": null, + "isFrontmatter": true + }, + "content": [ + { + "type": "text", + "text": "title: Page title" + } + ] + } + ] + } +08_04_32__gitlab_internal_extension_markdown__migrated_golden_master_examples__hard_break__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "This is a line after a" + }, + { + "type": "hardBreak" + }, + { + "type": "text", + "text": "\nhard break" + } + ] + } + ] + } +08_04_33__gitlab_internal_extension_markdown__migrated_golden_master_examples__headings__001: |- + { + "type": "doc", + "content": [ + { + "type": "heading", + "attrs": { + "level": 1 + }, + "content": [ + { + "type": "text", + "text": "Heading 1" + } + ] + }, + { + "type": "heading", + "attrs": { + "level": 2 + }, + "content": [ + { + "type": "text", + "text": "Heading 2" + } + ] + }, + { + "type": "heading", + "attrs": { + "level": 3 + }, + "content": [ + { + "type": "text", + "text": "Heading 3" + } + ] + }, + { + "type": "heading", + "attrs": { + "level": 4 + }, + "content": [ + { + "type": "text", + "text": "Heading 4" + } + ] + }, + { + "type": "heading", + "attrs": { + "level": 5 + }, + "content": [ + { + "type": "text", + "text": "Heading 5" + } + ] + }, + { + "type": "heading", + "attrs": { + "level": 6 + }, + "content": [ + { + "type": "text", + "text": "Heading 6" + } + ] + } + ] + } +08_04_34__gitlab_internal_extension_markdown__migrated_golden_master_examples__horizontal_rule__001: |- + { + "type": "doc", + "content": [ + { + "type": "horizontalRule" + } + ] + } +08_04_35__gitlab_internal_extension_markdown__migrated_golden_master_examples__html_marks__001: |- + { + "type": "doc", + "content": [ + { + "type": "bulletList", + "attrs": { + "bullet": "*" + }, + "content": [ + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "Content editor is" + }, + { + "type": "text", + "marks": [ + { + "type": "strike" + } + ], + "text": "great" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "." + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "If the changes" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": ", please" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "." + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "The English song" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": " looks like this in Hebrew:" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": ". In the computer's memory, this is stored as" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "." + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": " by Edvard Munch. Painted in 1893." + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": " is the standard markup language for creating web pages." + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "Do not forget to buy" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": " today." + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "This is a paragraph and" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "." + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "The concert starts at" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": " and you'll be able to enjoy the band for at least" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "." + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "Press" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": " +" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": " to copy text (Windows)." + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "WWF's goal is to:" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": " We hope they succeed." + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "The error occurred was:" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "The area of a triangle is: 1/2 x" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": " x" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": ", where" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": " is the base, and" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": " is the vertical height." + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph" + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "C" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "H" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": " + O" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": " \t CO" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": " + H" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "O" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "The" + }, + { + "type": "text", + "marks": [ + { + "type": "bold" + } + ], + "text": "Pythagorean theorem" + }, + { + "type": "text", + "text": " is often expressed as" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": " +" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": " =" + } + ] + } + ] + } + ] + } + ] + } +08_04_36__gitlab_internal_extension_markdown__migrated_golden_master_examples__image__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "image", + "attrs": { + "src": "https://gitlab.com/logo.png", + "alt": "alt text", + "title": null, + "uploading": false, + "canonicalSrc": "https://gitlab.com/logo.png", + "width": null, + "height": null, + "isReference": false + } + } + ] + } + ] + } +08_04_37__gitlab_internal_extension_markdown__migrated_golden_master_examples__inline_code__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "code" + } + ], + "text": "code" + } + ] + } + ] + } +08_04_38__gitlab_internal_extension_markdown__migrated_golden_master_examples__inline_diff__001: |- + { + "type": "doc", + "content": [ + { + "type": "bulletList", + "attrs": { + "bullet": "*" + }, + "content": [ + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "{-deleted-}" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "{+added+}" + } + ] + } + ] + } + ] + } + ] + } +08_04_39__gitlab_internal_extension_markdown__migrated_golden_master_examples__label__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "~bug" + } + ] + } + ] + } +08_04_40__gitlab_internal_extension_markdown__migrated_golden_master_examples__link__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "link", + "attrs": { + "href": "https://gitlab.com", + "target": "_blank", + "class": null, + "title": null, + "canonicalSrc": "https://gitlab.com", + "isReference": false + } + } + ], + "text": "GitLab" + } + ] + } + ] + } +08_04_41__gitlab_internal_extension_markdown__migrated_golden_master_examples__math__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "This math is inline $" + }, + { + "type": "text", + "marks": [ + { + "type": "code" + } + ], + "text": "a^2+b^2=c^2" + }, + { + "type": "text", + "text": "$." + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "This is on a separate line:" + } + ] + }, + { + "type": "codeBlock", + "attrs": { + "language": "math", + "class": "code highlight", + "langParams": null + }, + "content": [ + { + "type": "text", + "text": "a^2+b^2=c^2" + } + ] + } + ] + } +08_04_42__gitlab_internal_extension_markdown__migrated_golden_master_examples__ordered_list__001: |- + { + "type": "doc", + "content": [ + { + "type": "orderedList", + "attrs": { + "start": 1, + "parens": false + }, + "content": [ + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "list item 1" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "list item 2" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "list item 3" + } + ] + } + ] + } + ] + } + ] + } +08_04_43__gitlab_internal_extension_markdown__migrated_golden_master_examples__ordered_list_with_start_order__001: |- + { + "type": "doc", + "content": [ + { + "type": "orderedList", + "attrs": { + "start": 1, + "parens": false + }, + "content": [ + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "list item 1" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "list item 2" + } + ] + } + ] + }, + { + "type": "listItem", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "list item 3" + } + ] + } + ] + } + ] + } + ] + } +08_04_45__gitlab_internal_extension_markdown__migrated_golden_master_examples__ordered_task_list_with_order__001: |- + { + "type": "doc", + "content": [ + { + "type": "taskList", + "attrs": { + "numeric": true, + "start": 1, + "parens": false + }, + "content": [ + { + "type": "taskItem", + "attrs": { + "checked": true + }, + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "hello" + } + ] + } + ] + }, + { + "type": "taskItem", + "attrs": { + "checked": true + }, + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "world" + } + ] + } + ] + }, + { + "type": "taskItem", + "attrs": { + "checked": false + }, + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "example" + } + ] + } + ] + } + ] + } + ] + } +08_04_46__gitlab_internal_extension_markdown__migrated_golden_master_examples__reference_for_project_wiki__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "Hi @gfm_user - thank you for reporting this ~\"UX bug\" (#1) we hope to fix it in %1.1 as part of !1" + } + ] + } + ] + } +08_04_47__gitlab_internal_extension_markdown__migrated_golden_master_examples__strike__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "strike" + } + ], + "text": "del" + } + ] + } + ] + } +08_04_48__gitlab_internal_extension_markdown__migrated_golden_master_examples__table__001: |- + { + "type": "doc", + "content": [ + { + "type": "table", + "attrs": { + "isMarkdown": null + }, + "content": [ + { + "type": "tableRow", + "content": [ + { + "type": "tableHeader", + "attrs": { + "colspan": 1, + "rowspan": 1, + "colwidth": null + }, + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "header" + } + ] + } + ] + }, + { + "type": "tableHeader", + "attrs": { + "colspan": 1, + "rowspan": 1, + "colwidth": null + }, + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "header" + } + ] + } + ] + } + ] + }, + { + "type": "tableRow", + "content": [ + { + "type": "tableCell", + "attrs": { + "colspan": 1, + "rowspan": 1, + "colwidth": null + }, + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "code" + } + ], + "text": "code" + } + ] + } + ] + }, + { + "type": "tableCell", + "attrs": { + "colspan": 1, + "rowspan": 1, + "colwidth": null + }, + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "cell with " + }, + { + "type": "text", + "marks": [ + { + "type": "bold" + } + ], + "text": "bold" + } + ] + } + ] + } + ] + }, + { + "type": "tableRow", + "content": [ + { + "type": "tableCell", + "attrs": { + "colspan": 1, + "rowspan": 1, + "colwidth": null + }, + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "marks": [ + { + "type": "strike" + } + ], + "text": "strike" + } + ] + } + ] + }, + { + "type": "tableCell", + "attrs": { + "colspan": 1, + "rowspan": 1, + "colwidth": null + }, + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "cell with " + }, + { + "type": "text", + "marks": [ + { + "type": "italic" + } + ], + "text": "italic" + } + ] + } + ] + } + ] + } + ] + }, + { + "type": "heading", + "attrs": { + "level": 1 + }, + "content": [ + { + "type": "text", + "text": "content after table" + } + ] + } + ] + } +08_04_49__gitlab_internal_extension_markdown__migrated_golden_master_examples__table_of_contents__001: |- + { + "type": "doc", + "content": [ + { + "type": "tableOfContents" + }, + { + "type": "heading", + "attrs": { + "level": 1 + }, + "content": [ + { + "type": "text", + "text": "Lorem" + } + ] + }, + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "Well, that's just like... your opinion.. man." + } + ] + }, + { + "type": "heading", + "attrs": { + "level": 2 + }, + "content": [ + { + "type": "text", + "text": "Ipsum" + } + ] + }, + { + "type": "heading", + "attrs": { + "level": 3 + }, + "content": [ + { + "type": "text", + "text": "Dolar" + } + ] + }, + { + "type": "heading", + "attrs": { + "level": 1 + }, + "content": [ + { + "type": "text", + "text": "Sit amit" + } + ] + }, + { + "type": "heading", + "attrs": { + "level": 3 + }, + "content": [ + { + "type": "text", + "text": "I don't know" + } + ] + } + ] + } +08_04_51__gitlab_internal_extension_markdown__migrated_golden_master_examples__video__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "video", + "attrs": { + "uploading": false, + "src": "https://gitlab.com/gitlab.mp4", + "canonicalSrc": "https://gitlab.com/gitlab.mp4", + "alt": "Sample Video" + } + } + ] + } + ] + } +08_04_52__gitlab_internal_extension_markdown__migrated_golden_master_examples__word_break__001: |- + { + "type": "doc", + "content": [ + { + "type": "paragraph", + "content": [ + { + "type": "text", + "text": "Fernstraßenbauprivatfinanzierungsgesetz" + } + ] + } + ] + } diff --git a/glfm_specification/output_example_snapshots/snapshot_spec.html b/glfm_specification/output_example_snapshots/snapshot_spec.html index 20cfc4cf84f..080712d1b4e 100644 --- a/glfm_specification/output_example_snapshots/snapshot_spec.html +++ b/glfm_specification/output_example_snapshots/snapshot_spec.html @@ -1,103 +1,478 @@ -<div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1:1-4:3" lang="yaml" class="code highlight js-syntax-highlight language-yaml" data-lang-params="frontmatter" v-pre="true"><code><span id="LC1" class="line" lang="yaml"><span class="na">title</span><span class="pi">:</span> <span class="s">GitLab Flavored Markdown (GLFM) Spec</span></span> -<span id="LC2" class="line" lang="yaml"><span class="na">version</span><span class="pi">:</span> <span class="s">alpha</span></span></code></pre> -<copy-code></copy-code> -</div> -<h1 data-sourcepos="5:1-5:15" dir="auto"> +<!DOCTYPE html> +<!-- NOTE: Styling is based on the CommonMark specification template: --> +<!-- - https://github.com/commonmark/commonmark-spec/blob/master/tools/make_spec.lua --> +<!-- - https://github.com/commonmark/commonmark-spec/blob/master/tools/template.html --> +<!-- --> +<!-- NOTE: 'TODO:' comments will be followed up as task(s) on this issue: --> +<!-- - https://gitlab.com/gitlab-org/gitlab/-/issues/361241 --> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>GitLab Flavored Markdown Internal Extensions</title> + <style type="text/css"> + body { + font-family: Helvetica, arial, freesans, clean, sans-serif; + line-height: 1.4; + max-width: 48em; + margin: auto; + padding: 0 0.5em 4em; + color: #333333; + background-color: #ffffff; + font-size: 13pt; + } + + div#TOC ul { list-style: none; } + h1 { + font-size: 140%; + font-weight: bold; + border-top: 1px solid gray; + padding-top: 0.5em; + } + + h2 { + font-size: 120%; + font-weight: bold; + } + + h3 { + font-size: 110%; + font-weight: bold; + } + + h4 { + font-size: 100%; + font-weight: bold; + } + + /* NOTE: "font-weight: bold" was applied to "a.definition" class in original CommonMark */ + /* template, but in practice it was applied to all anchors */ + a { + font-weight: bold; + } + + + /* TODO: Format whitespace in examples. This will require preprocessing to insert spans around them. */ + /*span.space { position: relative; }*/ + /*span.space:after {*/ + /* content: "·";*/ + /* position: absolute;*/ + /* !* create a mark that indicates a space (trick from D. Greenspan) *!*/ + /* top: 0; bottom: 7px; left: 1px; right: 1px;*/ + /* color: #aaaaaa;*/ + /*}*/ + /*@media print {*/ + /* a.dingus { display: none; }*/ + /*}*/ + + div.example { + overflow: hidden; + } + + p { + text-align: justify; + } + + pre { + padding: 0.5em; + margin: 0.2em 0 0.5em; + font-size: 88%; + } + + pre { + white-space: pre-wrap; /* css-3 */ + white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ + white-space: -o-pre-wrap; /* Opera 7 */ + word-wrap: break-word; /* Internet Explorer 5.5+ */ + } + + code { + font-family: monospace; + background-color: #d3e1e4; + } + + pre > code { + background-color: transparent; + } + + .example { + font-size: 0; /* hack to get width: 50% to work on inline-block */ + padding-bottom: 6pt; + } + + .column pre { + font-size: 11pt; + padding: 2pt 6pt; + } + + div.examplenum { + font-size: 11pt; + text-align: left; + margin-bottom: 10px; + } + + div.column { + display: inline-block; + width: 50%; + vertical-align: top; + } + + div.example > div:nth-child(2) { + clear: left; + background-color: #d3e1e4; + } + + div.example > div:nth-child(3) { + clear: right; + background-color: #c9cace; + } + + @media print { + @page { + size: auto; + margin: 1.2in 1.2in 1.2in 1.2in; + } + + body { + margin: 0; + line-height: 1.2; + font-size: 10pt; + } + + .column pre { + font-size: 9pt; + } + + div.examplenum { + font-size: 9pt; + } + } + </style> + <!-- TODO: Extract this javascript out to a separate file and unit test it --> + <script type="text/javascript"> + /* NOTE: The following code performs many of the pre-processing steps originally handled */ + /* in https://github.com/commonmark/commonmark-spec/blob/master/tools/make_spec.lua */ + + /* Adds a div.example wrapper around each pair of example code blocks. */ + function addAttributesToExampleWrapperDivs() { + const exampleAnchorTags = document.querySelectorAll("a[href^=\"#example-\"]"); + for (const exampleAnchorTag of exampleAnchorTags) { + const examplenumDiv = exampleAnchorTag.parentElement; + examplenumDiv.classList.add("examplenum"); + const exampleDiv = examplenumDiv.parentElement; + exampleDiv.classList.add("example"); + exampleDiv.id = exampleAnchorTag.getAttribute("href").substring(1); + } + } + + function addColumnClassToMarkdownDivs() { + const markdownCodeBlockDivs = document.querySelectorAll("div.markdown-code-block"); + for (const markdownCodeBlockDiv of markdownCodeBlockDivs) { + markdownCodeBlockDiv.classList.add("column"); + } + } + + function addNumbersToHeaders() { + const headers = document.querySelectorAll('h1,h2,h3'); + let h1Index = -1; // NOTE: -1 because we don't assign a number to the title + let h2Index = 0; + let h3Index = 0; + const tocEntries = []; + for (const header of headers) { + if (h1Index === -1) { + h1Index++; + continue; + } + + const originalHeaderTextContent = header.textContent.trim(); + const headerAnchor = originalHeaderTextContent.toLowerCase().replaceAll(' ', '-'); + header.id = headerAnchor; + let indent; + let headerTextContent; + if (header.tagName === 'H1') { + h1Index++; + h2Index = 0; + h3Index = 0; + header.textContent = headerTextContent = h1Index + ' ' + originalHeaderTextContent; + indent = 0; + } else if (header.tagName === 'H2') { + h2Index++; + h3Index = 0; + header.textContent = + headerTextContent = h1Index + '.' + h2Index + ' ' + originalHeaderTextContent; + indent = 1; + } else if (header.tagName === 'H3') { + h3Index++; + header.textContent = headerTextContent = + h1Index + '.' + h2Index + '.' + h3Index + ' ' + originalHeaderTextContent; + indent = 2; + } + tocEntries.push({headerAnchor, headerTextContent, indent}); + } + } + + document.addEventListener("DOMContentLoaded", function(_event) { + addAttributesToExampleWrapperDivs(); + addColumnClassToMarkdownDivs(); + const tocEntries = addNumbersToHeaders(); + addToc(tocEntries); + }); + + /* NOTE: The following code is to support the "Try it" interactive "dingus", which */ + /* we do not yet support. But it is being left here for comparison context with the */ + /* original CommonMark template. */ + // $$(document).ready(function() { + // $$("div.example").each(function(e) { + // var t = $$(this).find('code.language-markdown').text(); + // $$(this).find('a.dingus').click(function(f) { + // window.open('/dingus/?text=' + + // encodeURIComponent(t.replace(/→/g,"\t"))); + // }); + // }); + // $$("code.language-markdown").dblclick(function(e) { window.open('/dingus/?text=' + + // encodeURIComponent($$(this).text())); + // }); + // }); + </script> +</head> +<body> +<h1 class="title">GitLab Flavored Markdown Internal Extensions</h1> +<div class="version">Version alpha</div> + +<ul class="section-nav"> +<li> +<a href="#preliminaries">Preliminaries</a><ul> +<li><a href="#characters-and-lines">Characters and lines</a></li> +<li><a href="#tabs">Tabs</a></li> +<li><a href="#insecure-characters">Insecure characters</a></li> +</ul> +</li> +<li> +<a href="#blocks-and-inlines">Blocks and inlines</a><ul> +<li><a href="#precedence">Precedence</a></li> +<li><a href="#container-blocks-and-leaf-blocks">Container blocks and leaf blocks</a></li> +</ul> +</li> +<li> +<a href="#leaf-blocks">Leaf blocks</a><ul> +<li><a href="#thematic-breaks">Thematic breaks</a></li> +<li><a href="#atx-headings">ATX headings</a></li> +<li><a href="#setext-headings">Setext headings</a></li> +<li><a href="#indented-code-blocks">Indented code blocks</a></li> +<li><a href="#fenced-code-blocks">Fenced code blocks</a></li> +<li><a href="#html-blocks">HTML blocks</a></li> +<li><a href="#link-reference-definitions">Link reference definitions</a></li> +<li><a href="#paragraphs">Paragraphs</a></li> +<li><a href="#blank-lines">Blank lines</a></li> +<li><a href="#tables-extension">Tables (extension)</a></li> +</ul> +</li> +<li> +<a href="#container-blocks">Container blocks</a><ul> +<li><a href="#block-quotes">Block quotes</a></li> +<li> +<a href="#list-items">List items</a><ul><li><a href="#motivation">Motivation</a></li></ul> +</li> +<li><a href="#task-list-items-extension">Task list items (extension)</a></li> +<li><a href="#lists">Lists</a></li> +</ul> +</li> +<li> +<a href="#inlines">Inlines</a><ul> +<li><a href="#backslash-escapes">Backslash escapes</a></li> +<li><a href="#entity-and-numeric-character-references">Entity and numeric character references</a></li> +<li><a href="#code-spans">Code spans</a></li> +<li><a href="#emphasis-and-strong-emphasis">Emphasis and strong emphasis</a></li> +<li><a href="#strikethrough-extension">Strikethrough (extension)</a></li> +<li><a href="#links">Links</a></li> +<li><a href="#images">Images</a></li> +<li><a href="#autolinks">Autolinks</a></li> +<li><a href="#autolinks-extension">Autolinks (extension)</a></li> +<li><a href="#raw-html">Raw HTML</a></li> +<li><a href="#disallowed-raw-html-extension">Disallowed Raw HTML (extension)</a></li> +<li><a href="#hard-line-breaks">Hard line breaks</a></li> +<li><a href="#soft-line-breaks">Soft line breaks</a></li> +<li><a href="#textual-content">Textual content</a></li> +</ul> +</li> +<li> +<a href="#gitlab-official-specification-markdown">GitLab Official Specification Markdown</a><ul> +<li><a href="#footnotes">Footnotes</a></li> +<li><a href="#task-list-items">Task list items</a></li> +<li><a href="#front-matter">Front matter</a></li> +<li><a href="#table-of-contents">Table of contents</a></li> +</ul> +</li> +<li> +<a href="#gitlab-internal-extension-markdown">GitLab Internal Extension Markdown</a><ul> +<li><a href="#audio">Audio</a></li> +<li><a href="#video">Video</a></li> +<li><a href="#markdown-preview-api-request-overrides">Markdown Preview API Request Overrides</a></li> +<li> +<a href="#migrated-golden-master-examples">Migrated golden master examples</a><ul> +<li><a href="#attachment_image_for_group">attachment_image_for_group</a></li> +<li><a href="#attachment_image_for_project">attachment_image_for_project</a></li> +<li><a href="#attachment_image_for_project_wiki">attachment_image_for_project_wiki</a></li> +<li><a href="#attachment_link_for_group">attachment_link_for_group</a></li> +<li><a href="#attachment_link_for_project">attachment_link_for_project</a></li> +<li><a href="#attachment_link_for_project_wiki">attachment_link_for_project_wiki</a></li> +<li><a href="#attachment_link_for_group_wiki">attachment_link_for_group_wiki</a></li> +<li><a href="#audio-1">audio</a></li> +<li><a href="#audio_and_video_in_lists">audio_and_video_in_lists</a></li> +<li><a href="#blockquote">blockquote</a></li> +<li><a href="#bold">bold</a></li> +<li><a href="#bullet_list_style_1">bullet_list_style_1</a></li> +<li><a href="#bullet_list_style_2">bullet_list_style_2</a></li> +<li><a href="#bullet_list_style_3">bullet_list_style_3</a></li> +<li><a href="#code_block_javascript">code_block_javascript</a></li> +<li><a href="#code_block_plaintext">code_block_plaintext</a></li> +<li><a href="#code_block_unknown">code_block_unknown</a></li> +<li><a href="#color_chips">color_chips</a></li> +<li><a href="#description_list">description_list</a></li> +<li><a href="#details">details</a></li> +<li><a href="#diagram_kroki_nomnoml">diagram_kroki_nomnoml</a></li> +<li><a href="#diagram_plantuml">diagram_plantuml</a></li> +<li><a href="#diagram_plantuml_unicode">diagram_plantuml_unicode</a></li> +<li><a href="#div">div</a></li> +<li><a href="#emoji">emoji</a></li> +<li><a href="#emphasis">emphasis</a></li> +<li><a href="#figure">figure</a></li> +<li><a href="#footnotes-1">footnotes</a></li> +<li><a href="#frontmatter_json">frontmatter_json</a></li> +<li><a href="#frontmatter_toml">frontmatter_toml</a></li> +<li><a href="#frontmatter_yaml">frontmatter_yaml</a></li> +<li><a href="#hard_break">hard_break</a></li> +<li><a href="#headings">headings</a></li> +<li><a href="#horizontal_rule">horizontal_rule</a></li> +<li><a href="#html_marks">html_marks</a></li> +<li><a href="#image">image</a></li> +<li><a href="#inline_code">inline_code</a></li> +<li><a href="#inline_diff">inline_diff</a></li> +<li><a href="#label">label</a></li> +<li><a href="#link">link</a></li> +<li><a href="#math">math</a></li> +<li><a href="#ordered_list">ordered_list</a></li> +<li><a href="#ordered_list_with_start_order">ordered_list_with_start_order</a></li> +<li><a href="#ordered_task_list">ordered_task_list</a></li> +<li><a href="#ordered_task_list_with_order">ordered_task_list_with_order</a></li> +<li><a href="#reference_for_project_wiki">reference_for_project_wiki</a></li> +<li><a href="#strike">strike</a></li> +<li><a href="#table">table</a></li> +<li><a href="#table_of_contents">table_of_contents</a></li> +<li><a href="#task_list">task_list</a></li> +<li><a href="#video-1">video</a></li> +<li><a href="#word_break">word_break</a></li> +</ul> +</li> +<li><a href="#image-attributes">Image Attributes</a></li> +</ul> +</li> +</ul> +<h1 data-sourcepos="3:1-3:15" dir="auto"> <a id="user-content-preliminaries" class="anchor" href="#preliminaries" aria-hidden="true"></a>Preliminaries</h1> -<h2 data-sourcepos="7:1-7:23" dir="auto"> +<h2 data-sourcepos="5:1-5:23" dir="auto"> <a id="user-content-characters-and-lines" class="anchor" href="#characters-and-lines" aria-hidden="true"></a>Characters and lines</h2> -<p data-sourcepos="9:1-10:9" dir="auto">Any sequence of [characters] is a valid CommonMark +<p data-sourcepos="7:1-8:9" dir="auto">Any sequence of [characters] is a valid CommonMark document.</p> -<p data-sourcepos="12:1-15:26" dir="auto">A <a href="@">character</a> is a Unicode code point. Although some +<p data-sourcepos="10:1-13:26" dir="auto">A <a href="@">character</a> is a Unicode code point. Although some code points (for example, combining accents) do not correspond to characters in an intuitive sense, all code points count as characters for purposes of this spec.</p> -<p data-sourcepos="17:1-19:22" dir="auto">This spec does not specify an encoding; it thinks of lines as composed +<p data-sourcepos="15:1-17:22" dir="auto">This spec does not specify an encoding; it thinks of lines as composed of [characters] rather than bytes. A conforming parser may be limited to a certain encoding.</p> -<p data-sourcepos="21:1-23:50" dir="auto">A <a href="@">line</a> is a sequence of zero or more [characters] +<p data-sourcepos="19:1-21:50" dir="auto">A <a href="@">line</a> is a sequence of zero or more [characters] other than newline (<code>U+000A</code>) or carriage return (<code>U+000D</code>), followed by a [line ending] or by the end of file.</p> -<p data-sourcepos="25:1-27:18" dir="auto">A <a href="@">line ending</a> is a newline (<code>U+000A</code>), a carriage return +<p data-sourcepos="23:1-25:18" dir="auto">A <a href="@">line ending</a> is a newline (<code>U+000A</code>), a carriage return (<code>U+000D</code>) not followed by a newline, or a carriage return and a following newline.</p> -<p data-sourcepos="29:1-30:59" dir="auto">A line containing no characters, or a line containing only spaces +<p data-sourcepos="27:1-28:59" dir="auto">A line containing no characters, or a line containing only spaces (<code>U+0020</code>) or tabs (<code>U+0009</code>), is called a <a href="@">blank line</a>.</p> -<p data-sourcepos="32:1-32:73" dir="auto">The following definitions of character classes will be used in this spec:</p> -<p data-sourcepos="34:1-36:52" dir="auto">A <a href="@">whitespace character</a> is a space +<p data-sourcepos="30:1-30:73" dir="auto">The following definitions of character classes will be used in this spec:</p> +<p data-sourcepos="32:1-34:52" dir="auto">A <a href="@">whitespace character</a> is a space (<code>U+0020</code>), tab (<code>U+0009</code>), newline (<code>U+000A</code>), line tabulation (<code>U+000B</code>), form feed (<code>U+000C</code>), or carriage return (<code>U+000D</code>).</p> -<p data-sourcepos="38:1-39:12" dir="auto"><a href="@">Whitespace</a> is a sequence of one or more [whitespace +<p data-sourcepos="36:1-37:12" dir="auto"><a href="@">Whitespace</a> is a sequence of one or more [whitespace characters].</p> -<p data-sourcepos="41:1-44:11" dir="auto">A <a href="@">Unicode whitespace character</a> is +<p data-sourcepos="39:1-42:11" dir="auto">A <a href="@">Unicode whitespace character</a> is any code point in the Unicode <code>Zs</code> general category, or a tab (<code>U+0009</code>), carriage return (<code>U+000D</code>), newline (<code>U+000A</code>), or form feed (<code>U+000C</code>).</p> -<p data-sourcepos="46:1-47:40" dir="auto"><a href="@">Unicode whitespace</a> is a sequence of one +<p data-sourcepos="44:1-45:40" dir="auto"><a href="@">Unicode whitespace</a> is a sequence of one or more [Unicode whitespace characters].</p> -<p data-sourcepos="49:1-49:25" dir="auto">A <a href="@">space</a> is <code>U+0020</code>.</p> -<p data-sourcepos="51:1-52:37" dir="auto">A <a href="@">non-whitespace character</a> is any character +<p data-sourcepos="47:1-47:25" dir="auto">A <a href="@">space</a> is <code>U+0020</code>.</p> +<p data-sourcepos="49:1-50:37" dir="auto">A <a href="@">non-whitespace character</a> is any character that is not a [whitespace character].</p> -<p data-sourcepos="54:1-59:38" dir="auto">An <a href="@">ASCII punctuation character</a> +<p data-sourcepos="52:1-57:38" dir="auto">An <a href="@">ASCII punctuation character</a> is <code>!</code>, <code>"</code>, <code>#</code>, <code>$</code>, <code>%</code>, <code>&</code>, <code>'</code>, <code>(</code>, <code>)</code>, <code>*</code>, <code>+</code>, <code>,</code>, <code>-</code>, <code>.</code>, <code>/</code> (U+0021–2F), <code>:</code>, <code>;</code>, <code><</code>, <code>=</code>, <code>></code>, <code>?</code>, <code>@</code> (U+003A–0040), <code>[</code>, <code>\</code>, <code>]</code>, <code>^</code>, <code>_</code>, <code>`</code> (U+005B–0060), <code>{</code>, <code>|</code>, <code>}</code>, or <code>~</code> (U+007B–007E).</p> -<p data-sourcepos="61:1-63:76" dir="auto">A <a href="@">punctuation character</a> is an [ASCII +<p data-sourcepos="59:1-61:76" dir="auto">A <a href="@">punctuation character</a> is an [ASCII punctuation character] or anything in the general Unicode categories <code>Pc</code>, <code>Pd</code>, <code>Pe</code>, <code>Pf</code>, <code>Pi</code>, <code>Po</code>, or <code>Ps</code>.</p> -<h2 data-sourcepos="65:1-65:7" dir="auto"> +<h2 data-sourcepos="63:1-63:7" dir="auto"> <a id="user-content-tabs" class="anchor" href="#tabs" aria-hidden="true"></a>Tabs</h2> -<p data-sourcepos="67:1-70:16" dir="auto">Tabs in lines are not expanded to [spaces]. However, +<p data-sourcepos="65:1-68:16" dir="auto">Tabs in lines are not expanded to [spaces]. However, in contexts where whitespace helps to define block structure, tabs behave as if they were replaced by spaces with a tab stop of 4 characters.</p> -<p data-sourcepos="72:1-75:8" dir="auto">Thus, for example, a tab can be used instead of four spaces +<p data-sourcepos="70:1-73:8" dir="auto">Thus, for example, a tab can be used instead of four spaces in an indented code block. (Note, however, that internal tabs are passed through as literal tabs, not expanded to spaces.)</p> +<div> +<div><a href="#example-1">Example 1</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="77:1-79:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">→foo→baz→→bim</span></code></pre> +<pre data-sourcepos="78:1-80:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">→foo→baz→→bim</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="81:1-84:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>foo→baz→→bim</span> +<pre data-sourcepos="82:1-85:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>foo→baz→→bim</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-2">Example 2</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="86:1-88:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> →foo→baz→→bim</span></code></pre> +<pre data-sourcepos="91:1-93:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> →foo→baz→→bim</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="90:1-93:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>foo→baz→→bim</span> +<pre data-sourcepos="95:1-98:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>foo→baz→→bim</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-3">Example 3</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="95:1-98:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> a→a</span> +<pre data-sourcepos="104:1-107:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> a→a</span> <span id="LC2" class="line" lang="plaintext"> ὐ→a</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="100:1-104:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>a→a</span> +<pre data-sourcepos="109:1-113:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>a→a</span> <span id="LC2" class="line" lang="plaintext">ὐ→a</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="106:1-108:38" dir="auto">In the following example, a continuation paragraph of a list +</div> +<p data-sourcepos="116:1-118:38" dir="auto">In the following example, a continuation paragraph of a list item is indented with a tab; this has exactly the same effect as indentation with four spaces would:</p> +<div> +<div><a href="#example-4">Example 4</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="110:1-114:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - foo</span> +<pre data-sourcepos="123:1-127:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">→bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="116:1-123:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="129:1-136:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>foo</p></span> <span id="LC4" class="line" lang="plaintext"><p>bar</p></span> @@ -105,14 +480,17 @@ as indentation with four spaces would:</p> <span id="LC6" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-5">Example 5</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="125:1-129:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> +<pre data-sourcepos="142:1-146:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">→→bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="131:1-139:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="148:1-156:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>foo</p></span> <span id="LC4" class="line" lang="plaintext"><pre><code> bar</span> @@ -121,7 +499,8 @@ as indentation with four spaces would:</p> <span id="LC7" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="141:1-148:36" dir="auto">Normally the <code>></code> that begins a block quote may be followed +</div> +<p data-sourcepos="159:1-166:36" dir="auto">Normally the <code>></code> that begins a block quote may be followed optionally by a space, which is not considered part of the content. In the following case <code>></code> is followed by a tab, which is treated as if it were expanded into three spaces. @@ -129,23 +508,28 @@ Since one of these spaces is considered part of the delimiter, <code>foo</code> is considered to be indented six spaces inside the block quote context, so we get an indented code block starting with two spaces.</p> +<div> +<div><a href="#example-6">Example 6</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="150:1-152:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">>→→foo</span></code></pre> +<pre data-sourcepos="171:1-173:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">>→→foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="154:1-159:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="175:1-180:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><pre><code> foo</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span> <span id="LC4" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-7">Example 7</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="161:1-163:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-→→foo</span></code></pre> +<pre data-sourcepos="186:1-188:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-→→foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="165:1-172:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="190:1-197:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><pre><code> foo</span> <span id="LC4" class="line" lang="plaintext"></code></pre></span> @@ -153,25 +537,31 @@ code block starting with two spaces.</p> <span id="LC6" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-8">Example 8</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="175:1-178:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo</span> +<pre data-sourcepos="204:1-207:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo</span> <span id="LC2" class="line" lang="plaintext">→bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="180:1-184:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>foo</span> +<pre data-sourcepos="209:1-213:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>foo</span> <span id="LC2" class="line" lang="plaintext">bar</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-9">Example 9</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="186:1-190:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - foo</span> +<pre data-sourcepos="219:1-223:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - foo</span> <span id="LC2" class="line" lang="plaintext"> - bar</span> <span id="LC3" class="line" lang="plaintext">→ - baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="192:1-204:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="225:1-237:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>foo</span> <span id="LC3" class="line" lang="plaintext"><ul></span> <span id="LC4" class="line" lang="plaintext"><li>bar</span> @@ -184,52 +574,62 @@ code block starting with two spaces.</p> <span id="LC11" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-10">Example 10</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="206:1-208:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">#→Foo</span></code></pre> +<pre data-sourcepos="243:1-245:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">#→Foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="210:1-212:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>Foo</h1></span></code></pre> +<pre data-sourcepos="247:1-249:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>Foo</h1></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-11">Example 11</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="214:1-216:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*→*→*→</span></code></pre> +<pre data-sourcepos="255:1-257:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*→*→*→</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="218:1-220:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span></code></pre> +<pre data-sourcepos="259:1-261:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="223:1-223:22" dir="auto"> +</div> +<h2 data-sourcepos="265:1-265:22" dir="auto"> <a id="user-content-insecure-characters" class="anchor" href="#insecure-characters" aria-hidden="true"></a>Insecure characters</h2> -<p data-sourcepos="225:1-226:42" dir="auto">For security reasons, the Unicode character <code>U+0000</code> must be replaced +<p data-sourcepos="267:1-268:42" dir="auto">For security reasons, the Unicode character <code>U+0000</code> must be replaced with the REPLACEMENT CHARACTER (<code>U+FFFD</code>).</p> -<h1 data-sourcepos="228:1-228:20" dir="auto"> +<h1 data-sourcepos="270:1-270:20" dir="auto"> <a id="user-content-blocks-and-inlines" class="anchor" href="#blocks-and-inlines" aria-hidden="true"></a>Blocks and inlines</h1> -<p data-sourcepos="230:1-235:54" dir="auto">We can think of a document as a sequence of +<p data-sourcepos="272:1-277:54" dir="auto">We can think of a document as a sequence of <a href="@">blocks</a>---structural elements like paragraphs, block quotations, lists, headings, rules, and code blocks. Some blocks (like block quotes and list items) contain other blocks; others (like headings and paragraphs) contain <a href="@">inline</a> content---text, links, emphasized text, images, code spans, and so on.</p> -<h2 data-sourcepos="237:1-237:13" dir="auto"> +<h2 data-sourcepos="279:1-279:13" dir="auto"> <a id="user-content-precedence" class="anchor" href="#precedence" aria-hidden="true"></a>Precedence</h2> -<p data-sourcepos="239:1-241:59" dir="auto">Indicators of block structure always take precedence over indicators +<p data-sourcepos="281:1-283:59" dir="auto">Indicators of block structure always take precedence over indicators of inline structure. So, for example, the following is a list with two items, not a list with one item containing a code span:</p> +<div> +<div><a href="#example-12">Example 12</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="243:1-246:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- `one</span> +<pre data-sourcepos="288:1-291:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- `one</span> <span id="LC2" class="line" lang="plaintext">- two`</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="248:1-253:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="293:1-298:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>`one</li></span> <span id="LC3" class="line" lang="plaintext"><li>two`</li></span> <span id="LC4" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="256:1-263:66" dir="auto">This means that parsing can proceed in two steps: first, the block +</div> +<p data-sourcepos="302:1-309:66" dir="auto">This means that parsing can proceed in two steps: first, the block structure of the document can be discerned; second, text lines inside paragraphs, headings, and other block constructs can be parsed for inline structure. The second step requires information about link reference @@ -237,143 +637,181 @@ definitions that will be available only at the end of the first step. Note that the first step requires processing lines in sequence, but the second can be parallelized, since the inline parsing of one block element does not affect the inline parsing of any other.</p> -<h2 data-sourcepos="265:1-265:35" dir="auto"> +<h2 data-sourcepos="311:1-311:35" dir="auto"> <a id="user-content-container-blocks-and-leaf-blocks" class="anchor" href="#container-blocks-and-leaf-blocks" aria-hidden="true"></a>Container blocks and leaf blocks</h2> -<p data-sourcepos="267:1-270:13" dir="auto">We can divide blocks into two types: +<p data-sourcepos="313:1-316:13" dir="auto">We can divide blocks into two types: <a href="@">container blocks</a>, which can contain other blocks, and <a href="@">leaf blocks</a>, which cannot.</p> -<h1 data-sourcepos="272:1-272:13" dir="auto"> +<h1 data-sourcepos="318:1-318:13" dir="auto"> <a id="user-content-leaf-blocks" class="anchor" href="#leaf-blocks" aria-hidden="true"></a>Leaf blocks</h1> -<p data-sourcepos="274:1-275:18" dir="auto">This section describes the different kinds of leaf block that make up a +<p data-sourcepos="320:1-321:18" dir="auto">This section describes the different kinds of leaf block that make up a Markdown document.</p> -<h2 data-sourcepos="277:1-277:18" dir="auto"> +<h2 data-sourcepos="323:1-323:18" dir="auto"> <a id="user-content-thematic-breaks" class="anchor" href="#thematic-breaks" aria-hidden="true"></a>Thematic breaks</h2> -<p data-sourcepos="279:1-282:20" dir="auto">A line consisting of 0-3 spaces of indentation, followed by a sequence +<p data-sourcepos="325:1-328:20" dir="auto">A line consisting of 0-3 spaces of indentation, followed by a sequence of three or more matching <code>-</code>, <code>_</code>, or <code>*</code> characters, each followed optionally by any number of spaces or tabs, forms a <a href="@">thematic break</a>.</p> +<div> +<div><a href="#example-13">Example 13</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="284:1-288:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***</span> +<pre data-sourcepos="333:1-337:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***</span> <span id="LC2" class="line" lang="plaintext">---</span> <span id="LC3" class="line" lang="plaintext">___</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="290:1-294:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span> +<pre data-sourcepos="339:1-343:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span> <span id="LC2" class="line" lang="plaintext"><hr /></span> <span id="LC3" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="297:1-297:17" dir="auto">Wrong characters:</p> +</div> +<p data-sourcepos="347:1-347:17" dir="auto">Wrong characters:</p> +<div> +<div><a href="#example-14">Example 14</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="299:1-301:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">+++</span></code></pre> +<pre data-sourcepos="352:1-354:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">+++</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="303:1-305:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>+++</p></span></code></pre> +<pre data-sourcepos="356:1-358:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>+++</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-15">Example 15</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="308:1-310:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">===</span></code></pre> +<pre data-sourcepos="365:1-367:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">===</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="312:1-314:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>===</p></span></code></pre> +<pre data-sourcepos="369:1-371:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>===</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="317:1-317:22" dir="auto">Not enough characters:</p> +</div> +<p data-sourcepos="375:1-375:22" dir="auto">Not enough characters:</p> +<div> +<div><a href="#example-16">Example 16</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="319:1-323:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">--</span> +<pre data-sourcepos="380:1-384:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">--</span> <span id="LC2" class="line" lang="plaintext">**</span> <span id="LC3" class="line" lang="plaintext">__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="325:1-329:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>--</span> +<pre data-sourcepos="386:1-390:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>--</span> <span id="LC2" class="line" lang="plaintext">**</span> <span id="LC3" class="line" lang="plaintext">__</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="332:1-332:39" dir="auto">One to three spaces indent are allowed:</p> +</div> +<p data-sourcepos="394:1-394:39" dir="auto">One to three spaces indent are allowed:</p> +<div> +<div><a href="#example-17">Example 17</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="334:1-338:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ***</span> +<pre data-sourcepos="399:1-403:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ***</span> <span id="LC2" class="line" lang="plaintext"> ***</span> <span id="LC3" class="line" lang="plaintext"> ***</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="340:1-344:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span> +<pre data-sourcepos="405:1-409:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span> <span id="LC2" class="line" lang="plaintext"><hr /></span> <span id="LC3" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="347:1-347:24" dir="auto">Four spaces is too many:</p> +</div> +<p data-sourcepos="413:1-413:24" dir="auto">Four spaces is too many:</p> +<div> +<div><a href="#example-18">Example 18</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="349:1-351:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ***</span></code></pre> +<pre data-sourcepos="418:1-420:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ***</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="353:1-356:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>***</span> +<pre data-sourcepos="422:1-425:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>***</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-19">Example 19</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="359:1-362:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> +<pre data-sourcepos="432:1-435:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> <span id="LC2" class="line" lang="plaintext"> ***</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="364:1-367:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> +<pre data-sourcepos="437:1-440:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> <span id="LC2" class="line" lang="plaintext">***</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="370:1-370:39" dir="auto">More than three characters may be used:</p> +</div> +<p data-sourcepos="444:1-444:39" dir="auto">More than three characters may be used:</p> +<div> +<div><a href="#example-20">Example 20</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="372:1-374:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_____________________________________</span></code></pre> +<pre data-sourcepos="449:1-451:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_____________________________________</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="376:1-378:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span></code></pre> +<pre data-sourcepos="453:1-455:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="381:1-381:42" dir="auto">Spaces are allowed between the characters:</p> +</div> +<p data-sourcepos="459:1-459:42" dir="auto">Spaces are allowed between the characters:</p> +<div> +<div><a href="#example-21">Example 21</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="383:1-385:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - - -</span></code></pre> +<pre data-sourcepos="464:1-466:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - - -</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="387:1-389:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span></code></pre> +<pre data-sourcepos="468:1-470:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-22">Example 22</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="392:1-394:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ** * ** * ** * **</span></code></pre> +<pre data-sourcepos="477:1-479:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ** * ** * ** * **</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="396:1-398:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span></code></pre> +<pre data-sourcepos="481:1-483:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-23">Example 23</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="401:1-403:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- - - -</span></code></pre> +<pre data-sourcepos="490:1-492:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- - - -</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="405:1-407:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span></code></pre> +<pre data-sourcepos="494:1-496:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="410:1-410:30" dir="auto">Spaces are allowed at the end:</p> +</div> +<p data-sourcepos="500:1-500:30" dir="auto">Spaces are allowed at the end:</p> +<div> +<div><a href="#example-24">Example 24</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="412:1-414:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- - - - </span></code></pre> +<pre data-sourcepos="505:1-507:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- - - - </span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="416:1-418:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span></code></pre> +<pre data-sourcepos="509:1-511:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="421:1-421:51" dir="auto">However, no other characters may occur in the line:</p> +</div> +<p data-sourcepos="515:1-515:51" dir="auto">However, no other characters may occur in the line:</p> +<div> +<div><a href="#example-25">Example 25</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="423:1-429:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_ _ _ _ a</span> +<pre data-sourcepos="520:1-526:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_ _ _ _ a</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">a------</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -381,30 +819,36 @@ optionally by any number of spaces or tabs, forms a <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="431:1-435:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_ _ _ _ a</p></span> +<pre data-sourcepos="528:1-532:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_ _ _ _ a</p></span> <span id="LC2" class="line" lang="plaintext"><p>a------</p></span> <span id="LC3" class="line" lang="plaintext"><p>---a---</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="438:1-439:33" dir="auto">It is required that all of the [non-whitespace characters] be the same. +</div> +<p data-sourcepos="536:1-537:33" dir="auto">It is required that all of the [non-whitespace characters] be the same. So, this is not a thematic break:</p> +<div> +<div><a href="#example-26">Example 26</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="441:1-443:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> *-*</span></code></pre> +<pre data-sourcepos="542:1-544:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> *-*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="445:1-447:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>-</em></p></span></code></pre> +<pre data-sourcepos="546:1-548:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>-</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="450:1-450:56" dir="auto">Thematic breaks do not need blank lines before or after:</p> +</div> +<p data-sourcepos="552:1-552:56" dir="auto">Thematic breaks do not need blank lines before or after:</p> +<div> +<div><a href="#example-27">Example 27</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="452:1-456:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> +<pre data-sourcepos="557:1-561:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> <span id="LC2" class="line" lang="plaintext">***</span> <span id="LC3" class="line" lang="plaintext">- bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="458:1-466:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="563:1-571:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>foo</li></span> <span id="LC3" class="line" lang="plaintext"></ul></span> <span id="LC4" class="line" lang="plaintext"><hr /></span> @@ -413,45 +857,54 @@ So, this is not a thematic break:</p> <span id="LC7" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="469:1-469:42" dir="auto">Thematic breaks can interrupt a paragraph:</p> +</div> +<p data-sourcepos="575:1-575:42" dir="auto">Thematic breaks can interrupt a paragraph:</p> +<div> +<div><a href="#example-28">Example 28</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="471:1-475:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> +<pre data-sourcepos="580:1-584:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> <span id="LC2" class="line" lang="plaintext">***</span> <span id="LC3" class="line" lang="plaintext">bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="477:1-481:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</p></span> +<pre data-sourcepos="586:1-590:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</p></span> <span id="LC2" class="line" lang="plaintext"><hr /></span> <span id="LC3" class="line" lang="plaintext"><p>bar</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="484:1-488:71" dir="auto">If a line of dashes that meets the above conditions for being a +</div> +<p data-sourcepos="594:1-598:71" dir="auto">If a line of dashes that meets the above conditions for being a thematic break could also be interpreted as the underline of a [setext heading], the interpretation as a [setext heading] takes precedence. Thus, for example, this is a setext heading, not a paragraph followed by a thematic break:</p> +<div> +<div><a href="#example-29">Example 29</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="490:1-494:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> +<pre data-sourcepos="603:1-607:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> <span id="LC2" class="line" lang="plaintext">---</span> <span id="LC3" class="line" lang="plaintext">bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="496:1-499:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>Foo</h2></span> +<pre data-sourcepos="609:1-612:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>Foo</h2></span> <span id="LC2" class="line" lang="plaintext"><p>bar</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="502:1-503:63" dir="auto">When both a thematic break and a list item are possible +</div> +<p data-sourcepos="616:1-617:63" dir="auto">When both a thematic break and a list item are possible interpretations of a line, the thematic break takes precedence:</p> +<div> +<div><a href="#example-30">Example 30</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="505:1-509:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* Foo</span> +<pre data-sourcepos="622:1-626:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* Foo</span> <span id="LC2" class="line" lang="plaintext">* * *</span> <span id="LC3" class="line" lang="plaintext">* Bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="511:1-519:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="628:1-636:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>Foo</li></span> <span id="LC3" class="line" lang="plaintext"></ul></span> <span id="LC4" class="line" lang="plaintext"><hr /></span> @@ -460,14 +913,17 @@ interpretations of a line, the thematic break takes precedence:</p> <span id="LC7" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="522:1-522:68" dir="auto">If you want a thematic break in a list item, use a different bullet:</p> +</div> +<p data-sourcepos="640:1-640:68" dir="auto">If you want a thematic break in a list item, use a different bullet:</p> +<div> +<div><a href="#example-31">Example 31</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="524:1-527:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- Foo</span> +<pre data-sourcepos="645:1-648:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- Foo</span> <span id="LC2" class="line" lang="plaintext">- * * *</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="529:1-536:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="650:1-657:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>Foo</li></span> <span id="LC3" class="line" lang="plaintext"><li></span> <span id="LC4" class="line" lang="plaintext"><hr /></span> @@ -475,9 +931,10 @@ interpretations of a line, the thematic break takes precedence:</p> <span id="LC6" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="539:1-539:15" dir="auto"> +</div> +<h2 data-sourcepos="661:1-661:15" dir="auto"> <a id="user-content-atx-headings" class="anchor" href="#atx-headings" aria-hidden="true"></a>ATX headings</h2> -<p data-sourcepos="541:1-551:35" dir="auto">An <a href="@">ATX heading</a> +<p data-sourcepos="663:1-673:35" dir="auto">An <a href="@">ATX heading</a> consists of a string of characters, parsed as inline content, between an opening sequence of 1--6 unescaped <code>#</code> characters and an optional closing sequence of any number of unescaped <code>#</code> characters. @@ -488,9 +945,11 @@ preceded by a [space] and may be followed by spaces only. The opening heading are stripped of leading and trailing spaces before being parsed as inline content. The heading level is equal to the number of <code>#</code> characters in the opening sequence.</p> -<p data-sourcepos="553:1-553:16" dir="auto">Simple headings:</p> +<p data-sourcepos="675:1-675:16" dir="auto">Simple headings:</p> +<div> +<div><a href="#example-32">Example 32</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="555:1-562:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># foo</span> +<pre data-sourcepos="680:1-687:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># foo</span> <span id="LC2" class="line" lang="plaintext">## foo</span> <span id="LC3" class="line" lang="plaintext">### foo</span> <span id="LC4" class="line" lang="plaintext">#### foo</span> @@ -499,7 +958,7 @@ characters in the opening sequence.</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="564:1-571:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>foo</h1></span> +<pre data-sourcepos="689:1-696:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>foo</h1></span> <span id="LC2" class="line" lang="plaintext"><h2>foo</h2></span> <span id="LC3" class="line" lang="plaintext"><h3>foo</h3></span> <span id="LC4" class="line" lang="plaintext"><h4>foo</h4></span> @@ -507,200 +966,252 @@ characters in the opening sequence.</p> <span id="LC6" class="line" lang="plaintext"><h6>foo</h6></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="574:1-574:46" dir="auto">More than six <code>#</code> characters is not a heading:</p> +</div> +<p data-sourcepos="700:1-700:46" dir="auto">More than six <code>#</code> characters is not a heading:</p> +<div> +<div><a href="#example-33">Example 33</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="576:1-578:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">####### foo</span></code></pre> +<pre data-sourcepos="705:1-707:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">####### foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="580:1-582:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>####### foo</p></span></code></pre> +<pre data-sourcepos="709:1-711:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>####### foo</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="585:1-591:9" dir="auto">At least one space is required between the <code>#</code> characters and the +</div> +<p data-sourcepos="715:1-721:9" dir="auto">At least one space is required between the <code>#</code> characters and the heading's contents, unless the heading is empty. Note that many implementations currently do not require the space. However, the space was required by the <a href="http://www.aaronsw.com/2002/atx/atx.py" rel="nofollow noreferrer noopener" target="_blank">original ATX implementation</a>, and it helps prevent things like the following from being parsed as headings:</p> +<div> +<div><a href="#example-34">Example 34</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="593:1-597:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">#5 bolt</span> +<pre data-sourcepos="726:1-730:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">#5 bolt</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">#hashtag</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="599:1-602:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>#5 bolt</p></span> +<pre data-sourcepos="732:1-735:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>#5 bolt</p></span> <span id="LC2" class="line" lang="plaintext"><p>#hashtag</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="605:1-605:56" dir="auto">This is not a heading, because the first <code>#</code> is escaped:</p> +</div> +<p data-sourcepos="739:1-739:56" dir="auto">This is not a heading, because the first <code>#</code> is escaped:</p> +<div> +<div><a href="#example-35">Example 35</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="607:1-609:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\## foo</span></code></pre> +<pre data-sourcepos="744:1-746:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\## foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="611:1-613:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>## foo</p></span></code></pre> +<pre data-sourcepos="748:1-750:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>## foo</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="616:1-616:31" dir="auto">Contents are parsed as inlines:</p> +</div> +<p data-sourcepos="754:1-754:31" dir="auto">Contents are parsed as inlines:</p> +<div> +<div><a href="#example-36">Example 36</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="618:1-620:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># foo *bar* \*baz\*</span></code></pre> +<pre data-sourcepos="759:1-761:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># foo *bar* \*baz\*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="622:1-624:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>foo <em>bar</em> *baz*</h1></span></code></pre> +<pre data-sourcepos="763:1-765:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>foo <em>bar</em> *baz*</h1></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="627:1-627:71" dir="auto">Leading and trailing [whitespace] is ignored in parsing inline content:</p> +</div> +<p data-sourcepos="769:1-769:71" dir="auto">Leading and trailing [whitespace] is ignored in parsing inline content:</p> +<div> +<div><a href="#example-37">Example 37</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="629:1-631:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># foo </span></code></pre> +<pre data-sourcepos="774:1-776:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># foo </span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="633:1-635:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>foo</h1></span></code></pre> +<pre data-sourcepos="778:1-780:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>foo</h1></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="638:1-638:44" dir="auto">One to three spaces indentation are allowed:</p> +</div> +<p data-sourcepos="784:1-784:44" dir="auto">One to three spaces indentation are allowed:</p> +<div> +<div><a href="#example-38">Example 38</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="640:1-644:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ### foo</span> +<pre data-sourcepos="789:1-793:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ### foo</span> <span id="LC2" class="line" lang="plaintext"> ## foo</span> <span id="LC3" class="line" lang="plaintext"> # foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="646:1-650:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h3>foo</h3></span> +<pre data-sourcepos="795:1-799:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h3>foo</h3></span> <span id="LC2" class="line" lang="plaintext"><h2>foo</h2></span> <span id="LC3" class="line" lang="plaintext"><h1>foo</h1></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="653:1-653:25" dir="auto">Four spaces are too much:</p> +</div> +<p data-sourcepos="803:1-803:25" dir="auto">Four spaces are too much:</p> +<div> +<div><a href="#example-39">Example 39</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="655:1-657:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> # foo</span></code></pre> +<pre data-sourcepos="808:1-810:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> # foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="659:1-662:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code># foo</span> +<pre data-sourcepos="812:1-815:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code># foo</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-40">Example 40</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="665:1-668:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span> +<pre data-sourcepos="822:1-825:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span> <span id="LC2" class="line" lang="plaintext"> # bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="670:1-673:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</span> +<pre data-sourcepos="827:1-830:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</span> <span id="LC2" class="line" lang="plaintext"># bar</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="676:1-676:49" dir="auto">A closing sequence of <code>#</code> characters is optional:</p> +</div> +<p data-sourcepos="834:1-834:49" dir="auto">A closing sequence of <code>#</code> characters is optional:</p> +<div> +<div><a href="#example-41">Example 41</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="678:1-681:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">## foo ##</span> +<pre data-sourcepos="839:1-842:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">## foo ##</span> <span id="LC2" class="line" lang="plaintext"> ### bar ###</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="683:1-686:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>foo</h2></span> +<pre data-sourcepos="844:1-847:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>foo</h2></span> <span id="LC2" class="line" lang="plaintext"><h3>bar</h3></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="689:1-689:55" dir="auto">It need not be the same length as the opening sequence:</p> +</div> +<p data-sourcepos="851:1-851:55" dir="auto">It need not be the same length as the opening sequence:</p> +<div> +<div><a href="#example-42">Example 42</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="691:1-694:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># foo ##################################</span> +<pre data-sourcepos="856:1-859:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># foo ##################################</span> <span id="LC2" class="line" lang="plaintext">##### foo ##</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="696:1-699:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>foo</h1></span> +<pre data-sourcepos="861:1-864:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>foo</h1></span> <span id="LC2" class="line" lang="plaintext"><h5>foo</h5></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="702:1-702:46" dir="auto">Spaces are allowed after the closing sequence:</p> +</div> +<p data-sourcepos="868:1-868:46" dir="auto">Spaces are allowed after the closing sequence:</p> +<div> +<div><a href="#example-43">Example 43</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="704:1-706:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">### foo ### </span></code></pre> +<pre data-sourcepos="873:1-875:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">### foo ### </span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="708:1-710:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h3>foo</h3></span></code></pre> +<pre data-sourcepos="877:1-879:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h3>foo</h3></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="713:1-715:8" dir="auto">A sequence of <code>#</code> characters with anything but [spaces] following it +</div> +<p data-sourcepos="883:1-885:8" dir="auto">A sequence of <code>#</code> characters with anything but [spaces] following it is not a closing sequence, but counts as part of the contents of the heading:</p> +<div> +<div><a href="#example-44">Example 44</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="717:1-719:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">### foo ### b</span></code></pre> +<pre data-sourcepos="890:1-892:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">### foo ### b</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="721:1-723:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h3>foo ### b</h3></span></code></pre> +<pre data-sourcepos="894:1-896:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h3>foo ### b</h3></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="726:1-726:49" dir="auto">The closing sequence must be preceded by a space:</p> +</div> +<p data-sourcepos="900:1-900:49" dir="auto">The closing sequence must be preceded by a space:</p> +<div> +<div><a href="#example-45">Example 45</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="728:1-730:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># foo#</span></code></pre> +<pre data-sourcepos="905:1-907:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># foo#</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="732:1-734:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>foo#</h1></span></code></pre> +<pre data-sourcepos="909:1-911:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>foo#</h1></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="737:1-738:24" dir="auto">Backslash-escaped <code>#</code> characters do not count as part +</div> +<p data-sourcepos="915:1-916:24" dir="auto">Backslash-escaped <code>#</code> characters do not count as part of the closing sequence:</p> +<div> +<div><a href="#example-46">Example 46</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="740:1-744:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">### foo \###</span> +<pre data-sourcepos="921:1-925:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">### foo \###</span> <span id="LC2" class="line" lang="plaintext">## foo #\##</span> <span id="LC3" class="line" lang="plaintext"># foo \#</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="746:1-750:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h3>foo ###</h3></span> +<pre data-sourcepos="927:1-931:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h3>foo ###</h3></span> <span id="LC2" class="line" lang="plaintext"><h2>foo ###</h2></span> <span id="LC3" class="line" lang="plaintext"><h1>foo #</h1></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="753:1-754:41" dir="auto">ATX headings need not be separated from surrounding content by blank +</div> +<p data-sourcepos="935:1-936:41" dir="auto">ATX headings need not be separated from surrounding content by blank lines, and they can interrupt paragraphs:</p> +<div> +<div><a href="#example-47">Example 47</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="756:1-760:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">****</span> +<pre data-sourcepos="941:1-945:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">****</span> <span id="LC2" class="line" lang="plaintext">## foo</span> <span id="LC3" class="line" lang="plaintext">****</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="762:1-766:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span> +<pre data-sourcepos="947:1-951:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span> <span id="LC2" class="line" lang="plaintext"><h2>foo</h2></span> <span id="LC3" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-48">Example 48</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="769:1-773:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo bar</span> +<pre data-sourcepos="958:1-962:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo bar</span> <span id="LC2" class="line" lang="plaintext"># baz</span> <span id="LC3" class="line" lang="plaintext">Bar foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="775:1-779:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo bar</p></span> +<pre data-sourcepos="964:1-968:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo bar</p></span> <span id="LC2" class="line" lang="plaintext"><h1>baz</h1></span> <span id="LC3" class="line" lang="plaintext"><p>Bar foo</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="782:1-782:26" dir="auto">ATX headings can be empty:</p> +</div> +<p data-sourcepos="972:1-972:26" dir="auto">ATX headings can be empty:</p> +<div> +<div><a href="#example-49">Example 49</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="784:1-788:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">## </span> +<pre data-sourcepos="977:1-981:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">## </span> <span id="LC2" class="line" lang="plaintext">#</span> <span id="LC3" class="line" lang="plaintext">### ###</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="790:1-794:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2></h2></span> +<pre data-sourcepos="983:1-987:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2></h2></span> <span id="LC2" class="line" lang="plaintext"><h1></h1></span> <span id="LC3" class="line" lang="plaintext"><h3></h3></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="797:1-797:18" dir="auto"> +</div> +<h2 data-sourcepos="991:1-991:18" dir="auto"> <a id="user-content-setext-headings" class="anchor" href="#setext-headings" aria-hidden="true"></a>Setext headings</h2> -<p data-sourcepos="799:1-807:54" dir="auto">A <a href="@">setext heading</a> consists of one or more +<p data-sourcepos="993:1-1001:54" dir="auto">A <a href="@">setext heading</a> consists of one or more lines of text, each containing at least one [non-whitespace character], with no more than 3 spaces indentation, followed by a [setext heading underline]. The lines of text must be such @@ -709,24 +1220,26 @@ they would be interpreted as a paragraph: they cannot be interpretable as a [code fence], [ATX heading][ATX headings], [block quote][block quotes], [thematic break][thematic breaks], [list item][list items], or [HTML block][HTML blocks].</p> -<p data-sourcepos="809:1-814:40" dir="auto">A <a href="@">setext heading underline</a> is a sequence of +<p data-sourcepos="1003:1-1008:40" dir="auto">A <a href="@">setext heading underline</a> is a sequence of <code>=</code> characters or a sequence of <code>-</code> characters, with no more than 3 spaces indentation and any number of trailing spaces. If a line containing a single <code>-</code> can be interpreted as an empty [list items], it should be interpreted this way and not as a [setext heading underline].</p> -<p data-sourcepos="816:1-820:8" dir="auto">The heading is a level 1 heading if <code>=</code> characters are used in +<p data-sourcepos="1010:1-1014:8" dir="auto">The heading is a level 1 heading if <code>=</code> characters are used in the [setext heading underline], and a level 2 heading if <code>-</code> characters are used. The contents of the heading are the result of parsing the preceding lines of text as CommonMark inline content.</p> -<p data-sourcepos="822:1-825:5" dir="auto">In general, a setext heading need not be preceded or followed by a +<p data-sourcepos="1016:1-1019:5" dir="auto">In general, a setext heading need not be preceded or followed by a blank line. However, it cannot interrupt a paragraph, so when a setext heading comes after a paragraph, a blank line is needed between them.</p> -<p data-sourcepos="827:1-827:16" dir="auto">Simple examples:</p> +<p data-sourcepos="1021:1-1021:16" dir="auto">Simple examples:</p> +<div> +<div><a href="#example-50">Example 50</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="829:1-835:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo *bar*</span> +<pre data-sourcepos="1026:1-1032:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo *bar*</span> <span id="LC2" class="line" lang="plaintext">=========</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">Foo *bar*</span> @@ -734,40 +1247,49 @@ them.</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="837:1-840:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>Foo <em>bar</em></h1></span> +<pre data-sourcepos="1034:1-1037:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>Foo <em>bar</em></h1></span> <span id="LC2" class="line" lang="plaintext"><h2>Foo <em>bar</em></h2></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="843:1-843:54" dir="auto">The content of the header may span more than one line:</p> +</div> +<p data-sourcepos="1041:1-1041:54" dir="auto">The content of the header may span more than one line:</p> +<div> +<div><a href="#example-51">Example 51</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="845:1-849:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo *bar</span> +<pre data-sourcepos="1046:1-1050:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo *bar</span> <span id="LC2" class="line" lang="plaintext">baz*</span> <span id="LC3" class="line" lang="plaintext">====</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="851:1-854:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>Foo <em>bar</span> +<pre data-sourcepos="1052:1-1055:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>Foo <em>bar</span> <span id="LC2" class="line" lang="plaintext">baz</em></h1></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="856:1-859:13" dir="auto">The contents are the result of parsing the headings's raw +</div> +<p data-sourcepos="1058:1-1061:13" dir="auto">The contents are the result of parsing the headings's raw content as inlines. The heading's raw content is formed by concatenating the lines and removing initial and final [whitespace].</p> +<div> +<div><a href="#example-52">Example 52</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="861:1-865:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> Foo *bar</span> +<pre data-sourcepos="1066:1-1070:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> Foo *bar</span> <span id="LC2" class="line" lang="plaintext">baz*→</span> <span id="LC3" class="line" lang="plaintext">====</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="867:1-870:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>Foo <em>bar</span> +<pre data-sourcepos="1072:1-1075:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>Foo <em>bar</span> <span id="LC2" class="line" lang="plaintext">baz</em></h1></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="873:1-873:34" dir="auto">The underlining can be any length:</p> +</div> +<p data-sourcepos="1079:1-1079:34" dir="auto">The underlining can be any length:</p> +<div> +<div><a href="#example-53">Example 53</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="875:1-881:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> +<pre data-sourcepos="1084:1-1090:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> <span id="LC2" class="line" lang="plaintext">-------------------------</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">Foo</span> @@ -775,14 +1297,17 @@ concatenating the lines and removing initial and final <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="883:1-886:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>Foo</h2></span> +<pre data-sourcepos="1092:1-1095:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>Foo</h2></span> <span id="LC2" class="line" lang="plaintext"><h1>Foo</h1></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="889:1-890:33" dir="auto">The heading content can be indented up to three spaces, and need +</div> +<p data-sourcepos="1099:1-1100:33" dir="auto">The heading content can be indented up to three spaces, and need not line up with the underlining:</p> +<div> +<div><a href="#example-54">Example 54</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="892:1-901:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> Foo</span> +<pre data-sourcepos="1105:1-1114:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> Foo</span> <span id="LC2" class="line" lang="plaintext">---</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext"> Foo</span> @@ -793,14 +1318,17 @@ not line up with the underlining:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="903:1-907:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>Foo</h2></span> +<pre data-sourcepos="1116:1-1120:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>Foo</h2></span> <span id="LC2" class="line" lang="plaintext"><h2>Foo</h2></span> <span id="LC3" class="line" lang="plaintext"><h1>Foo</h1></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="910:1-910:31" dir="auto">Four spaces indent is too much:</p> +</div> +<p data-sourcepos="1124:1-1124:31" dir="auto">Four spaces indent is too much:</p> +<div> +<div><a href="#example-55">Example 55</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="912:1-918:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> Foo</span> +<pre data-sourcepos="1129:1-1135:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> Foo</span> <span id="LC2" class="line" lang="plaintext"> ---</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext"> Foo</span> @@ -808,7 +1336,7 @@ not line up with the underlining:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="920:1-927:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>Foo</span> +<pre data-sourcepos="1137:1-1144:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>Foo</span> <span id="LC2" class="line" lang="plaintext">---</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">Foo</span> @@ -816,31 +1344,40 @@ not line up with the underlining:</p> <span id="LC6" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="930:1-931:25" dir="auto">The setext heading underline can be indented up to three spaces, and +</div> +<p data-sourcepos="1148:1-1149:25" dir="auto">The setext heading underline can be indented up to three spaces, and may have trailing spaces:</p> +<div> +<div><a href="#example-56">Example 56</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="933:1-936:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> +<pre data-sourcepos="1154:1-1157:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> <span id="LC2" class="line" lang="plaintext"> ---- </span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="938:1-940:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>Foo</h2></span></code></pre> +<pre data-sourcepos="1159:1-1161:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>Foo</h2></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="943:1-943:24" dir="auto">Four spaces is too much:</p> +</div> +<p data-sourcepos="1165:1-1165:24" dir="auto">Four spaces is too much:</p> +<div> +<div><a href="#example-57">Example 57</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="945:1-948:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> +<pre data-sourcepos="1170:1-1173:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> <span id="LC2" class="line" lang="plaintext"> ---</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="950:1-953:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> +<pre data-sourcepos="1175:1-1178:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> <span id="LC2" class="line" lang="plaintext">---</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="956:1-956:60" dir="auto">The setext heading underline cannot contain internal spaces:</p> +</div> +<p data-sourcepos="1182:1-1182:60" dir="auto">The setext heading underline cannot contain internal spaces:</p> +<div> +<div><a href="#example-58">Example 58</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="958:1-964:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> +<pre data-sourcepos="1187:1-1193:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> <span id="LC2" class="line" lang="plaintext">= =</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">Foo</span> @@ -848,36 +1385,45 @@ may have trailing spaces:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="966:1-971:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> +<pre data-sourcepos="1195:1-1200:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> <span id="LC2" class="line" lang="plaintext">= =</p></span> <span id="LC3" class="line" lang="plaintext"><p>Foo</p></span> <span id="LC4" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="974:1-974:62" dir="auto">Trailing spaces in the content line do not cause a line break:</p> +</div> +<p data-sourcepos="1204:1-1204:62" dir="auto">Trailing spaces in the content line do not cause a line break:</p> +<div> +<div><a href="#example-59">Example 59</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="976:1-979:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo </span> +<pre data-sourcepos="1209:1-1212:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo </span> <span id="LC2" class="line" lang="plaintext">-----</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="981:1-983:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>Foo</h2></span></code></pre> +<pre data-sourcepos="1214:1-1216:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>Foo</h2></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="986:1-986:32" dir="auto">Nor does a backslash at the end:</p> +</div> +<p data-sourcepos="1220:1-1220:32" dir="auto">Nor does a backslash at the end:</p> +<div> +<div><a href="#example-60">Example 60</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="988:1-991:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo\</span> +<pre data-sourcepos="1225:1-1228:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo\</span> <span id="LC2" class="line" lang="plaintext">----</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="993:1-995:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>Foo\</h2></span></code></pre> +<pre data-sourcepos="1230:1-1232:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>Foo\</h2></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="998:1-999:66" dir="auto">Since indicators of block structure take precedence over +</div> +<p data-sourcepos="1236:1-1237:66" dir="auto">Since indicators of block structure take precedence over indicators of inline structure, the following are setext headings:</p> +<div> +<div><a href="#example-61">Example 61</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1001:1-1009:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`Foo</span> +<pre data-sourcepos="1242:1-1250:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`Foo</span> <span id="LC2" class="line" lang="plaintext">----</span> <span id="LC3" class="line" lang="plaintext">`</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -887,70 +1433,85 @@ indicators of inline structure, the following are setext headings:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1011:1-1016:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>`Foo</h2></span> +<pre data-sourcepos="1252:1-1257:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>`Foo</h2></span> <span id="LC2" class="line" lang="plaintext"><p>`</p></span> <span id="LC3" class="line" lang="plaintext"><h2>&lt;a title=&quot;a lot</h2></span> <span id="LC4" class="line" lang="plaintext"><p>of dashes&quot;/&gt;</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1019:1-1020:36" dir="auto">The setext heading underline cannot be a [lazy continuation +</div> +<p data-sourcepos="1261:1-1262:36" dir="auto">The setext heading underline cannot be a [lazy continuation line] in a list item or block quote:</p> +<div> +<div><a href="#example-62">Example 62</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1022:1-1025:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> Foo</span> +<pre data-sourcepos="1267:1-1270:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> Foo</span> <span id="LC2" class="line" lang="plaintext">---</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1027:1-1032:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="1272:1-1277:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><p>Foo</p></span> <span id="LC3" class="line" lang="plaintext"></blockquote></span> <span id="LC4" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-63">Example 63</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1035:1-1039:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> foo</span> +<pre data-sourcepos="1284:1-1288:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> foo</span> <span id="LC2" class="line" lang="plaintext">bar</span> <span id="LC3" class="line" lang="plaintext">===</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1041:1-1047:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="1290:1-1296:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><p>foo</span> <span id="LC3" class="line" lang="plaintext">bar</span> <span id="LC4" class="line" lang="plaintext">===</p></span> <span id="LC5" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-64">Example 64</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1050:1-1053:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- Foo</span> +<pre data-sourcepos="1303:1-1306:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- Foo</span> <span id="LC2" class="line" lang="plaintext">---</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1055:1-1060:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="1308:1-1313:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>Foo</li></span> <span id="LC3" class="line" lang="plaintext"></ul></span> <span id="LC4" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1063:1-1065:25" dir="auto">A blank line is needed between a paragraph and a following +</div> +<p data-sourcepos="1317:1-1319:25" dir="auto">A blank line is needed between a paragraph and a following setext heading, since otherwise the paragraph becomes part of the heading's content:</p> +<div> +<div><a href="#example-65">Example 65</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1067:1-1071:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> +<pre data-sourcepos="1324:1-1328:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> <span id="LC2" class="line" lang="plaintext">Bar</span> <span id="LC3" class="line" lang="plaintext">---</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1073:1-1076:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>Foo</span> +<pre data-sourcepos="1330:1-1333:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>Foo</span> <span id="LC2" class="line" lang="plaintext">Bar</h2></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1079:1-1080:16" dir="auto">But in general a blank line is not required before or after +</div> +<p data-sourcepos="1337:1-1338:16" dir="auto">But in general a blank line is not required before or after setext headings:</p> +<div> +<div><a href="#example-66">Example 66</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1082:1-1089:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">---</span> +<pre data-sourcepos="1343:1-1350:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">---</span> <span id="LC2" class="line" lang="plaintext">Foo</span> <span id="LC3" class="line" lang="plaintext">---</span> <span id="LC4" class="line" lang="plaintext">Bar</span> @@ -959,104 +1520,125 @@ setext headings:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1091:1-1096:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span> +<pre data-sourcepos="1352:1-1357:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span> <span id="LC2" class="line" lang="plaintext"><h2>Foo</h2></span> <span id="LC3" class="line" lang="plaintext"><h2>Bar</h2></span> <span id="LC4" class="line" lang="plaintext"><p>Baz</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1099:1-1099:32" dir="auto">Setext headings cannot be empty:</p> +</div> +<p data-sourcepos="1361:1-1361:32" dir="auto">Setext headings cannot be empty:</p> +<div> +<div><a href="#example-67">Example 67</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1101:1-1104:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></span> +<pre data-sourcepos="1366:1-1369:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></span> <span id="LC2" class="line" lang="plaintext">====</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1106:1-1108:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>====</p></span></code></pre> +<pre data-sourcepos="1371:1-1373:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>====</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1111:1-1113:55" dir="auto">Setext heading text lines must not be interpretable as block +</div> +<p data-sourcepos="1377:1-1379:55" dir="auto">Setext heading text lines must not be interpretable as block constructs other than paragraphs. So, the line of dashes in these examples gets interpreted as a thematic break:</p> +<div> +<div><a href="#example-68">Example 68</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1115:1-1118:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">---</span> +<pre data-sourcepos="1384:1-1387:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">---</span> <span id="LC2" class="line" lang="plaintext">---</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1120:1-1123:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span> +<pre data-sourcepos="1389:1-1392:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr /></span> <span id="LC2" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-69">Example 69</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1126:1-1129:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> +<pre data-sourcepos="1399:1-1402:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> <span id="LC2" class="line" lang="plaintext">-----</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1131:1-1136:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="1404:1-1409:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>foo</li></span> <span id="LC3" class="line" lang="plaintext"></ul></span> <span id="LC4" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-70">Example 70</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1139:1-1142:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo</span> +<pre data-sourcepos="1416:1-1419:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo</span> <span id="LC2" class="line" lang="plaintext">---</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1144:1-1148:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>foo</span> +<pre data-sourcepos="1421:1-1425:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>foo</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span> <span id="LC3" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-71">Example 71</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1151:1-1154:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> foo</span> +<pre data-sourcepos="1432:1-1435:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> foo</span> <span id="LC2" class="line" lang="plaintext">-----</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1156:1-1161:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="1437:1-1442:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><p>foo</p></span> <span id="LC3" class="line" lang="plaintext"></blockquote></span> <span id="LC4" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1164:1-1165:22" dir="auto">If you want a heading with <code>> foo</code> as its literal text, you can +</div> +<p data-sourcepos="1446:1-1447:22" dir="auto">If you want a heading with <code>> foo</code> as its literal text, you can use backslash escapes:</p> +<div> +<div><a href="#example-72">Example 72</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1167:1-1170:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\> foo</span> +<pre data-sourcepos="1452:1-1455:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\> foo</span> <span id="LC2" class="line" lang="plaintext">------</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1172:1-1174:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>&gt; foo</h2></span></code></pre> +<pre data-sourcepos="1457:1-1459:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>&gt; foo</h2></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1177:1-1179:48" dir="auto"><strong>Compatibility note:</strong> Most existing Markdown implementations +</div> +<p data-sourcepos="1463:1-1465:48" dir="auto"><strong>Compatibility note:</strong> Most existing Markdown implementations do not allow the text of setext headings to span multiple lines. But there is no consensus about how to interpret</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1181:1-1186:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">Foo</span> +<pre data-sourcepos="1467:1-1472:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">Foo</span> <span id="LC2" class="line" lang="markdown"><span class="gh">bar</span></span> <span id="LC3" class="line" lang="markdown"><span class="gh">---</span></span> <span id="LC4" class="line" lang="markdown">baz</span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1188:1-1188:44" dir="auto">One can find four different interpretations:</p> -<ol data-sourcepos="1190:1-1194:0" dir="auto"> -<li data-sourcepos="1190:1-1190:50">paragraph "Foo", heading "bar", paragraph "baz"</li> -<li data-sourcepos="1191:1-1191:55">paragraph "Foo bar", thematic break, paragraph "baz"</li> -<li data-sourcepos="1192:1-1192:30">paragraph "Foo bar --- baz"</li> -<li data-sourcepos="1193:1-1194:0">heading "Foo bar", paragraph "baz"</li> +<p data-sourcepos="1474:1-1474:44" dir="auto">One can find four different interpretations:</p> +<ol data-sourcepos="1476:1-1480:0" dir="auto"> +<li data-sourcepos="1476:1-1476:50">paragraph "Foo", heading "bar", paragraph "baz"</li> +<li data-sourcepos="1477:1-1477:55">paragraph "Foo bar", thematic break, paragraph "baz"</li> +<li data-sourcepos="1478:1-1478:30">paragraph "Foo bar --- baz"</li> +<li data-sourcepos="1479:1-1480:0">heading "Foo bar", paragraph "baz"</li> </ol> -<p data-sourcepos="1195:1-1198:43" dir="auto">We find interpretation 4 most natural, and interpretation 4 +<p data-sourcepos="1481:1-1484:43" dir="auto">We find interpretation 4 most natural, and interpretation 4 increases the expressive power of CommonMark, by allowing multiline headings. Authors who want interpretation 1 can put a blank line after the first paragraph:</p> +<div> +<div><a href="#example-73">Example 73</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1200:1-1206:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> +<pre data-sourcepos="1489:1-1495:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">bar</span> <span id="LC4" class="line" lang="plaintext">---</span> @@ -1064,15 +1646,18 @@ put a blank line after the first paragraph:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1208:1-1212:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</p></span> +<pre data-sourcepos="1497:1-1501:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</p></span> <span id="LC2" class="line" lang="plaintext"><h2>bar</h2></span> <span id="LC3" class="line" lang="plaintext"><p>baz</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1215:1-1216:19" dir="auto">Authors who want interpretation 2 can put blank lines around +</div> +<p data-sourcepos="1505:1-1506:19" dir="auto">Authors who want interpretation 2 can put blank lines around the thematic break,</p> +<div> +<div><a href="#example-74">Example 74</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1218:1-1225:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> +<pre data-sourcepos="1511:1-1518:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> <span id="LC2" class="line" lang="plaintext">bar</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">---</span> @@ -1081,78 +1666,90 @@ the thematic break,</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1227:1-1232:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> +<pre data-sourcepos="1520:1-1525:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> <span id="LC2" class="line" lang="plaintext">bar</p></span> <span id="LC3" class="line" lang="plaintext"><hr /></span> <span id="LC4" class="line" lang="plaintext"><p>baz</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1235:1-1236:19" dir="auto">or use a thematic break that cannot count as a [setext heading +</div> +<p data-sourcepos="1529:1-1530:19" dir="auto">or use a thematic break that cannot count as a [setext heading underline], such as</p> +<div> +<div><a href="#example-75">Example 75</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1238:1-1243:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> +<pre data-sourcepos="1535:1-1540:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> <span id="LC2" class="line" lang="plaintext">bar</span> <span id="LC3" class="line" lang="plaintext">* * *</span> <span id="LC4" class="line" lang="plaintext">baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1245:1-1250:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> +<pre data-sourcepos="1542:1-1547:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> <span id="LC2" class="line" lang="plaintext">bar</p></span> <span id="LC3" class="line" lang="plaintext"><hr /></span> <span id="LC4" class="line" lang="plaintext"><p>baz</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1253:1-1253:60" dir="auto">Authors who want interpretation 3 can use backslash escapes:</p> +</div> +<p data-sourcepos="1551:1-1551:60" dir="auto">Authors who want interpretation 3 can use backslash escapes:</p> +<div> +<div><a href="#example-76">Example 76</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1255:1-1260:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> +<pre data-sourcepos="1556:1-1561:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> <span id="LC2" class="line" lang="plaintext">bar</span> <span id="LC3" class="line" lang="plaintext">\---</span> <span id="LC4" class="line" lang="plaintext">baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1262:1-1267:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> +<pre data-sourcepos="1563:1-1568:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> <span id="LC2" class="line" lang="plaintext">bar</span> <span id="LC3" class="line" lang="plaintext">---</span> <span id="LC4" class="line" lang="plaintext">baz</p></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="1270:1-1270:23" dir="auto"> +</div> +<h2 data-sourcepos="1572:1-1572:23" dir="auto"> <a id="user-content-indented-code-blocks" class="anchor" href="#indented-code-blocks" aria-hidden="true"></a>Indented code blocks</h2> -<p data-sourcepos="1272:1-1278:44" dir="auto">An <a href="@">indented code block</a> is composed of one or more +<p data-sourcepos="1574:1-1580:44" dir="auto">An <a href="@">indented code block</a> is composed of one or more [indented chunks] separated by blank lines. An <a href="@">indented chunk</a> is a sequence of non-blank lines, each indented four or more spaces. The contents of the code block are the literal contents of the lines, including trailing [line endings], minus four spaces of indentation. An indented code block has no [info string].</p> -<p data-sourcepos="1280:1-1283:11" dir="auto">An indented code block cannot interrupt a paragraph, so there must be +<p data-sourcepos="1582:1-1585:11" dir="auto">An indented code block cannot interrupt a paragraph, so there must be a blank line between a paragraph and a following indented code block. (A blank line is not needed, however, between a code block and a following paragraph.)</p> +<div> +<div><a href="#example-77">Example 77</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1285:1-1288:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> a simple</span> +<pre data-sourcepos="1590:1-1593:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> a simple</span> <span id="LC2" class="line" lang="plaintext"> indented code block</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1290:1-1294:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>a simple</span> +<pre data-sourcepos="1595:1-1599:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>a simple</span> <span id="LC2" class="line" lang="plaintext"> indented code block</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1297:1-1299:65" dir="auto">If there is any ambiguity between an interpretation of indentation +</div> +<p data-sourcepos="1603:1-1605:65" dir="auto">If there is any ambiguity between an interpretation of indentation as a code block and as indicating that material belongs to a [list item][list items], the list item interpretation takes precedence:</p> +<div> +<div><a href="#example-78">Example 78</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1301:1-1305:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - foo</span> +<pre data-sourcepos="1610:1-1614:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1307:1-1314:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="1616:1-1623:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>foo</p></span> <span id="LC4" class="line" lang="plaintext"><p>bar</p></span> @@ -1160,14 +1757,17 @@ item][list items], the list item interpretation takes precedence:</p> <span id="LC6" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-79">Example 79</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1317:1-1321:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. foo</span> +<pre data-sourcepos="1630:1-1634:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> - bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1323:1-1332:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> +<pre data-sourcepos="1636:1-1645:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>foo</p></span> <span id="LC4" class="line" lang="plaintext"><ul></span> @@ -1177,26 +1777,32 @@ item][list items], the list item interpretation takes precedence:</p> <span id="LC8" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1336:1-1337:12" dir="auto">The contents of a code block are literal text, and do not get parsed +</div> +<p data-sourcepos="1650:1-1651:12" dir="auto">The contents of a code block are literal text, and do not get parsed as Markdown:</p> +<div> +<div><a href="#example-80">Example 80</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1339:1-1344:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> <a/></span> +<pre data-sourcepos="1656:1-1661:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> <a/></span> <span id="LC2" class="line" lang="plaintext"> *hi*</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext"> - one</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1346:1-1352:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>&lt;a/&gt;</span> +<pre data-sourcepos="1663:1-1669:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>&lt;a/&gt;</span> <span id="LC2" class="line" lang="plaintext">*hi*</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">- one</span> <span id="LC5" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1355:1-1355:51" dir="auto">Here we have three chunks separated by blank lines:</p> +</div> +<p data-sourcepos="1673:1-1673:51" dir="auto">Here we have three chunks separated by blank lines:</p> +<div> +<div><a href="#example-81">Example 81</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1357:1-1365:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> chunk1</span> +<pre data-sourcepos="1678:1-1686:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> chunk1</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> chunk2</span> <span id="LC4" class="line" lang="plaintext"> </span> @@ -1206,7 +1812,7 @@ as Markdown:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1367:1-1376:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>chunk1</span> +<pre data-sourcepos="1688:1-1697:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>chunk1</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">chunk2</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -1216,52 +1822,64 @@ as Markdown:</p> <span id="LC8" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1379:1-1380:24" dir="auto">Any initial spaces beyond four will be included in the content, even +</div> +<p data-sourcepos="1701:1-1702:24" dir="auto">Any initial spaces beyond four will be included in the content, even in interior blank lines:</p> +<div> +<div><a href="#example-82">Example 82</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1382:1-1386:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> chunk1</span> +<pre data-sourcepos="1707:1-1711:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> chunk1</span> <span id="LC2" class="line" lang="plaintext"> </span> <span id="LC3" class="line" lang="plaintext"> chunk2</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1388:1-1393:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>chunk1</span> +<pre data-sourcepos="1713:1-1718:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>chunk1</span> <span id="LC2" class="line" lang="plaintext"> </span> <span id="LC3" class="line" lang="plaintext"> chunk2</span> <span id="LC4" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1396:1-1397:37" dir="auto">An indented code block cannot interrupt a paragraph. (This +</div> +<p data-sourcepos="1722:1-1723:37" dir="auto">An indented code block cannot interrupt a paragraph. (This allows hanging indents and the like.)</p> +<div> +<div><a href="#example-83">Example 83</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1399:1-1403:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> +<pre data-sourcepos="1728:1-1732:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> <span id="LC2" class="line" lang="plaintext"> bar</span> <span id="LC3" class="line" lang="plaintext"></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1405:1-1408:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> +<pre data-sourcepos="1734:1-1737:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> <span id="LC2" class="line" lang="plaintext">bar</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1411:1-1413:20" dir="auto">However, any non-blank line with fewer than four leading spaces ends +</div> +<p data-sourcepos="1741:1-1743:20" dir="auto">However, any non-blank line with fewer than four leading spaces ends the code block immediately. So a paragraph may occur immediately after indented code:</p> +<div> +<div><a href="#example-84">Example 84</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1415:1-1418:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo</span> +<pre data-sourcepos="1748:1-1751:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo</span> <span id="LC2" class="line" lang="plaintext">bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1420:1-1424:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>foo</span> +<pre data-sourcepos="1753:1-1757:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>foo</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span> <span id="LC3" class="line" lang="plaintext"><p>bar</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1427:1-1428:7" dir="auto">And indented code can occur immediately before and after other kinds of +</div> +<p data-sourcepos="1761:1-1762:7" dir="auto">And indented code can occur immediately before and after other kinds of blocks:</p> +<div> +<div><a href="#example-85">Example 85</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1430:1-1437:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># Heading</span> +<pre data-sourcepos="1767:1-1774:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># Heading</span> <span id="LC2" class="line" lang="plaintext"> foo</span> <span id="LC3" class="line" lang="plaintext">Heading</span> <span id="LC4" class="line" lang="plaintext">------</span> @@ -1270,7 +1888,7 @@ blocks:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1439:1-1447:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>Heading</h1></span> +<pre data-sourcepos="1776:1-1784:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>Heading</h1></span> <span id="LC2" class="line" lang="plaintext"><pre><code>foo</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span> <span id="LC4" class="line" lang="plaintext"><h2>Heading</h2></span> @@ -1279,22 +1897,28 @@ blocks:</p> <span id="LC7" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1450:1-1450:53" dir="auto">The first line can be indented more than four spaces:</p> +</div> +<p data-sourcepos="1788:1-1788:53" dir="auto">The first line can be indented more than four spaces:</p> +<div> +<div><a href="#example-86">Example 86</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1452:1-1455:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo</span> +<pre data-sourcepos="1793:1-1796:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo</span> <span id="LC2" class="line" lang="plaintext"> bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1457:1-1461:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code> foo</span> +<pre data-sourcepos="1798:1-1802:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code> foo</span> <span id="LC2" class="line" lang="plaintext">bar</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1464:1-1465:23" dir="auto">Blank lines preceding or following an indented code block +</div> +<p data-sourcepos="1806:1-1807:23" dir="auto">Blank lines preceding or following an indented code block are not included in it:</p> +<div> +<div><a href="#example-87">Example 87</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1467:1-1473:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></span> +<pre data-sourcepos="1812:1-1818:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></span> <span id="LC2" class="line" lang="plaintext"> </span> <span id="LC3" class="line" lang="plaintext"> foo</span> <span id="LC4" class="line" lang="plaintext"> </span> @@ -1302,35 +1926,39 @@ are not included in it:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1475:1-1478:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>foo</span> +<pre data-sourcepos="1820:1-1823:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>foo</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1481:1-1481:57" dir="auto">Trailing spaces are included in the code block's content:</p> +</div> +<p data-sourcepos="1827:1-1827:57" dir="auto">Trailing spaces are included in the code block's content:</p> +<div> +<div><a href="#example-88">Example 88</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1483:1-1485:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo </span></code></pre> +<pre data-sourcepos="1832:1-1834:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo </span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1487:1-1490:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>foo </span> +<pre data-sourcepos="1836:1-1839:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>foo </span> <span id="LC2" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="1494:1-1494:21" dir="auto"> +</div> +<h2 data-sourcepos="1844:1-1844:21" dir="auto"> <a id="user-content-fenced-code-blocks" class="anchor" href="#fenced-code-blocks" aria-hidden="true"></a>Fenced code blocks</h2> -<p data-sourcepos="1496:1-1500:61" dir="auto">A <a href="@">code fence</a> is a sequence +<p data-sourcepos="1846:1-1850:61" dir="auto">A <a href="@">code fence</a> is a sequence of at least three consecutive backtick characters (<code>`</code>) or tildes (<code>~</code>). (Tildes and backticks cannot be mixed.) A <a href="@">fenced code block</a> begins with a code fence, indented no more than three spaces.</p> -<p data-sourcepos="1502:1-1508:34" dir="auto">The line with the opening code fence may optionally contain some text +<p data-sourcepos="1852:1-1858:34" dir="auto">The line with the opening code fence may optionally contain some text following the code fence; this is trimmed of leading and trailing whitespace and called the <a href="@">info string</a>. If the [info string] comes after a backtick fence, it may not contain any backtick characters. (The reason for this restriction is that otherwise some inline code would be incorrectly interpreted as the beginning of a fenced code block.)</p> -<p data-sourcepos="1510:1-1517:43" dir="auto">The content of the code block consists of all subsequent lines, until +<p data-sourcepos="1860:1-1867:43" dir="auto">The content of the code block consists of all subsequent lines, until a closing [code fence] of the same type as the code block began with (backticks or tildes), and with at least as many backticks or tildes as the opening code fence. If the leading code fence is @@ -1338,7 +1966,7 @@ indented N spaces, then up to N spaces of indentation are removed from each line of the content (if present). (If a content line is not indented, it is preserved unchanged. If it is indented less than N spaces, all of the indentation is removed.)</p> -<p data-sourcepos="1519:1-1527:25" dir="auto">The closing code fence may be indented up to three spaces, and may be +<p data-sourcepos="1869:1-1877:25" dir="auto">The closing code fence may be indented up to three spaces, and may be followed only by spaces, which are ignored. If the end of the containing block (or document) is reached and no closing code fence has been found, the code block contains all of the lines after the @@ -1347,188 +1975,229 @@ document). (An alternative spec would require backtracking in the event that a closing code fence is not found. But this makes parsing much less efficient, and there seems to be no real down side to the behavior described here.)</p> -<p data-sourcepos="1529:1-1530:36" dir="auto">A fenced code block may interrupt a paragraph, and does not require +<p data-sourcepos="1879:1-1880:36" dir="auto">A fenced code block may interrupt a paragraph, and does not require a blank line either before or after.</p> -<p data-sourcepos="1532:1-1536:42" dir="auto">The content of a code fence is treated as literal text, not parsed +<p data-sourcepos="1882:1-1886:42" dir="auto">The content of a code fence is treated as literal text, not parsed as inlines. The first word of the [info string] is typically used to specify the language of the code sample, and rendered in the <code>class</code> attribute of the <code>code</code> tag. However, this spec does not mandate any particular treatment of the [info string].</p> -<p data-sourcepos="1538:1-1538:40" dir="auto">Here is a simple example with backticks:</p> +<p data-sourcepos="1888:1-1888:40" dir="auto">Here is a simple example with backticks:</p> +<div> +<div><a href="#example-89">Example 89</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1540:1-1545:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span> +<pre data-sourcepos="1893:1-1898:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span> <span id="LC2" class="line" lang="plaintext"><</span> <span id="LC3" class="line" lang="plaintext"> ></span> <span id="LC4" class="line" lang="plaintext">```</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1547:1-1551:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>&lt;</span> +<pre data-sourcepos="1900:1-1904:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>&lt;</span> <span id="LC2" class="line" lang="plaintext"> &gt;</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1554:1-1554:12" dir="auto">With tildes:</p> +</div> +<p data-sourcepos="1908:1-1908:12" dir="auto">With tildes:</p> +<div> +<div><a href="#example-90">Example 90</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1556:1-1561:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~</span> +<pre data-sourcepos="1913:1-1918:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~</span> <span id="LC2" class="line" lang="plaintext"><</span> <span id="LC3" class="line" lang="plaintext"> ></span> <span id="LC4" class="line" lang="plaintext">~~~</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1563:1-1567:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>&lt;</span> +<pre data-sourcepos="1920:1-1924:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>&lt;</span> <span id="LC2" class="line" lang="plaintext"> &gt;</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1569:1-1569:41" dir="auto">Fewer than three backticks is not enough:</p> +</div> +<p data-sourcepos="1927:1-1927:41" dir="auto">Fewer than three backticks is not enough:</p> +<div> +<div><a href="#example-91">Example 91</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1571:1-1575:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``</span> +<pre data-sourcepos="1932:1-1936:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``</span> <span id="LC2" class="line" lang="plaintext">foo</span> <span id="LC3" class="line" lang="plaintext">``</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1577:1-1579:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo</code></p></span></code></pre> +<pre data-sourcepos="1938:1-1940:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo</code></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1581:1-1582:6" dir="auto">The closing code fence must use the same character as the opening +</div> +<p data-sourcepos="1943:1-1944:6" dir="auto">The closing code fence must use the same character as the opening fence:</p> +<div> +<div><a href="#example-92">Example 92</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1584:1-1589:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span> +<pre data-sourcepos="1949:1-1954:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span> <span id="LC2" class="line" lang="plaintext">aaa</span> <span id="LC3" class="line" lang="plaintext">~~~</span> <span id="LC4" class="line" lang="plaintext">```</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1591:1-1595:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> +<pre data-sourcepos="1956:1-1960:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> <span id="LC2" class="line" lang="plaintext">~~~</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-93">Example 93</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1598:1-1603:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~</span> +<pre data-sourcepos="1967:1-1972:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~</span> <span id="LC2" class="line" lang="plaintext">aaa</span> <span id="LC3" class="line" lang="plaintext">```</span> <span id="LC4" class="line" lang="plaintext">~~~</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1605:1-1609:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> +<pre data-sourcepos="1974:1-1978:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> <span id="LC2" class="line" lang="plaintext">```</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1612:1-1612:69" dir="auto">The closing code fence must be at least as long as the opening fence:</p> +</div> +<p data-sourcepos="1982:1-1982:69" dir="auto">The closing code fence must be at least as long as the opening fence:</p> +<div> +<div><a href="#example-94">Example 94</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1614:1-1619:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">````</span> +<pre data-sourcepos="1987:1-1992:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">````</span> <span id="LC2" class="line" lang="plaintext">aaa</span> <span id="LC3" class="line" lang="plaintext">```</span> <span id="LC4" class="line" lang="plaintext">``````</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1621:1-1625:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> +<pre data-sourcepos="1994:1-1998:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> <span id="LC2" class="line" lang="plaintext">```</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-95">Example 95</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1628:1-1633:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~~</span> +<pre data-sourcepos="2005:1-2010:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~~</span> <span id="LC2" class="line" lang="plaintext">aaa</span> <span id="LC3" class="line" lang="plaintext">~~~</span> <span id="LC4" class="line" lang="plaintext">~~~~</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1635:1-1639:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> +<pre data-sourcepos="2012:1-2016:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> <span id="LC2" class="line" lang="plaintext">~~~</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1642:1-1643:74" dir="auto">Unclosed code blocks are closed by the end of the document +</div> +<p data-sourcepos="2020:1-2021:74" dir="auto">Unclosed code blocks are closed by the end of the document (or the enclosing [block quote][block quotes] or [list item][list items]):</p> +<div> +<div><a href="#example-96">Example 96</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1645:1-1647:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span></code></pre> +<pre data-sourcepos="2026:1-2028:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1649:1-1651:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code></code></pre></span></code></pre> +<pre data-sourcepos="2030:1-2032:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-97">Example 97</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1654:1-1659:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`````</span> +<pre data-sourcepos="2039:1-2044:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`````</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">```</span> <span id="LC4" class="line" lang="plaintext">aaa</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1661:1-1666:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code></span> +<pre data-sourcepos="2046:1-2051:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code></span> <span id="LC2" class="line" lang="plaintext">```</span> <span id="LC3" class="line" lang="plaintext">aaa</span> <span id="LC4" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-98">Example 98</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1669:1-1674:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> ```</span> +<pre data-sourcepos="2058:1-2063:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> ```</span> <span id="LC2" class="line" lang="plaintext">> aaa</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">bbb</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1676:1-1682:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="2065:1-2071:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><pre><code>aaa</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span> <span id="LC4" class="line" lang="plaintext"></blockquote></span> <span id="LC5" class="line" lang="plaintext"><p>bbb</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1685:1-1685:53" dir="auto">A code block can have all empty lines as its content:</p> +</div> +<p data-sourcepos="2075:1-2075:53" dir="auto">A code block can have all empty lines as its content:</p> +<div> +<div><a href="#example-99">Example 99</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1687:1-1692:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span> +<pre data-sourcepos="2080:1-2085:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> </span> <span id="LC4" class="line" lang="plaintext">```</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1694:1-1698:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code></span> +<pre data-sourcepos="2087:1-2091:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code></span> <span id="LC2" class="line" lang="plaintext"> </span> <span id="LC3" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1701:1-1701:26" dir="auto">A code block can be empty:</p> +</div> +<p data-sourcepos="2095:1-2095:26" dir="auto">A code block can be empty:</p> +<div> +<div><a href="#example-100">Example 100</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1703:1-1706:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span> +<pre data-sourcepos="2100:1-2103:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span> <span id="LC2" class="line" lang="plaintext">```</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1708:1-1710:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code></code></pre></span></code></pre> +<pre data-sourcepos="2105:1-2107:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1713:1-1715:11" dir="auto">Fences can be indented. If the opening fence is indented, +</div> +<p data-sourcepos="2111:1-2113:11" dir="auto">Fences can be indented. If the opening fence is indented, content lines will have equivalent opening indentation removed, if present:</p> +<div> +<div><a href="#example-101">Example 101</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1717:1-1722:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ```</span> +<pre data-sourcepos="2118:1-2123:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ```</span> <span id="LC2" class="line" lang="plaintext"> aaa</span> <span id="LC3" class="line" lang="plaintext">aaa</span> <span id="LC4" class="line" lang="plaintext">```</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1724:1-1728:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> +<pre data-sourcepos="2125:1-2129:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> <span id="LC2" class="line" lang="plaintext">aaa</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-102">Example 102</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1731:1-1737:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ```</span> +<pre data-sourcepos="2136:1-2142:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ```</span> <span id="LC2" class="line" lang="plaintext">aaa</span> <span id="LC3" class="line" lang="plaintext"> aaa</span> <span id="LC4" class="line" lang="plaintext">aaa</span> @@ -1536,14 +2205,17 @@ if present:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1739:1-1744:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> +<pre data-sourcepos="2144:1-2149:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> <span id="LC2" class="line" lang="plaintext">aaa</span> <span id="LC3" class="line" lang="plaintext">aaa</span> <span id="LC4" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-103">Example 103</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1747:1-1753:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ```</span> +<pre data-sourcepos="2156:1-2162:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ```</span> <span id="LC2" class="line" lang="plaintext"> aaa</span> <span id="LC3" class="line" lang="plaintext"> aaa</span> <span id="LC4" class="line" lang="plaintext"> aaa</span> @@ -1551,90 +2223,111 @@ if present:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1755:1-1760:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> +<pre data-sourcepos="2164:1-2169:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> <span id="LC2" class="line" lang="plaintext"> aaa</span> <span id="LC3" class="line" lang="plaintext">aaa</span> <span id="LC4" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1763:1-1763:56" dir="auto">Four spaces indentation produces an indented code block:</p> +</div> +<p data-sourcepos="2173:1-2173:56" dir="auto">Four spaces indentation produces an indented code block:</p> +<div> +<div><a href="#example-104">Example 104</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1765:1-1769:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ```</span> +<pre data-sourcepos="2178:1-2182:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ```</span> <span id="LC2" class="line" lang="plaintext"> aaa</span> <span id="LC3" class="line" lang="plaintext"> ```</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1771:1-1776:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>```</span> +<pre data-sourcepos="2184:1-2189:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>```</span> <span id="LC2" class="line" lang="plaintext">aaa</span> <span id="LC3" class="line" lang="plaintext">```</span> <span id="LC4" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1779:1-1780:41" dir="auto">Closing fences may be indented by 0-3 spaces, and their indentation +</div> +<p data-sourcepos="2193:1-2194:41" dir="auto">Closing fences may be indented by 0-3 spaces, and their indentation need not match that of the opening fence:</p> +<div> +<div><a href="#example-105">Example 105</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1782:1-1786:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span> +<pre data-sourcepos="2199:1-2203:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span> <span id="LC2" class="line" lang="plaintext">aaa</span> <span id="LC3" class="line" lang="plaintext"> ```</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1788:1-1791:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> +<pre data-sourcepos="2205:1-2208:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-106">Example 106</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1794:1-1798:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ```</span> +<pre data-sourcepos="2215:1-2219:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ```</span> <span id="LC2" class="line" lang="plaintext">aaa</span> <span id="LC3" class="line" lang="plaintext"> ```</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1800:1-1803:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> +<pre data-sourcepos="2221:1-2224:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1806:1-1806:61" dir="auto">This is not a closing fence, because it is indented 4 spaces:</p> +</div> +<p data-sourcepos="2228:1-2228:61" dir="auto">This is not a closing fence, because it is indented 4 spaces:</p> +<div> +<div><a href="#example-107">Example 107</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1808:1-1812:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span> +<pre data-sourcepos="2233:1-2237:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span> <span id="LC2" class="line" lang="plaintext">aaa</span> <span id="LC3" class="line" lang="plaintext"> ```</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1814:1-1818:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> +<pre data-sourcepos="2239:1-2243:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> <span id="LC2" class="line" lang="plaintext"> ```</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1822:1-1822:65" dir="auto">Code fences (opening and closing) cannot contain internal spaces:</p> +</div> +<p data-sourcepos="2248:1-2248:65" dir="auto">Code fences (opening and closing) cannot contain internal spaces:</p> +<div> +<div><a href="#example-108">Example 108</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1824:1-1827:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``` ```</span> +<pre data-sourcepos="2253:1-2256:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``` ```</span> <span id="LC2" class="line" lang="plaintext">aaa</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1829:1-1832:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code> </code></span> +<pre data-sourcepos="2258:1-2261:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code> </code></span> <span id="LC2" class="line" lang="plaintext">aaa</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-109">Example 109</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1835:1-1839:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~~~~</span> +<pre data-sourcepos="2268:1-2272:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~~~~</span> <span id="LC2" class="line" lang="plaintext">aaa</span> <span id="LC3" class="line" lang="plaintext">~~~ ~~</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1841:1-1845:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> +<pre data-sourcepos="2274:1-2278:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> <span id="LC2" class="line" lang="plaintext">~~~ ~~</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1848:1-1849:53" dir="auto">Fenced code blocks can interrupt paragraphs, and can be followed +</div> +<p data-sourcepos="2282:1-2283:53" dir="auto">Fenced code blocks can interrupt paragraphs, and can be followed directly by paragraphs, without a blank line between:</p> +<div> +<div><a href="#example-110">Example 110</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1851:1-1857:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span> +<pre data-sourcepos="2288:1-2294:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span> <span id="LC2" class="line" lang="plaintext">```</span> <span id="LC3" class="line" lang="plaintext">bar</span> <span id="LC4" class="line" lang="plaintext">```</span> @@ -1642,16 +2335,19 @@ directly by paragraphs, without a blank line between:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1859:1-1864:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</p></span> +<pre data-sourcepos="2296:1-2301:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</p></span> <span id="LC2" class="line" lang="plaintext"><pre><code>bar</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span> <span id="LC4" class="line" lang="plaintext"><p>baz</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1867:1-1868:34" dir="auto">Other blocks can also occur before and after fenced code blocks +</div> +<p data-sourcepos="2305:1-2306:34" dir="auto">Other blocks can also occur before and after fenced code blocks without an intervening blank line:</p> +<div> +<div><a href="#example-111">Example 111</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1870:1-1877:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span> +<pre data-sourcepos="2311:1-2318:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span> <span id="LC2" class="line" lang="plaintext">---</span> <span id="LC3" class="line" lang="plaintext">~~~</span> <span id="LC4" class="line" lang="plaintext">bar</span> @@ -1660,20 +2356,23 @@ without an intervening blank line:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1879:1-1884:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>foo</h2></span> +<pre data-sourcepos="2320:1-2325:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h2>foo</h2></span> <span id="LC2" class="line" lang="plaintext"><pre><code>bar</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span> <span id="LC4" class="line" lang="plaintext"><h1>baz</h1></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1887:1-1892:45" dir="auto">An [info string] can be provided after the opening code fence. +</div> +<p data-sourcepos="2329:1-2334:45" dir="auto">An [info string] can be provided after the opening code fence. Although this spec doesn't mandate any particular treatment of the info string, the first word is typically used to specify the language of the code block. In HTML output, the language is normally indicated by adding a class to the <code>code</code> element consisting of <code>language-</code> followed by the language name.</p> +<div> +<div><a href="#example-112">Example 112</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1894:1-1900:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```ruby</span> +<pre data-sourcepos="2339:1-2345:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```ruby</span> <span id="LC2" class="line" lang="plaintext">def foo(x)</span> <span id="LC3" class="line" lang="plaintext"> return 3</span> <span id="LC4" class="line" lang="plaintext">end</span> @@ -1681,14 +2380,17 @@ of <code>language-</code> followed by the language name.</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1902:1-1907:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code class="language-ruby">def foo(x)</span> +<pre data-sourcepos="2347:1-2352:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code class="language-ruby">def foo(x)</span> <span id="LC2" class="line" lang="plaintext"> return 3</span> <span id="LC3" class="line" lang="plaintext">end</span> <span id="LC4" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-113">Example 113</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1910:1-1916:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~~ ruby startline=3 $%@#$</span> +<pre data-sourcepos="2359:1-2365:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~~ ruby startline=3 $%@#$</span> <span id="LC2" class="line" lang="plaintext">def foo(x)</span> <span id="LC3" class="line" lang="plaintext"> return 3</span> <span id="LC4" class="line" lang="plaintext">end</span> @@ -1696,61 +2398,74 @@ of <code>language-</code> followed by the language name.</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1918:1-1923:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code class="language-ruby">def foo(x)</span> +<pre data-sourcepos="2367:1-2372:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code class="language-ruby">def foo(x)</span> <span id="LC2" class="line" lang="plaintext"> return 3</span> <span id="LC3" class="line" lang="plaintext">end</span> <span id="LC4" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-114">Example 114</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1926:1-1929:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">````;</span> +<pre data-sourcepos="2379:1-2382:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">````;</span> <span id="LC2" class="line" lang="plaintext">````</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1931:1-1933:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code class="language-;"></code></pre></span></code></pre> +<pre data-sourcepos="2384:1-2386:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code class="language-;"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1936:1-1936:65" dir="auto">[Info strings] for backtick code blocks cannot contain backticks:</p> +</div> +<p data-sourcepos="2390:1-2390:65" dir="auto">[Info strings] for backtick code blocks cannot contain backticks:</p> +<div> +<div><a href="#example-115">Example 115</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1938:1-1941:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``` aa ```</span> +<pre data-sourcepos="2395:1-2398:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``` aa ```</span> <span id="LC2" class="line" lang="plaintext">foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1943:1-1946:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>aa</code></span> +<pre data-sourcepos="2400:1-2403:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>aa</code></span> <span id="LC2" class="line" lang="plaintext">foo</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1949:1-1949:70" dir="auto">[Info strings] for tilde code blocks can contain backticks and tildes:</p> +</div> +<p data-sourcepos="2407:1-2407:70" dir="auto">[Info strings] for tilde code blocks can contain backticks and tildes:</p> +<div> +<div><a href="#example-116">Example 116</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1951:1-1955:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~ aa ``` ~~~</span> +<pre data-sourcepos="2412:1-2416:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~ aa ``` ~~~</span> <span id="LC2" class="line" lang="plaintext">foo</span> <span id="LC3" class="line" lang="plaintext">~~~</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1957:1-1960:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code class="language-aa">foo</span> +<pre data-sourcepos="2418:1-2421:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code class="language-aa">foo</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="1963:1-1963:47" dir="auto">Closing code fences cannot have [info strings]:</p> +</div> +<p data-sourcepos="2425:1-2425:47" dir="auto">Closing code fences cannot have [info strings]:</p> +<div> +<div><a href="#example-117">Example 117</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1965:1-1969:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span> +<pre data-sourcepos="2430:1-2434:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span> <span id="LC2" class="line" lang="plaintext">``` aaa</span> <span id="LC3" class="line" lang="plaintext">```</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="1971:1-1974:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>``` aaa</span> +<pre data-sourcepos="2436:1-2439:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>``` aaa</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="1978:1-1978:14" dir="auto"> +</div> +<h2 data-sourcepos="2444:1-2444:14" dir="auto"> <a id="user-content-html-blocks" class="anchor" href="#html-blocks" aria-hidden="true"></a>HTML blocks</h2> -<p data-sourcepos="1980:1-1981:53" dir="auto">An <a href="@">HTML block</a> is a group of lines that is treated +<p data-sourcepos="2446:1-2447:53" dir="auto">An <a href="@">HTML block</a> is a group of lines that is treated as raw HTML (and will not be escaped in HTML output).</p> -<p data-sourcepos="1983:1-1991:50" dir="auto">There are seven kinds of [HTML block], which can be defined by their +<p data-sourcepos="2449:1-2457:50" dir="auto">There are seven kinds of [HTML block], which can be defined by their start and end conditions. The block begins with a line that meets a <a href="@">start condition</a> (after up to three spaces optional indentation). It ends with the first subsequent line that meets a matching <a href="@">end @@ -1759,35 +2474,35 @@ the <a href="#container-blocks">container block</a> containing the current HTML block, if no line is encountered that meets the [end condition]. If the first line meets both the [start condition] and the [end condition], the block will contain just that line.</p> -<ol data-sourcepos="1993:1-2034:0" dir="auto"> -<li data-sourcepos="1993:1-1999:0"> -<p data-sourcepos="1993:5-1998:30"><strong>Start condition:</strong> line begins with the string <code><script</code>, +<ol data-sourcepos="2459:1-2500:0" dir="auto"> +<li data-sourcepos="2459:1-2465:0"> +<p data-sourcepos="2459:5-2464:30"><strong>Start condition:</strong> line begins with the string <code><script</code>, <code><pre</code>, or <code><style</code> (case-insensitive), followed by whitespace, the string <code>></code>, or the end of the line.<br> <strong>End condition:</strong> line contains an end tag <code></script></code>, <code></pre></code>, or <code></style></code> (case-insensitive; it need not match the start tag).</p> </li> -<li data-sourcepos="2000:1-2002:0"> -<p data-sourcepos="2000:5-2001:51"><strong>Start condition:</strong> line begins with the string <code><!--</code>.<br> +<li data-sourcepos="2466:1-2468:0"> +<p data-sourcepos="2466:5-2467:51"><strong>Start condition:</strong> line begins with the string <code><!--</code>.<br> <strong>End condition:</strong> line contains the string <code>--></code>.</p> </li> -<li data-sourcepos="2003:1-2005:0"> -<p data-sourcepos="2003:5-2004:49"><strong>Start condition:</strong> line begins with the string <code><?</code>.<br> +<li data-sourcepos="2469:1-2471:0"> +<p data-sourcepos="2469:5-2470:49"><strong>Start condition:</strong> line begins with the string <code><?</code>.<br> <strong>End condition:</strong> line contains the string <code>?></code>.</p> </li> -<li data-sourcepos="2006:1-2009:0"> -<p data-sourcepos="2006:5-2008:51"><strong>Start condition:</strong> line begins with the string <code><!</code> +<li data-sourcepos="2472:1-2475:0"> +<p data-sourcepos="2472:5-2474:51"><strong>Start condition:</strong> line begins with the string <code><!</code> followed by an uppercase ASCII letter.<br> <strong>End condition:</strong> line contains the character <code>></code>.</p> </li> -<li data-sourcepos="2010:1-2013:0"> -<p data-sourcepos="2010:5-2012:50"><strong>Start condition:</strong> line begins with the string +<li data-sourcepos="2476:1-2479:0"> +<p data-sourcepos="2476:5-2478:50"><strong>Start condition:</strong> line begins with the string <code><![CDATA[</code>.<br> <strong>End condition:</strong> line contains the string <code>]]></code>.</p> </li> -<li data-sourcepos="2014:1-2028:0"> -<p data-sourcepos="2014:5-2027:54"><strong>Start condition:</strong> line begins the string <code><</code> or <code></</code> +<li data-sourcepos="2480:1-2494:0"> +<p data-sourcepos="2480:5-2493:54"><strong>Start condition:</strong> line begins the string <code><</code> or <code></</code> followed by one of the strings (case-insensitive) <code>address</code>, <code>article</code>, <code>aside</code>, <code>base</code>, <code>basefont</code>, <code>blockquote</code>, <code>body</code>, <code>caption</code>, <code>center</code>, <code>col</code>, <code>colgroup</code>, <code>dd</code>, <code>details</code>, <code>dialog</code>, @@ -1802,25 +2517,27 @@ by [whitespace], the end of the line, the string <code>></code>, or the string <code>/></code>.<br> <strong>End condition:</strong> line is followed by a [blank line].</p> </li> -<li data-sourcepos="2029:1-2034:0"> -<p data-sourcepos="2029:5-2033:54"><strong>Start condition:</strong> line begins with a complete [open tag] +<li data-sourcepos="2495:1-2500:0"> +<p data-sourcepos="2495:5-2499:54"><strong>Start condition:</strong> line begins with a complete [open tag] (with any [tag name] other than <code>script</code>, <code>style</code>, or <code>pre</code>) or a complete [closing tag], followed only by [whitespace] or the end of the line.<br> <strong>End condition:</strong> line is followed by a [blank line].</p> </li> </ol> -<p data-sourcepos="2035:1-2040:19" dir="auto">HTML blocks continue until they are closed by their appropriate +<p data-sourcepos="2501:1-2506:19" dir="auto">HTML blocks continue until they are closed by their appropriate [end condition], or the last line of the document or other <a href="#container-blocks">container block</a>. This means any HTML <strong>within an HTML block</strong> that might otherwise be recognised as a start condition will be ignored by the parser and passed through as-is, without changing the parser's state.</p> -<p data-sourcepos="2042:1-2044:51" dir="auto">For instance, <code><pre></code> within a HTML block started by <code><table></code> will not affect +<p data-sourcepos="2508:1-2510:51" dir="auto">For instance, <code><pre></code> within a HTML block started by <code><table></code> will not affect the parser state; as the HTML block was started in by start condition 6, it will end at any blank line. This can be surprising:</p> +<div> +<div><a href="#example-118">Example 118</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2046:1-2054:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table><tr><td></span> +<pre data-sourcepos="2515:1-2523:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table><tr><td></span> <span id="LC2" class="line" lang="plaintext"><pre></span> <span id="LC3" class="line" lang="plaintext">**Hello**,</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -1830,7 +2547,7 @@ will end at any blank line. This can be surprising:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2056:1-2063:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table><tr><td></span> +<pre data-sourcepos="2525:1-2532:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table><tr><td></span> <span id="LC2" class="line" lang="plaintext"><pre></span> <span id="LC3" class="line" lang="plaintext">**Hello**,</span> <span id="LC4" class="line" lang="plaintext"><p><em>world</em>.</span> @@ -1838,17 +2555,20 @@ will end at any blank line. This can be surprising:</p> <span id="LC6" class="line" lang="plaintext"></td></tr></table></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2065:1-2067:55" dir="auto">In this case, the HTML block is terminated by the newline — the <code>**Hello**</code> +</div> +<p data-sourcepos="2535:1-2537:55" dir="auto">In this case, the HTML block is terminated by the newline — the <code>**Hello**</code> text remains verbatim — and regular parsing resumes, with a paragraph, emphasised <code>world</code> and inline and block HTML following.</p> -<p data-sourcepos="2069:1-2072:65" dir="auto">All types of [HTML blocks] except type 7 may interrupt +<p data-sourcepos="2539:1-2542:65" dir="auto">All types of [HTML blocks] except type 7 may interrupt a paragraph. Blocks of type 7 may not interrupt a paragraph. (This restriction is intended to prevent unwanted interpretation of long tags inside a wrapped paragraph as starting HTML blocks.)</p> -<p data-sourcepos="2074:1-2075:10" dir="auto">Some simple examples follow. Here are some basic HTML blocks +<p data-sourcepos="2544:1-2545:10" dir="auto">Some simple examples follow. Here are some basic HTML blocks of type 6:</p> +<div> +<div><a href="#example-119">Example 119</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2077:1-2087:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> +<pre data-sourcepos="2550:1-2560:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> <span id="LC2" class="line" lang="plaintext"> <tr></span> <span id="LC3" class="line" lang="plaintext"> <td></span> <span id="LC4" class="line" lang="plaintext"> hi</span> @@ -1860,7 +2580,7 @@ of type 6:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2089:1-2098:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> +<pre data-sourcepos="2562:1-2571:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> <span id="LC2" class="line" lang="plaintext"> <tr></span> <span id="LC3" class="line" lang="plaintext"> <td></span> <span id="LC4" class="line" lang="plaintext"> hi</span> @@ -1870,32 +2590,41 @@ of type 6:</p> <span id="LC8" class="line" lang="plaintext"><p>okay.</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-120">Example 120</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2101:1-2105:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> <div></span> +<pre data-sourcepos="2578:1-2582:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> <div></span> <span id="LC2" class="line" lang="plaintext"> *hello*</span> <span id="LC3" class="line" lang="plaintext"> <foo><a></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2107:1-2111:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> <div></span> +<pre data-sourcepos="2584:1-2588:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> <div></span> <span id="LC2" class="line" lang="plaintext"> *hello*</span> <span id="LC3" class="line" lang="plaintext"> <foo><a></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2114:1-2114:42" dir="auto">A block can also start with a closing tag:</p> +</div> +<p data-sourcepos="2592:1-2592:42" dir="auto">A block can also start with a closing tag:</p> +<div> +<div><a href="#example-121">Example 121</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2116:1-2119:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></div></span> +<pre data-sourcepos="2597:1-2600:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></div></span> <span id="LC2" class="line" lang="plaintext">*foo*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2121:1-2124:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></div></span> +<pre data-sourcepos="2602:1-2605:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></div></span> <span id="LC2" class="line" lang="plaintext">*foo*</span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2127:1-2127:68" dir="auto">Here we have two HTML blocks with a Markdown paragraph between them:</p> +</div> +<p data-sourcepos="2609:1-2609:68" dir="auto">Here we have two HTML blocks with a Markdown paragraph between them:</p> +<div> +<div><a href="#example-122">Example 122</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2129:1-2135:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><DIV CLASS="foo"></span> +<pre data-sourcepos="2614:1-2620:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><DIV CLASS="foo"></span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">*Markdown*</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -1903,198 +2632,243 @@ of type 6:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2137:1-2141:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><DIV CLASS="foo"></span> +<pre data-sourcepos="2622:1-2626:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><DIV CLASS="foo"></span> <span id="LC2" class="line" lang="plaintext"><p><em>Markdown</em></p></span> <span id="LC3" class="line" lang="plaintext"></DIV></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2144:1-2145:47" dir="auto">The tag on the first line can be partial, as long +</div> +<p data-sourcepos="2630:1-2631:47" dir="auto">The tag on the first line can be partial, as long as it is split where there would be whitespace:</p> +<div> +<div><a href="#example-123">Example 123</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2147:1-2151:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div id="foo"</span> +<pre data-sourcepos="2636:1-2640:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div id="foo"</span> <span id="LC2" class="line" lang="plaintext"> class="bar"></span> <span id="LC3" class="line" lang="plaintext"></div></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2153:1-2157:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div id="foo"</span> +<pre data-sourcepos="2642:1-2646:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div id="foo"</span> <span id="LC2" class="line" lang="plaintext"> class="bar"></span> <span id="LC3" class="line" lang="plaintext"></div></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-124">Example 124</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2160:1-2164:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div id="foo" class="bar</span> +<pre data-sourcepos="2653:1-2657:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div id="foo" class="bar</span> <span id="LC2" class="line" lang="plaintext"> baz"></span> <span id="LC3" class="line" lang="plaintext"></div></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2166:1-2170:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div id="foo" class="bar</span> +<pre data-sourcepos="2659:1-2663:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div id="foo" class="bar</span> <span id="LC2" class="line" lang="plaintext"> baz"></span> <span id="LC3" class="line" lang="plaintext"></div></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2173:1-2173:31" dir="auto">An open tag need not be closed:</p> +</div> +<p data-sourcepos="2667:1-2667:31" dir="auto">An open tag need not be closed:</p> +<div> +<div><a href="#example-125">Example 125</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2174:1-2179:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></span> +<pre data-sourcepos="2671:1-2676:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></span> <span id="LC2" class="line" lang="plaintext">*foo*</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">*bar*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2181:1-2185:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></span> +<pre data-sourcepos="2678:1-2682:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></span> <span id="LC2" class="line" lang="plaintext">*foo*</span> <span id="LC3" class="line" lang="plaintext"><p><em>bar</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2189:1-2190:17" dir="auto">A partial tag need not even be completed (garbage +</div> +<p data-sourcepos="2687:1-2688:17" dir="auto">A partial tag need not even be completed (garbage in, garbage out):</p> +<div> +<div><a href="#example-126">Example 126</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2192:1-2195:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div id="foo"</span> +<pre data-sourcepos="2693:1-2696:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div id="foo"</span> <span id="LC2" class="line" lang="plaintext">*hi*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2197:1-2200:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div id="foo"</span> +<pre data-sourcepos="2698:1-2701:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div id="foo"</span> <span id="LC2" class="line" lang="plaintext">*hi*</span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-127">Example 127</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2203:1-2206:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div class</span> +<pre data-sourcepos="2708:1-2711:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div class</span> <span id="LC2" class="line" lang="plaintext">foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2208:1-2211:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div class</span> +<pre data-sourcepos="2713:1-2716:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div class</span> <span id="LC2" class="line" lang="plaintext">foo</span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2214:1-2215:35" dir="auto">The initial tag doesn't even need to be a valid +</div> +<p data-sourcepos="2720:1-2721:35" dir="auto">The initial tag doesn't even need to be a valid tag, as long as it starts like one:</p> +<div> +<div><a href="#example-128">Example 128</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2217:1-2220:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div *???-&&&-<---</span> +<pre data-sourcepos="2726:1-2729:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div *???-&&&-<---</span> <span id="LC2" class="line" lang="plaintext">*foo*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2222:1-2225:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div *???-&&&-<---</span> +<pre data-sourcepos="2731:1-2734:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div *???-&&&-<---</span> <span id="LC2" class="line" lang="plaintext">*foo*</span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2228:1-2229:7" dir="auto">In type 6 blocks, the initial tag need not be on a line by +</div> +<p data-sourcepos="2738:1-2739:7" dir="auto">In type 6 blocks, the initial tag need not be on a line by itself:</p> +<div> +<div><a href="#example-129">Example 129</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2231:1-2233:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div><a href="bar">*foo*</a></div></span></code></pre> +<pre data-sourcepos="2744:1-2746:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div><a href="bar">*foo*</a></div></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2235:1-2237:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div><a href="bar">*foo*</a></div></span></code></pre> +<pre data-sourcepos="2748:1-2750:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div><a href="bar">*foo*</a></div></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-130">Example 130</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2240:1-2244:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table><tr><td></span> +<pre data-sourcepos="2757:1-2761:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table><tr><td></span> <span id="LC2" class="line" lang="plaintext">foo</span> <span id="LC3" class="line" lang="plaintext"></td></tr></table></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2246:1-2250:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table><tr><td></span> +<pre data-sourcepos="2763:1-2767:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table><tr><td></span> <span id="LC2" class="line" lang="plaintext">foo</span> <span id="LC3" class="line" lang="plaintext"></td></tr></table></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2253:1-2257:43" dir="auto">Everything until the next blank line or end of document +</div> +<p data-sourcepos="2771:1-2775:43" dir="auto">Everything until the next blank line or end of document gets included in the HTML block. So, in the following example, what looks like a Markdown code block is actually part of the HTML block, which continues until a blank line or the end of the document is reached:</p> +<div> +<div><a href="#example-131">Example 131</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2259:1-2264:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></div></span> +<pre data-sourcepos="2780:1-2785:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></div></span> <span id="LC2" class="line" lang="plaintext">``` c</span> <span id="LC3" class="line" lang="plaintext">int x = 33;</span> <span id="LC4" class="line" lang="plaintext">```</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2266:1-2271:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></div></span> +<pre data-sourcepos="2787:1-2792:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></div></span> <span id="LC2" class="line" lang="plaintext">``` c</span> <span id="LC3" class="line" lang="plaintext">int x = 33;</span> <span id="LC4" class="line" lang="plaintext">```</span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2274:1-2276:51" dir="auto">To start an [HTML block] with a tag that is <em>not</em> in the +</div> +<p data-sourcepos="2796:1-2798:51" dir="auto">To start an [HTML block] with a tag that is <em>not</em> in the list of block-level tags in (6), you must put the tag by itself on the first line (and it must be complete):</p> +<div> +<div><a href="#example-132">Example 132</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2278:1-2282:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="foo"></span> +<pre data-sourcepos="2803:1-2807:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="foo"></span> <span id="LC2" class="line" lang="plaintext">*bar*</span> <span id="LC3" class="line" lang="plaintext"></a></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2284:1-2288:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="foo"></span> +<pre data-sourcepos="2809:1-2813:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="foo"></span> <span id="LC2" class="line" lang="plaintext">*bar*</span> <span id="LC3" class="line" lang="plaintext"></a></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2291:1-2291:49" dir="auto">In type 7 blocks, the [tag name] can be anything:</p> +</div> +<p data-sourcepos="2817:1-2817:49" dir="auto">In type 7 blocks, the [tag name] can be anything:</p> +<div> +<div><a href="#example-133">Example 133</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2293:1-2297:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><Warning></span> +<pre data-sourcepos="2822:1-2826:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><Warning></span> <span id="LC2" class="line" lang="plaintext">*bar*</span> <span id="LC3" class="line" lang="plaintext"></Warning></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2299:1-2303:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><Warning></span> +<pre data-sourcepos="2828:1-2832:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><Warning></span> <span id="LC2" class="line" lang="plaintext">*bar*</span> <span id="LC3" class="line" lang="plaintext"></Warning></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-134">Example 134</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2306:1-2310:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><i class="foo"></span> +<pre data-sourcepos="2839:1-2843:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><i class="foo"></span> <span id="LC2" class="line" lang="plaintext">*bar*</span> <span id="LC3" class="line" lang="plaintext"></i></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2312:1-2316:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><i class="foo"></span> +<pre data-sourcepos="2845:1-2849:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><i class="foo"></span> <span id="LC2" class="line" lang="plaintext">*bar*</span> <span id="LC3" class="line" lang="plaintext"></i></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-135">Example 135</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2319:1-2322:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></ins></span> +<pre data-sourcepos="2856:1-2859:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></ins></span> <span id="LC2" class="line" lang="plaintext">*bar*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2324:1-2327:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></ins></span> +<pre data-sourcepos="2861:1-2864:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></ins></span> <span id="LC2" class="line" lang="plaintext">*bar*</span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2330:1-2334:59" dir="auto">These rules are designed to allow us to work with tags that +</div> +<p data-sourcepos="2868:1-2872:59" dir="auto">These rules are designed to allow us to work with tags that can function as either block-level or inline-level tags. The <code><del></code> tag is a nice example. We can surround content with <code><del></code> tags in three different ways. In this case, we get a raw HTML block, because the <code><del></code> tag is on a line by itself:</p> +<div> +<div><a href="#example-136">Example 136</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2336:1-2340:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><del></span> +<pre data-sourcepos="2877:1-2881:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><del></span> <span id="LC2" class="line" lang="plaintext">*foo*</span> <span id="LC3" class="line" lang="plaintext"></del></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2342:1-2346:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><del></span> +<pre data-sourcepos="2883:1-2887:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><del></span> <span id="LC2" class="line" lang="plaintext">*foo*</span> <span id="LC3" class="line" lang="plaintext"></del></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2349:1-2351:54" dir="auto">In this case, we get a raw HTML block that just includes +</div> +<p data-sourcepos="2891:1-2893:54" dir="auto">In this case, we get a raw HTML block that just includes the <code><del></code> tag (because it ends with the following blank line). So the contents get interpreted as CommonMark:</p> +<div> +<div><a href="#example-137">Example 137</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2353:1-2359:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><del></span> +<pre data-sourcepos="2898:1-2904:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><del></span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">*foo*</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -2102,32 +2876,38 @@ line). So the contents get interpreted as CommonMark:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2361:1-2365:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><del></span> +<pre data-sourcepos="2906:1-2910:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><del></span> <span id="LC2" class="line" lang="plaintext"><p><em>foo</em></p></span> <span id="LC3" class="line" lang="plaintext"></del></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2368:1-2371:29" dir="auto">Finally, in this case, the <code><del></code> tags are interpreted +</div> +<p data-sourcepos="2914:1-2917:29" dir="auto">Finally, in this case, the <code><del></code> tags are interpreted as [raw HTML] <em>inside</em> the CommonMark paragraph. (Because the tag is not on a line by itself, we get inline HTML rather than an [HTML block].)</p> +<div> +<div><a href="#example-138">Example 138</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2373:1-2375:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><del>*foo*</del></span></code></pre> +<pre data-sourcepos="2922:1-2924:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><del>*foo*</del></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2377:1-2379:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><del><em>foo</em></del></p></span></code></pre> +<pre data-sourcepos="2926:1-2928:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><del><em>foo</em></del></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2382:1-2387:50" dir="auto">HTML tags designed to contain literal content +</div> +<p data-sourcepos="2932:1-2937:50" dir="auto">HTML tags designed to contain literal content (<code>script</code>, <code>style</code>, <code>pre</code>), comments, processing instructions, and declarations are treated somewhat differently. Instead of ending at the first blank line, these blocks end at the first line containing a corresponding end tag. As a result, these blocks can contain blank lines:</p> -<p data-sourcepos="2389:1-2389:19" dir="auto">A pre tag (type 1):</p> +<p data-sourcepos="2939:1-2939:19" dir="auto">A pre tag (type 1):</p> +<div> +<div><a href="#example-139">Example 139</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2391:1-2399:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre language="haskell"><code></span> +<pre data-sourcepos="2944:1-2952:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre language="haskell"><code></span> <span id="LC2" class="line" lang="plaintext">import Text.HTML.TagSoup</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">main :: IO ()</span> @@ -2137,7 +2917,7 @@ As a result, these blocks can contain blank lines:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2401:1-2409:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre language="haskell"><code></span> +<pre data-sourcepos="2954:1-2962:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre language="haskell"><code></span> <span id="LC2" class="line" lang="plaintext">import Text.HTML.TagSoup</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">main :: IO ()</span> @@ -2146,9 +2926,12 @@ As a result, these blocks can contain blank lines:</p> <span id="LC7" class="line" lang="plaintext"><p>okay</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2412:1-2412:22" dir="auto">A script tag (type 1):</p> +</div> +<p data-sourcepos="2966:1-2966:22" dir="auto">A script tag (type 1):</p> +<div> +<div><a href="#example-140">Example 140</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2414:1-2421:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><script type="text/javascript"></span> +<pre data-sourcepos="2971:1-2978:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><script type="text/javascript"></span> <span id="LC2" class="line" lang="plaintext">// JavaScript example</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">document.getElementById("demo").innerHTML = "Hello JavaScript!";</span> @@ -2157,7 +2940,7 @@ As a result, these blocks can contain blank lines:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2423:1-2430:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><script type="text/javascript"></span> +<pre data-sourcepos="2980:1-2987:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><script type="text/javascript"></span> <span id="LC2" class="line" lang="plaintext">// JavaScript example</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">document.getElementById("demo").innerHTML = "Hello JavaScript!";</span> @@ -2165,9 +2948,12 @@ As a result, these blocks can contain blank lines:</p> <span id="LC6" class="line" lang="plaintext"><p>okay</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2433:1-2433:21" dir="auto">A style tag (type 1):</p> +</div> +<p data-sourcepos="2991:1-2991:21" dir="auto">A style tag (type 1):</p> +<div> +<div><a href="#example-141">Example 141</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2435:1-2443:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><style</span> +<pre data-sourcepos="2996:1-3004:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><style</span> <span id="LC2" class="line" lang="plaintext"> type="text/css"></span> <span id="LC3" class="line" lang="plaintext">h1 {color:red;}</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -2177,7 +2963,7 @@ As a result, these blocks can contain blank lines:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2445:1-2453:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><style</span> +<pre data-sourcepos="3006:1-3014:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><style</span> <span id="LC2" class="line" lang="plaintext"> type="text/css"></span> <span id="LC3" class="line" lang="plaintext">h1 {color:red;}</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -2186,45 +2972,54 @@ As a result, these blocks can contain blank lines:</p> <span id="LC7" class="line" lang="plaintext"><p>okay</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2456:1-2458:28" dir="auto">If there is no matching end tag, the block will end at the +</div> +<p data-sourcepos="3018:1-3020:28" dir="auto">If there is no matching end tag, the block will end at the end of the document (or the enclosing [block quote][block quotes] or [list item][list items]):</p> +<div> +<div><a href="#example-142">Example 142</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2460:1-2465:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><style</span> +<pre data-sourcepos="3025:1-3030:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><style</span> <span id="LC2" class="line" lang="plaintext"> type="text/css"></span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2467:1-2472:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><style</span> +<pre data-sourcepos="3032:1-3037:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><style</span> <span id="LC2" class="line" lang="plaintext"> type="text/css"></span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">foo</span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-143">Example 143</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2475:1-2480:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> <div></span> +<pre data-sourcepos="3044:1-3049:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> <div></span> <span id="LC2" class="line" lang="plaintext">> foo</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2482:1-2488:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="3051:1-3057:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><div></span> <span id="LC3" class="line" lang="plaintext">foo</span> <span id="LC4" class="line" lang="plaintext"></blockquote></span> <span id="LC5" class="line" lang="plaintext"><p>bar</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-144">Example 144</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2491:1-2494:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- <div></span> +<pre data-sourcepos="3064:1-3067:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- <div></span> <span id="LC2" class="line" lang="plaintext">- foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2496:1-2503:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="3069:1-3076:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><div></span> <span id="LC4" class="line" lang="plaintext"></li></span> @@ -2232,44 +3027,56 @@ or [list item][list items]):</p> <span id="LC6" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2506:1-2506:56" dir="auto">The end tag can occur on the same line as the start tag:</p> +</div> +<p data-sourcepos="3080:1-3080:56" dir="auto">The end tag can occur on the same line as the start tag:</p> +<div> +<div><a href="#example-145">Example 145</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2508:1-2511:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><style>p{color:red;}</style></span> +<pre data-sourcepos="3085:1-3088:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><style>p{color:red;}</style></span> <span id="LC2" class="line" lang="plaintext">*foo*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2513:1-2516:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><style>p{color:red;}</style></span> +<pre data-sourcepos="3090:1-3093:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><style>p{color:red;}</style></span> <span id="LC2" class="line" lang="plaintext"><p><em>foo</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-146">Example 146</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2519:1-2522:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><!-- foo -->*bar*</span> +<pre data-sourcepos="3100:1-3103:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><!-- foo -->*bar*</span> <span id="LC2" class="line" lang="plaintext">*baz*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2524:1-2527:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><!-- foo -->*bar*</span> +<pre data-sourcepos="3105:1-3108:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><!-- foo -->*bar*</span> <span id="LC2" class="line" lang="plaintext"><p><em>baz</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2530:1-2531:45" dir="auto">Note that anything on the last line after the +</div> +<p data-sourcepos="3112:1-3113:45" dir="auto">Note that anything on the last line after the end tag will be included in the [HTML block]:</p> +<div> +<div><a href="#example-147">Example 147</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2533:1-2537:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><script></span> +<pre data-sourcepos="3118:1-3122:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><script></span> <span id="LC2" class="line" lang="plaintext">foo</span> <span id="LC3" class="line" lang="plaintext"></script>1. *bar*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2539:1-2543:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><script></span> +<pre data-sourcepos="3124:1-3128:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><script></span> <span id="LC2" class="line" lang="plaintext">foo</span> <span id="LC3" class="line" lang="plaintext"></script>1. *bar*</span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2546:1-2546:19" dir="auto">A comment (type 2):</p> +</div> +<p data-sourcepos="3132:1-3132:19" dir="auto">A comment (type 2):</p> +<div> +<div><a href="#example-148">Example 148</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2548:1-2554:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><!-- Foo</span> +<pre data-sourcepos="3137:1-3143:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><!-- Foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">bar</span> <span id="LC4" class="line" lang="plaintext"> baz --></span> @@ -2277,16 +3084,19 @@ end tag will be included in the [HTML block]:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2556:1-2562:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><!-- Foo</span> +<pre data-sourcepos="3145:1-3151:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><!-- Foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">bar</span> <span id="LC4" class="line" lang="plaintext"> baz --></span> <span id="LC5" class="line" lang="plaintext"><p>okay</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2566:1-2566:34" dir="auto">A processing instruction (type 3):</p> +</div> +<p data-sourcepos="3156:1-3156:34" dir="auto">A processing instruction (type 3):</p> +<div> +<div><a href="#example-149">Example 149</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2568:1-2575:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><?php</span> +<pre data-sourcepos="3161:1-3168:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><?php</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> echo '>';</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -2295,7 +3105,7 @@ end tag will be included in the [HTML block]:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2577:1-2584:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><?php</span> +<pre data-sourcepos="3170:1-3177:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><?php</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> echo '>';</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -2303,18 +3113,24 @@ end tag will be included in the [HTML block]:</p> <span id="LC6" class="line" lang="plaintext"><p>okay</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2587:1-2587:23" dir="auto">A declaration (type 4):</p> +</div> +<p data-sourcepos="3181:1-3181:23" dir="auto">A declaration (type 4):</p> +<div> +<div><a href="#example-150">Example 150</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2589:1-2591:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><!DOCTYPE html></span></code></pre> +<pre data-sourcepos="3186:1-3188:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><!DOCTYPE html></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2593:1-2595:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><!DOCTYPE html></span></code></pre> +<pre data-sourcepos="3190:1-3192:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><!DOCTYPE html></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2598:1-2598:15" dir="auto">CDATA (type 5):</p> +</div> +<p data-sourcepos="3196:1-3196:15" dir="auto">CDATA (type 5):</p> +<div> +<div><a href="#example-151">Example 151</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2600:1-2614:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><![CDATA[</span> +<pre data-sourcepos="3201:1-3215:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><![CDATA[</span> <span id="LC2" class="line" lang="plaintext">function matchwo(a,b)</span> <span id="LC3" class="line" lang="plaintext">{</span> <span id="LC4" class="line" lang="plaintext"> if (a < b && a < 0) then {</span> @@ -2330,7 +3146,7 @@ end tag will be included in the [HTML block]:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2616:1-2630:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><![CDATA[</span> +<pre data-sourcepos="3217:1-3231:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><![CDATA[</span> <span id="LC2" class="line" lang="plaintext">function matchwo(a,b)</span> <span id="LC3" class="line" lang="plaintext">{</span> <span id="LC4" class="line" lang="plaintext"> if (a < b && a < 0) then {</span> @@ -2345,96 +3161,112 @@ end tag will be included in the [HTML block]:</p> <span id="LC13" class="line" lang="plaintext"><p>okay</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2633:1-2633:54" dir="auto">The opening tag can be indented 1-3 spaces, but not 4:</p> +</div> +<p data-sourcepos="3235:1-3235:54" dir="auto">The opening tag can be indented 1-3 spaces, but not 4:</p> +<div> +<div><a href="#example-152">Example 152</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2635:1-2639:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> <!-- foo --></span> +<pre data-sourcepos="3240:1-3244:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> <!-- foo --></span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> <!-- foo --></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2641:1-2645:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> <!-- foo --></span> +<pre data-sourcepos="3246:1-3250:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> <!-- foo --></span> <span id="LC2" class="line" lang="plaintext"><pre><code>&lt;!-- foo --&gt;</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-153">Example 153</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2648:1-2652:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> <div></span> +<pre data-sourcepos="3257:1-3261:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> <div></span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> <div></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2654:1-2658:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> <div></span> +<pre data-sourcepos="3263:1-3267:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> <div></span> <span id="LC2" class="line" lang="plaintext"><pre><code>&lt;div&gt;</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2661:1-2662:25" dir="auto">An HTML block of types 1--6 can interrupt a paragraph, and need not be +</div> +<p data-sourcepos="3271:1-3272:25" dir="auto">An HTML block of types 1--6 can interrupt a paragraph, and need not be preceded by a blank line.</p> +<div> +<div><a href="#example-154">Example 154</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2664:1-2669:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> +<pre data-sourcepos="3277:1-3282:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> <span id="LC2" class="line" lang="plaintext"><div></span> <span id="LC3" class="line" lang="plaintext">bar</span> <span id="LC4" class="line" lang="plaintext"></div></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2671:1-2676:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</p></span> +<pre data-sourcepos="3284:1-3289:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</p></span> <span id="LC2" class="line" lang="plaintext"><div></span> <span id="LC3" class="line" lang="plaintext">bar</span> <span id="LC4" class="line" lang="plaintext"></div></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2679:1-2681:7" dir="auto">However, a following blank line is needed, except at the end of +</div> +<p data-sourcepos="3293:1-3295:7" dir="auto">However, a following blank line is needed, except at the end of a document, and except for blocks of types 1--5, [above][HTML block]:</p> +<div> +<div><a href="#example-155">Example 155</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2683:1-2688:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></span> +<pre data-sourcepos="3300:1-3305:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></span> <span id="LC2" class="line" lang="plaintext">bar</span> <span id="LC3" class="line" lang="plaintext"></div></span> <span id="LC4" class="line" lang="plaintext">*foo*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2690:1-2695:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></span> +<pre data-sourcepos="3307:1-3312:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></span> <span id="LC2" class="line" lang="plaintext">bar</span> <span id="LC3" class="line" lang="plaintext"></div></span> <span id="LC4" class="line" lang="plaintext">*foo*</span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2698:1-2698:51" dir="auto">HTML blocks of type 7 cannot interrupt a paragraph:</p> +</div> +<p data-sourcepos="3316:1-3316:51" dir="auto">HTML blocks of type 7 cannot interrupt a paragraph:</p> +<div> +<div><a href="#example-156">Example 156</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2700:1-2704:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> +<pre data-sourcepos="3321:1-3325:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> <span id="LC2" class="line" lang="plaintext"><a href="bar"></span> <span id="LC3" class="line" lang="plaintext">baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2706:1-2710:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> +<pre data-sourcepos="3327:1-3331:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> <span id="LC2" class="line" lang="plaintext"><a href="bar"></span> <span id="LC3" class="line" lang="plaintext">baz</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2713:1-2714:26" dir="auto">This rule differs from John Gruber's original Markdown syntax +</div> +<p data-sourcepos="3335:1-3336:26" dir="auto">This rule differs from John Gruber's original Markdown syntax specification, which says:</p> -<blockquote data-sourcepos="2716:1-2719:51" dir="auto"> -<p data-sourcepos="2716:3-2719:51">The only restrictions are that block-level HTML elements — +<blockquote data-sourcepos="3338:1-3341:51" dir="auto"> +<p data-sourcepos="3338:3-3341:51">The only restrictions are that block-level HTML elements — e.g. <code><div></code>, <code><table></code>, <code><pre></code>, <code><p></code>, etc. — must be separated from surrounding content by blank lines, and the start and end tags of the block should not be indented with tabs or spaces.</p> </blockquote> -<p data-sourcepos="2721:1-2722:5" dir="auto">In some ways Gruber's rule is more restrictive than the one given +<p data-sourcepos="3343:1-3344:5" dir="auto">In some ways Gruber's rule is more restrictive than the one given here:</p> -<ul data-sourcepos="2724:1-2728:0" dir="auto"> -<li data-sourcepos="2724:1-2724:61">It requires that an HTML block be preceded by a blank line.</li> -<li data-sourcepos="2725:1-2725:49">It does not allow the start tag to be indented.</li> -<li data-sourcepos="2726:1-2728:0">It requires a matching end tag, which it also does not allow to +<ul data-sourcepos="3346:1-3350:0" dir="auto"> +<li data-sourcepos="3346:1-3346:61">It requires that an HTML block be preceded by a blank line.</li> +<li data-sourcepos="3347:1-3347:49">It does not allow the start tag to be indented.</li> +<li data-sourcepos="3348:1-3350:0">It requires a matching end tag, which it also does not allow to be indented.</li> </ul> -<p data-sourcepos="2729:1-2730:34" dir="auto">Most Markdown implementations (including some of Gruber's own) do not +<p data-sourcepos="3351:1-3352:34" dir="auto">Most Markdown implementations (including some of Gruber's own) do not respect all of these restrictions.</p> -<p data-sourcepos="2732:1-2739:61" dir="auto">There is one respect, however, in which Gruber's rule is more liberal +<p data-sourcepos="3354:1-3361:61" dir="auto">There is one respect, however, in which Gruber's rule is more liberal than the one given here, since it allows blank lines to occur inside an HTML block. There are two reasons for disallowing them here. First, it removes the need to parse balanced tags, which is @@ -2442,9 +3274,11 @@ expensive and can require backtracking from the end of the document if no matching end tag is found. Second, it provides a very simple and flexible way of including Markdown content inside HTML tags: simply separate the Markdown from the HTML using blank lines:</p> -<p data-sourcepos="2741:1-2741:8" dir="auto">Compare:</p> +<p data-sourcepos="3363:1-3363:8" dir="auto">Compare:</p> +<div> +<div><a href="#example-157">Example 157</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2743:1-2749:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></span> +<pre data-sourcepos="3368:1-3374:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">*Emphasized* text.</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -2452,34 +3286,40 @@ simply separate the Markdown from the HTML using blank lines:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2751:1-2755:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></span> +<pre data-sourcepos="3376:1-3380:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></span> <span id="LC2" class="line" lang="plaintext"><p><em>Emphasized</em> text.</p></span> <span id="LC3" class="line" lang="plaintext"></div></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-158">Example 158</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2758:1-2762:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></span> +<pre data-sourcepos="3387:1-3391:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></span> <span id="LC2" class="line" lang="plaintext">*Emphasized* text.</span> <span id="LC3" class="line" lang="plaintext"></div></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2764:1-2768:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></span> +<pre data-sourcepos="3393:1-3397:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div></span> <span id="LC2" class="line" lang="plaintext">*Emphasized* text.</span> <span id="LC3" class="line" lang="plaintext"></div></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2771:1-2775:22" dir="auto">Some Markdown implementations have adopted a convention of +</div> +<p data-sourcepos="3401:1-3405:22" dir="auto">Some Markdown implementations have adopted a convention of interpreting content inside tags as text if the open tag has the attribute <code>markdown=1</code>. The rule given above seems a simpler and more elegant way of achieving the same expressive power, which is also much simpler to parse.</p> -<p data-sourcepos="2777:1-2780:59" dir="auto">The main potential drawback is that one can no longer paste HTML +<p data-sourcepos="3407:1-3410:59" dir="auto">The main potential drawback is that one can no longer paste HTML blocks into Markdown documents with 100% reliability. However, <em>in most cases</em> this will work fine, because the blank lines in HTML are usually followed by HTML block tags. For example:</p> +<div> +<div><a href="#example-159">Example 159</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2782:1-2794:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> +<pre data-sourcepos="3415:1-3427:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"><tr></span> <span id="LC4" class="line" lang="plaintext"></span> @@ -2493,7 +3333,7 @@ HTML are usually followed by HTML block tags. For example:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2796:1-2804:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> +<pre data-sourcepos="3429:1-3437:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> <span id="LC2" class="line" lang="plaintext"><tr></span> <span id="LC3" class="line" lang="plaintext"><td></span> <span id="LC4" class="line" lang="plaintext">Hi</span> @@ -2502,11 +3342,14 @@ HTML are usually followed by HTML block tags. For example:</p> <span id="LC7" class="line" lang="plaintext"></table></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2807:1-2809:23" dir="auto">There are problems, however, if the inner tags are indented +</div> +<p data-sourcepos="3441:1-3443:23" dir="auto">There are problems, however, if the inner tags are indented <em>and</em> separated by spaces, as then they will be interpreted as an indented code block:</p> +<div> +<div><a href="#example-160">Example 160</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2811:1-2823:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> +<pre data-sourcepos="3448:1-3460:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> <tr></span> <span id="LC4" class="line" lang="plaintext"></span> @@ -2520,7 +3363,7 @@ an indented code block:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2825:1-2834:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> +<pre data-sourcepos="3462:1-3471:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> <span id="LC2" class="line" lang="plaintext"> <tr></span> <span id="LC3" class="line" lang="plaintext"><pre><code>&lt;td&gt;</span> <span id="LC4" class="line" lang="plaintext"> Hi</span> @@ -2530,13 +3373,14 @@ an indented code block:</p> <span id="LC8" class="line" lang="plaintext"></table></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2837:1-2840:26" dir="auto">Fortunately, blank lines are usually not necessary and can be +</div> +<p data-sourcepos="3475:1-3478:26" dir="auto">Fortunately, blank lines are usually not necessary and can be deleted. The exception is inside <code><pre></code> tags, but as described [above][HTML blocks], raw HTML blocks starting with <code><pre></code> <em>can</em> contain blank lines.</p> -<h2 data-sourcepos="2842:1-2842:29" dir="auto"> +<h2 data-sourcepos="3480:1-3480:29" dir="auto"> <a id="user-content-link-reference-definitions" class="anchor" href="#link-reference-definitions" aria-hidden="true"></a>Link reference definitions</h2> -<p data-sourcepos="2844:1-2852:61" dir="auto">A <a href="@">link reference definition</a> +<p data-sourcepos="3482:1-3490:61" dir="auto">A <a href="@">link reference definition</a> consists of a [link label], indented up to three spaces, followed by a colon (<code>:</code>), optional [whitespace] (including up to one [line ending]), a [link destination], @@ -2545,24 +3389,29 @@ optional [whitespace] (including up to one title], which if it is present must be separated from the [link destination] by [whitespace]. No further [non-whitespace characters] may occur on the line.</p> -<p data-sourcepos="2854:1-2859:5" dir="auto">A [link reference definition] +<p data-sourcepos="3492:1-3497:5" dir="auto">A [link reference definition] does not correspond to a structural element of a document. Instead, it defines a label which can be used in [reference links] and reference-style [images] elsewhere in the document. [Link reference definitions] can come either before or after the links that use them.</p> +<div> +<div><a href="#example-161">Example 161</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2861:1-2865:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url "title"</span> +<pre data-sourcepos="3502:1-3506:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url "title"</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2867:1-2869:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">foo</a></p></span></code></pre> +<pre data-sourcepos="3508:1-3510:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">foo</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-162">Example 162</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2872:1-2878:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> [foo]: </span> +<pre data-sourcepos="3517:1-3523:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> [foo]: </span> <span id="LC2" class="line" lang="plaintext"> /url </span> <span id="LC3" class="line" lang="plaintext"> 'the title' </span> <span id="LC4" class="line" lang="plaintext"></span> @@ -2570,21 +3419,27 @@ them.</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2880:1-2882:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="the title">foo</a></p></span></code></pre> +<pre data-sourcepos="3525:1-3527:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="the title">foo</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-163">Example 163</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2885:1-2889:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[Foo*bar\]]:my_(url) 'title (with parens)'</span> +<pre data-sourcepos="3534:1-3538:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[Foo*bar\]]:my_(url) 'title (with parens)'</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[Foo*bar\]]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2891:1-2893:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="my_(url)" title="title (with parens)">Foo*bar]</a></p></span></code></pre> +<pre data-sourcepos="3540:1-3542:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="my_(url)" title="title (with parens)">Foo*bar]</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-164">Example 164</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2896:1-2902:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[Foo bar]:</span> +<pre data-sourcepos="3549:1-3555:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[Foo bar]:</span> <span id="LC2" class="line" lang="plaintext"><my url></span> <span id="LC3" class="line" lang="plaintext">'title'</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -2592,12 +3447,15 @@ them.</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2904:1-2906:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="my%20url" title="title">Foo bar</a></p></span></code></pre> +<pre data-sourcepos="3557:1-3559:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="my%20url" title="title">Foo bar</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2909:1-2909:41" dir="auto">The title may extend over multiple lines:</p> +</div> +<p data-sourcepos="3563:1-3563:41" dir="auto">The title may extend over multiple lines:</p> +<div> +<div><a href="#example-165">Example 165</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2911:1-2919:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url '</span> +<pre data-sourcepos="3568:1-3576:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url '</span> <span id="LC2" class="line" lang="plaintext">title</span> <span id="LC3" class="line" lang="plaintext">line1</span> <span id="LC4" class="line" lang="plaintext">line2</span> @@ -2607,16 +3465,19 @@ them.</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2921:1-2927:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="</span> +<pre data-sourcepos="3578:1-3584:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="</span> <span id="LC2" class="line" lang="plaintext">title</span> <span id="LC3" class="line" lang="plaintext">line1</span> <span id="LC4" class="line" lang="plaintext">line2</span> <span id="LC5" class="line" lang="plaintext">">foo</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2930:1-2930:43" dir="auto">However, it may not contain a [blank line]:</p> +</div> +<p data-sourcepos="3588:1-3588:43" dir="auto">However, it may not contain a [blank line]:</p> +<div> +<div><a href="#example-166">Example 166</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2932:1-2938:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url 'title</span> +<pre data-sourcepos="3593:1-3599:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url 'title</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">with blank line'</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -2624,178 +3485,223 @@ them.</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2940:1-2944:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo]: /url 'title</p></span> +<pre data-sourcepos="3601:1-3605:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo]: /url 'title</p></span> <span id="LC2" class="line" lang="plaintext"><p>with blank line'</p></span> <span id="LC3" class="line" lang="plaintext"><p>[foo]</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2947:1-2947:25" dir="auto">The title may be omitted:</p> +</div> +<p data-sourcepos="3609:1-3609:25" dir="auto">The title may be omitted:</p> +<div> +<div><a href="#example-167">Example 167</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2949:1-2954:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]:</span> +<pre data-sourcepos="3614:1-3619:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]:</span> <span id="LC2" class="line" lang="plaintext">/url</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">[foo]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2956:1-2958:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url">foo</a></p></span></code></pre> +<pre data-sourcepos="3621:1-3623:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url">foo</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2961:1-2961:40" dir="auto">The link destination may not be omitted:</p> +</div> +<p data-sourcepos="3627:1-3627:40" dir="auto">The link destination may not be omitted:</p> +<div> +<div><a href="#example-168">Example 168</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2963:1-2967:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]:</span> +<pre data-sourcepos="3632:1-3636:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]:</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2969:1-2972:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo]:</p></span> +<pre data-sourcepos="3638:1-3641:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo]:</p></span> <span id="LC2" class="line" lang="plaintext"><p>[foo]</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2974:2-2975:16" dir="auto">However, an empty link destination may be specified using +</div> +<p data-sourcepos="3644:2-3645:16" dir="auto">However, an empty link destination may be specified using angle brackets:</p> +<div> +<div><a href="#example-169">Example 169</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2977:1-2981:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: <></span> +<pre data-sourcepos="3650:1-3654:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: <></span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2983:1-2985:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="">foo</a></p></span></code></pre> +<pre data-sourcepos="3656:1-3658:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="">foo</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="2987:1-2988:11" dir="auto">The title must be separated from the link destination by +</div> +<p data-sourcepos="3661:1-3662:11" dir="auto">The title must be separated from the link destination by whitespace:</p> +<div> +<div><a href="#example-170">Example 170</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2990:1-2994:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: <bar>(baz)</span> +<pre data-sourcepos="3667:1-3671:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: <bar>(baz)</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="2996:1-2999:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo]: <bar>(baz)</p></span> +<pre data-sourcepos="3673:1-3676:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo]: <bar>(baz)</p></span> <span id="LC2" class="line" lang="plaintext"><p>[foo]</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3002:1-3003:24" dir="auto">Both title and destination can contain backslash escapes +</div> +<p data-sourcepos="3680:1-3681:24" dir="auto">Both title and destination can contain backslash escapes and literal backslashes:</p> +<div> +<div><a href="#example-171">Example 171</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3005:1-3009:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url\bar\*baz "foo\"bar\baz"</span> +<pre data-sourcepos="3686:1-3690:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url\bar\*baz "foo\"bar\baz"</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3011:1-3013:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url%5Cbar*baz" title="foo&quot;bar\baz">foo</a></p></span></code></pre> +<pre data-sourcepos="3692:1-3694:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url%5Cbar*baz" title="foo&quot;bar\baz">foo</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3016:1-3016:52" dir="auto">A link can come before its corresponding definition:</p> +</div> +<p data-sourcepos="3698:1-3698:52" dir="auto">A link can come before its corresponding definition:</p> +<div> +<div><a href="#example-172">Example 172</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3018:1-3022:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span> +<pre data-sourcepos="3703:1-3707:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: url</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3024:1-3026:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="url">foo</a></p></span></code></pre> +<pre data-sourcepos="3709:1-3711:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="url">foo</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3029:1-3030:11" dir="auto">If there are several matching definitions, the first one takes +</div> +<p data-sourcepos="3715:1-3716:11" dir="auto">If there are several matching definitions, the first one takes precedence:</p> +<div> +<div><a href="#example-173">Example 173</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3032:1-3037:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span> +<pre data-sourcepos="3721:1-3726:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: first</span> <span id="LC4" class="line" lang="plaintext">[foo]: second</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3039:1-3041:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="first">foo</a></p></span></code></pre> +<pre data-sourcepos="3728:1-3730:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="first">foo</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3044:1-3045:33" dir="auto">As noted in the section on [Links], matching of labels is +</div> +<p data-sourcepos="3734:1-3735:33" dir="auto">As noted in the section on [Links], matching of labels is case-insensitive (see [matches]).</p> +<div> +<div><a href="#example-174">Example 174</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3047:1-3051:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[FOO]: /url</span> +<pre data-sourcepos="3740:1-3744:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[FOO]: /url</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[Foo]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3053:1-3055:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url">Foo</a></p></span></code></pre> +<pre data-sourcepos="3746:1-3748:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url">Foo</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-175">Example 175</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3058:1-3062:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[ΑΓΩ]: /φου</span> +<pre data-sourcepos="3755:1-3759:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[ΑΓΩ]: /φου</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[αγω]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3064:1-3066:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/%CF%86%CE%BF%CF%85">αγω</a></p></span></code></pre> +<pre data-sourcepos="3761:1-3763:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/%CF%86%CE%BF%CF%85">αγω</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3069:1-3070:39" dir="auto">Here is a link reference definition with no corresponding link. +</div> +<p data-sourcepos="3767:1-3768:39" dir="auto">Here is a link reference definition with no corresponding link. It contributes nothing to the document.</p> +<div> +<div><a href="#example-176">Example 176</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3072:1-3074:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url</span></code></pre> +<pre data-sourcepos="3773:1-3775:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3076:1-3077:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code></code></pre> +<pre data-sourcepos="3777:1-3778:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3080:1-3080:20" dir="auto">Here is another one:</p> +</div> +<p data-sourcepos="3782:1-3782:20" dir="auto">Here is another one:</p> +<div> +<div><a href="#example-177">Example 177</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3082:1-3087:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[</span> +<pre data-sourcepos="3787:1-3792:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[</span> <span id="LC2" class="line" lang="plaintext">foo</span> <span id="LC3" class="line" lang="plaintext">]: /url</span> <span id="LC4" class="line" lang="plaintext">bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3089:1-3091:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>bar</p></span></code></pre> +<pre data-sourcepos="3794:1-3796:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>bar</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3094:1-3095:44" dir="auto">This is not a link reference definition, because there are +</div> +<p data-sourcepos="3800:1-3801:44" dir="auto">This is not a link reference definition, because there are [non-whitespace characters] after the title:</p> +<div> +<div><a href="#example-178">Example 178</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3097:1-3099:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url "title" ok</span></code></pre> +<pre data-sourcepos="3806:1-3808:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url "title" ok</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3101:1-3103:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo]: /url &quot;title&quot; ok</p></span></code></pre> +<pre data-sourcepos="3810:1-3812:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo]: /url &quot;title&quot; ok</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3106:1-3106:57" dir="auto">This is a link reference definition, but it has no title:</p> +</div> +<p data-sourcepos="3816:1-3816:57" dir="auto">This is a link reference definition, but it has no title:</p> +<div> +<div><a href="#example-179">Example 179</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3108:1-3111:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url</span> +<pre data-sourcepos="3821:1-3824:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url</span> <span id="LC2" class="line" lang="plaintext">"title" ok</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3113:1-3115:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&quot;title&quot; ok</p></span></code></pre> +<pre data-sourcepos="3826:1-3828:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&quot;title&quot; ok</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3118:1-3119:12" dir="auto">This is not a link reference definition, because it is indented +</div> +<p data-sourcepos="3832:1-3833:12" dir="auto">This is not a link reference definition, because it is indented four spaces:</p> +<div> +<div><a href="#example-180">Example 180</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3121:1-3125:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> [foo]: /url "title"</span> +<pre data-sourcepos="3838:1-3842:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> [foo]: /url "title"</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3127:1-3131:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>[foo]: /url &quot;title&quot;</span> +<pre data-sourcepos="3844:1-3848:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>[foo]: /url &quot;title&quot;</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span> <span id="LC3" class="line" lang="plaintext"><p>[foo]</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3134:1-3135:13" dir="auto">This is not a link reference definition, because it occurs inside +</div> +<p data-sourcepos="3852:1-3853:13" dir="auto">This is not a link reference definition, because it occurs inside a code block:</p> +<div> +<div><a href="#example-181">Example 181</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3137:1-3143:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span> +<pre data-sourcepos="3858:1-3864:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span> <span id="LC2" class="line" lang="plaintext">[foo]: /url</span> <span id="LC3" class="line" lang="plaintext">```</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -2803,67 +3709,82 @@ a code block:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3145:1-3149:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>[foo]: /url</span> +<pre data-sourcepos="3866:1-3870:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>[foo]: /url</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span> <span id="LC3" class="line" lang="plaintext"><p>[foo]</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3152:1-3152:59" dir="auto">A [link reference definition] cannot interrupt a paragraph.</p> +</div> +<p data-sourcepos="3874:1-3874:59" dir="auto">A [link reference definition] cannot interrupt a paragraph.</p> +<div> +<div><a href="#example-182">Example 182</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3154:1-3159:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> +<pre data-sourcepos="3879:1-3884:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> <span id="LC2" class="line" lang="plaintext">[bar]: /baz</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">[bar]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3161:1-3165:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> +<pre data-sourcepos="3886:1-3890:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</span> <span id="LC2" class="line" lang="plaintext">[bar]: /baz</p></span> <span id="LC3" class="line" lang="plaintext"><p>[bar]</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3168:1-3169:65" dir="auto">However, it can directly follow other block elements, such as headings +</div> +<p data-sourcepos="3894:1-3895:65" dir="auto">However, it can directly follow other block elements, such as headings and thematic breaks, and it need not be followed by a blank line.</p> +<div> +<div><a href="#example-183">Example 183</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3171:1-3175:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># [Foo]</span> +<pre data-sourcepos="3900:1-3904:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># [Foo]</span> <span id="LC2" class="line" lang="plaintext">[foo]: /url</span> <span id="LC3" class="line" lang="plaintext">> bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3177:1-3182:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1><a href="/url">Foo</a></h1></span> +<pre data-sourcepos="3906:1-3911:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1><a href="/url">Foo</a></h1></span> <span id="LC2" class="line" lang="plaintext"><blockquote></span> <span id="LC3" class="line" lang="plaintext"><p>bar</p></span> <span id="LC4" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-184">Example 184</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3184:1-3189:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url</span> +<pre data-sourcepos="3917:1-3922:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url</span> <span id="LC2" class="line" lang="plaintext">bar</span> <span id="LC3" class="line" lang="plaintext">===</span> <span id="LC4" class="line" lang="plaintext">[foo]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3191:1-3194:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>bar</h1></span> +<pre data-sourcepos="3924:1-3927:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h1>bar</h1></span> <span id="LC2" class="line" lang="plaintext"><p><a href="/url">foo</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-185">Example 185</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3196:1-3200:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url</span> +<pre data-sourcepos="3933:1-3937:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url</span> <span id="LC2" class="line" lang="plaintext">===</span> <span id="LC3" class="line" lang="plaintext">[foo]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3202:1-3205:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>===</span> +<pre data-sourcepos="3939:1-3942:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>===</span> <span id="LC2" class="line" lang="plaintext"><a href="/url">foo</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3208:1-3209:61" dir="auto">Several [link reference definitions] +</div> +<p data-sourcepos="3946:1-3947:61" dir="auto">Several [link reference definitions] can occur one after another, without intervening blank lines.</p> +<div> +<div><a href="#example-186">Example 186</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3211:1-3220:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /foo-url "foo"</span> +<pre data-sourcepos="3952:1-3961:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /foo-url "foo"</span> <span id="LC2" class="line" lang="plaintext">[bar]: /bar-url</span> <span id="LC3" class="line" lang="plaintext"> "bar"</span> <span id="LC4" class="line" lang="plaintext">[baz]: /baz-url</span> @@ -2874,63 +3795,75 @@ can occur one after another, without intervening blank lines.</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3222:1-3226:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/foo-url" title="foo">foo</a>,</span> +<pre data-sourcepos="3963:1-3967:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/foo-url" title="foo">foo</a>,</span> <span id="LC2" class="line" lang="plaintext"><a href="/bar-url" title="bar">bar</a>,</span> <span id="LC3" class="line" lang="plaintext"><a href="/baz-url">baz</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3229:1-3232:12" dir="auto">[Link reference definitions] can occur +</div> +<p data-sourcepos="3971:1-3974:12" dir="auto">[Link reference definitions] can occur inside block containers, like lists and block quotations. They affect the entire document, not just the container in which they are defined:</p> +<div> +<div><a href="#example-187">Example 187</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3234:1-3238:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span> +<pre data-sourcepos="3979:1-3983:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">> [foo]: /url</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3240:1-3244:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url">foo</a></p></span> +<pre data-sourcepos="3985:1-3989:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url">foo</a></p></span> <span id="LC2" class="line" lang="plaintext"><blockquote></span> <span id="LC3" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3247:1-3251:19" dir="auto">Whether something is a [link reference definition] is +</div> +<p data-sourcepos="3993:1-3997:19" dir="auto">Whether something is a [link reference definition] is independent of whether the link reference it defines is used in the document. Thus, for example, the following document contains just a link reference definition, and no visible content:</p> +<div> +<div><a href="#example-188">Example 188</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3253:1-3255:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url</span></code></pre> +<pre data-sourcepos="4002:1-4004:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3257:1-3258:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code></code></pre> +<pre data-sourcepos="4006:1-4007:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="3261:1-3261:13" dir="auto"> +</div> +<h2 data-sourcepos="4011:1-4011:13" dir="auto"> <a id="user-content-paragraphs" class="anchor" href="#paragraphs" aria-hidden="true"></a>Paragraphs</h2> -<p data-sourcepos="3263:1-3268:13" dir="auto">A sequence of non-blank lines that cannot be interpreted as other +<p data-sourcepos="4013:1-4018:13" dir="auto">A sequence of non-blank lines that cannot be interpreted as other kinds of blocks forms a <a href="@">paragraph</a>. The contents of the paragraph are the result of parsing the paragraph's raw content as inlines. The paragraph's raw content is formed by concatenating the lines and removing initial and final [whitespace].</p> -<p data-sourcepos="3270:1-3270:37" dir="auto">A simple example with two paragraphs:</p> +<p data-sourcepos="4020:1-4020:37" dir="auto">A simple example with two paragraphs:</p> +<div> +<div><a href="#example-189">Example 189</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3272:1-3276:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aaa</span> +<pre data-sourcepos="4025:1-4029:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aaa</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">bbb</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3278:1-3281:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aaa</p></span> +<pre data-sourcepos="4031:1-4034:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aaa</p></span> <span id="LC2" class="line" lang="plaintext"><p>bbb</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3284:1-3284:58" dir="auto">Paragraphs can contain multiple lines, but no blank lines:</p> +</div> +<p data-sourcepos="4038:1-4038:58" dir="auto">Paragraphs can contain multiple lines, but no blank lines:</p> +<div> +<div><a href="#example-190">Example 190</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3286:1-3292:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aaa</span> +<pre data-sourcepos="4043:1-4049:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aaa</span> <span id="LC2" class="line" lang="plaintext">bbb</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">ccc</span> @@ -2938,94 +3871,115 @@ is formed by concatenating the lines and removing initial and final <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3294:1-3299:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aaa</span> +<pre data-sourcepos="4051:1-4056:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aaa</span> <span id="LC2" class="line" lang="plaintext">bbb</p></span> <span id="LC3" class="line" lang="plaintext"><p>ccc</span> <span id="LC4" class="line" lang="plaintext">ddd</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3302:1-3302:54" dir="auto">Multiple blank lines between paragraph have no effect:</p> +</div> +<p data-sourcepos="4060:1-4060:54" dir="auto">Multiple blank lines between paragraph have no effect:</p> +<div> +<div><a href="#example-191">Example 191</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3304:1-3309:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aaa</span> +<pre data-sourcepos="4065:1-4070:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aaa</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">bbb</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3311:1-3314:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aaa</p></span> +<pre data-sourcepos="4072:1-4075:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aaa</p></span> <span id="LC2" class="line" lang="plaintext"><p>bbb</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3317:1-3317:27" dir="auto">Leading spaces are skipped:</p> +</div> +<p data-sourcepos="4079:1-4079:27" dir="auto">Leading spaces are skipped:</p> +<div> +<div><a href="#example-192">Example 192</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3319:1-3322:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> aaa</span> +<pre data-sourcepos="4084:1-4087:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> aaa</span> <span id="LC2" class="line" lang="plaintext"> bbb</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3324:1-3327:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aaa</span> +<pre data-sourcepos="4089:1-4092:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aaa</span> <span id="LC2" class="line" lang="plaintext">bbb</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3330:1-3331:40" dir="auto">Lines after the first may be indented any amount, since indented +</div> +<p data-sourcepos="4096:1-4097:40" dir="auto">Lines after the first may be indented any amount, since indented code blocks cannot interrupt paragraphs.</p> +<div> +<div><a href="#example-193">Example 193</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3333:1-3337:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aaa</span> +<pre data-sourcepos="4102:1-4106:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aaa</span> <span id="LC2" class="line" lang="plaintext"> bbb</span> <span id="LC3" class="line" lang="plaintext"> ccc</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3339:1-3343:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aaa</span> +<pre data-sourcepos="4108:1-4112:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aaa</span> <span id="LC2" class="line" lang="plaintext">bbb</span> <span id="LC3" class="line" lang="plaintext">ccc</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3346:1-3347:44" dir="auto">However, the first line may be indented at most three spaces, +</div> +<p data-sourcepos="4116:1-4117:44" dir="auto">However, the first line may be indented at most three spaces, or an indented code block will be triggered:</p> +<div> +<div><a href="#example-194">Example 194</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3349:1-3352:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> aaa</span> +<pre data-sourcepos="4122:1-4125:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> aaa</span> <span id="LC2" class="line" lang="plaintext">bbb</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3354:1-3357:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aaa</span> +<pre data-sourcepos="4127:1-4130:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aaa</span> <span id="LC2" class="line" lang="plaintext">bbb</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-195">Example 195</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3360:1-3363:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> aaa</span> +<pre data-sourcepos="4137:1-4140:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> aaa</span> <span id="LC2" class="line" lang="plaintext">bbb</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3365:1-3369:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> +<pre data-sourcepos="4142:1-4146:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>aaa</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span> <span id="LC3" class="line" lang="plaintext"><p>bbb</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3372:1-3374:7" dir="auto">Final spaces are stripped before inline parsing, so a paragraph +</div> +<p data-sourcepos="4150:1-4152:7" dir="auto">Final spaces are stripped before inline parsing, so a paragraph that ends with two or more spaces will not end with a [hard line break]:</p> +<div> +<div><a href="#example-196">Example 196</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3376:1-3379:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aaa </span> +<pre data-sourcepos="4157:1-4160:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aaa </span> <span id="LC2" class="line" lang="plaintext">bbb </span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3381:1-3384:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aaa<br /></span> +<pre data-sourcepos="4162:1-4165:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aaa<br /></span> <span id="LC2" class="line" lang="plaintext">bbb</p></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="3387:1-3387:14" dir="auto"> +</div> +<h2 data-sourcepos="4169:1-4169:14" dir="auto"> <a id="user-content-blank-lines" class="anchor" href="#blank-lines" aria-hidden="true"></a>Blank lines</h2> -<p data-sourcepos="3389:1-3391:22" dir="auto">[Blank lines] between block-level elements are ignored, +<p data-sourcepos="4171:1-4173:22" dir="auto">[Blank lines] between block-level elements are ignored, except for the role they play in determining whether a [list] is [tight] or [loose].</p> -<p data-sourcepos="3393:1-3393:70" dir="auto">Blank lines at the beginning and end of the document are also ignored.</p> +<p data-sourcepos="4175:1-4175:70" dir="auto">Blank lines at the beginning and end of the document are also ignored.</p> +<div> +<div><a href="#example-197">Example 197</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3395:1-3404:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> </span> +<pre data-sourcepos="4180:1-4189:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> </span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">aaa</span> <span id="LC4" class="line" lang="plaintext"> </span> @@ -3036,34 +3990,37 @@ is [tight] or [loose].</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3406:1-3409:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aaa</p></span> +<pre data-sourcepos="4191:1-4194:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aaa</p></span> <span id="LC2" class="line" lang="plaintext"><h1>aaa</h1></span></code></pre> <copy-code></copy-code> </div> +</div> <div> -<h2 data-sourcepos="3413:1-3413:21"> +<h2 data-sourcepos="4199:1-4199:21"> <a id="user-content-tables-extension" class="anchor" href="#tables-extension" aria-hidden="true"></a>Tables (extension)</h2> -<p data-sourcepos="3415:1-3416:10">GFM enables the <code>table</code> extension, where an additional leaf block type is +<p data-sourcepos="4201:1-4202:10">GFM enables the <code>table</code> extension, where an additional leaf block type is available.</p> -<p data-sourcepos="3418:1-3420:23">A <a href="@">table</a> is an arrangement of data with rows and columns, consisting of a +<p data-sourcepos="4204:1-4206:23">A <a href="@">table</a> is an arrangement of data with rows and columns, consisting of a single header row, a [delimiter row] separating the header from the data, and zero or more data rows.</p> -<p data-sourcepos="3422:1-3426:23">Each row consists of cells containing arbitrary text, in which [inlines] are +<p data-sourcepos="4208:1-4212:23">Each row consists of cells containing arbitrary text, in which [inlines] are parsed, separated by pipes (<code>|</code>). A leading and trailing pipe is also recommended for clarity of reading, and if there's otherwise parsing ambiguity. Spaces between pipes and cell content are trimmed. Block-level elements cannot be inserted in a table.</p> -<p data-sourcepos="3428:1-3430:40">The <a href="@">delimiter row</a> consists of cells whose only content are hyphens (<code>-</code>), +<p data-sourcepos="4214:1-4216:40">The <a href="@">delimiter row</a> consists of cells whose only content are hyphens (<code>-</code>), and optionally, a leading or trailing colon (<code>:</code>), or both, to indicate left, right, or center alignment respectively.</p> +<div> +<div><a href="#example-198">Example 198</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3432:1-3436:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| foo | bar |</span> +<pre data-sourcepos="4221:1-4225:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| foo | bar |</span> <span id="LC2" class="line" lang="plaintext">| --- | --- |</span> <span id="LC3" class="line" lang="plaintext">| baz | bim |</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3438:1-3453:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> +<pre data-sourcepos="4227:1-4242:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> <span id="LC2" class="line" lang="plaintext"><thead></span> <span id="LC3" class="line" lang="plaintext"><tr></span> <span id="LC4" class="line" lang="plaintext"><th>foo</th></span> @@ -3079,16 +4036,19 @@ right, or center alignment respectively.</p> <span id="LC14" class="line" lang="plaintext"></table></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3455:1-3456:74">Cells in one column don't need to match length, though it's easier to read if +</div> +<p data-sourcepos="4245:1-4246:74">Cells in one column don't need to match length, though it's easier to read if they are. Likewise, use of leading and trailing pipes may be inconsistent:</p> +<div> +<div><a href="#example-199">Example 199</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3458:1-3462:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | defghi |</span> +<pre data-sourcepos="4251:1-4255:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | defghi |</span> <span id="LC2" class="line" lang="plaintext">:-: | -----------:</span> <span id="LC3" class="line" lang="plaintext">bar | baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3464:1-3479:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> +<pre data-sourcepos="4257:1-4272:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> <span id="LC2" class="line" lang="plaintext"><thead></span> <span id="LC3" class="line" lang="plaintext"><tr></span> <span id="LC4" class="line" lang="plaintext"><th align="center">abc</th></span> @@ -3104,17 +4064,20 @@ they are. Likewise, use of leading and trailing pipes may be inconsistent:</p> <span id="LC14" class="line" lang="plaintext"></table></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3481:1-3482:13">Include a pipe in a cell's content by escaping it, including inside other +</div> +<p data-sourcepos="4275:1-4276:13">Include a pipe in a cell's content by escaping it, including inside other inline spans:</p> +<div> +<div><a href="#example-200">Example 200</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3484:1-3489:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| f\|oo |</span> +<pre data-sourcepos="4281:1-4286:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| f\|oo |</span> <span id="LC2" class="line" lang="plaintext">| ------ |</span> <span id="LC3" class="line" lang="plaintext">| b `\|` az |</span> <span id="LC4" class="line" lang="plaintext">| b **\|** im |</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3491:1-3507:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> +<pre data-sourcepos="4288:1-4304:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> <span id="LC2" class="line" lang="plaintext"><thead></span> <span id="LC3" class="line" lang="plaintext"><tr></span> <span id="LC4" class="line" lang="plaintext"><th>f|oo</th></span> @@ -3131,17 +4094,20 @@ inline spans:</p> <span id="LC15" class="line" lang="plaintext"></table></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3509:1-3510:22">The table is broken at the first empty line, or beginning of another +</div> +<p data-sourcepos="4307:1-4308:22">The table is broken at the first empty line, or beginning of another block-level structure:</p> +<div> +<div><a href="#example-201">Example 201</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3512:1-3517:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | def |</span> +<pre data-sourcepos="4313:1-4318:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | def |</span> <span id="LC2" class="line" lang="plaintext">| --- | --- |</span> <span id="LC3" class="line" lang="plaintext">| bar | baz |</span> <span id="LC4" class="line" lang="plaintext">> bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3519:1-3537:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> +<pre data-sourcepos="4320:1-4338:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> <span id="LC2" class="line" lang="plaintext"><thead></span> <span id="LC3" class="line" lang="plaintext"><tr></span> <span id="LC4" class="line" lang="plaintext"><th>abc</th></span> @@ -3160,8 +4126,11 @@ block-level structure:</p> <span id="LC17" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-202">Example 202</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3539:1-3546:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | def |</span> +<pre data-sourcepos="4344:1-4351:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | def |</span> <span id="LC2" class="line" lang="plaintext">| --- | --- |</span> <span id="LC3" class="line" lang="plaintext">| bar | baz |</span> <span id="LC4" class="line" lang="plaintext">bar</span> @@ -3170,7 +4139,7 @@ block-level structure:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3548:1-3568:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> +<pre data-sourcepos="4353:1-4373:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> <span id="LC2" class="line" lang="plaintext"><thead></span> <span id="LC3" class="line" lang="plaintext"><tr></span> <span id="LC4" class="line" lang="plaintext"><th>abc</th></span> @@ -3191,32 +4160,38 @@ block-level structure:</p> <span id="LC19" class="line" lang="plaintext"><p>bar</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3570:1-3571:31">The header row must match the [delimiter row] in the number of cells. If not, +</div> +<p data-sourcepos="4376:1-4377:31">The header row must match the [delimiter row] in the number of cells. If not, a table will not be recognized:</p> +<div> +<div><a href="#example-203">Example 203</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3573:1-3577:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | def |</span> +<pre data-sourcepos="4382:1-4386:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | def |</span> <span id="LC2" class="line" lang="plaintext">| --- |</span> <span id="LC3" class="line" lang="plaintext">| bar |</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3579:1-3583:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>| abc | def |</span> +<pre data-sourcepos="4388:1-4392:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>| abc | def |</span> <span id="LC2" class="line" lang="plaintext">| --- |</span> <span id="LC3" class="line" lang="plaintext">| bar |</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3585:1-3587:65">The remainder of the table's rows may vary in the number of cells. If there +</div> +<p data-sourcepos="4395:1-4397:65">The remainder of the table's rows may vary in the number of cells. If there are a number of cells fewer than the number of cells in the header row, empty cells are inserted. If there are greater, the excess is ignored:</p> +<div> +<div><a href="#example-204">Example 204</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3589:1-3594:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | def |</span> +<pre data-sourcepos="4402:1-4407:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | def |</span> <span id="LC2" class="line" lang="plaintext">| --- | --- |</span> <span id="LC3" class="line" lang="plaintext">| bar |</span> <span id="LC4" class="line" lang="plaintext">| bar | baz | boo |</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3596:1-3615:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> +<pre data-sourcepos="4409:1-4428:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> <span id="LC2" class="line" lang="plaintext"><thead></span> <span id="LC3" class="line" lang="plaintext"><tr></span> <span id="LC4" class="line" lang="plaintext"><th>abc</th></span> @@ -3236,14 +4211,17 @@ cells are inserted. If there are greater, the excess is ignored:</p> <span id="LC18" class="line" lang="plaintext"></table></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3617:1-3617:75">If there are no rows in the body, no <code><tbody></code> is generated in HTML output:</p> +</div> +<p data-sourcepos="4431:1-4431:75">If there are no rows in the body, no <code><tbody></code> is generated in HTML output:</p> +<div> +<div><a href="#example-205">Example 205</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3619:1-3622:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | def |</span> +<pre data-sourcepos="4436:1-4439:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | def |</span> <span id="LC2" class="line" lang="plaintext">| --- | --- |</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3624:1-3633:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> +<pre data-sourcepos="4441:1-4450:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><table></span> <span id="LC2" class="line" lang="plaintext"><thead></span> <span id="LC3" class="line" lang="plaintext"><tr></span> <span id="LC4" class="line" lang="plaintext"><th>abc</th></span> @@ -3254,39 +4232,40 @@ cells are inserted. If there are greater, the excess is ignored:</p> <copy-code></copy-code> </div> </div> -<h1 data-sourcepos="3637:1-3637:18" dir="auto"> +</div> +<h1 data-sourcepos="4455:1-4455:18" dir="auto"> <a id="user-content-container-blocks" class="anchor" href="#container-blocks" aria-hidden="true"></a>Container blocks</h1> -<p data-sourcepos="3639:1-3642:45" dir="auto">A <a href="#container-blocks">container block</a> is a block that has other +<p data-sourcepos="4457:1-4460:45" dir="auto">A <a href="#container-blocks">container block</a> is a block that has other blocks as its contents. There are two basic kinds of container blocks: [block quotes] and [list items]. [Lists] are meta-containers for [list items].</p> -<p data-sourcepos="3644:1-3645:26" dir="auto">We define the syntax for container blocks recursively. The general +<p data-sourcepos="4462:1-4463:26" dir="auto">We define the syntax for container blocks recursively. The general form of the definition is:</p> -<blockquote data-sourcepos="3647:1-3649:35" dir="auto"> -<p data-sourcepos="3647:3-3649:35">If X is a sequence of blocks, then the result of +<blockquote data-sourcepos="4465:1-4467:35" dir="auto"> +<p data-sourcepos="4465:3-4467:35">If X is a sequence of blocks, then the result of transforming X in such-and-such a way is a container of type Y with these blocks as its content.</p> </blockquote> -<p data-sourcepos="3651:1-3655:52" dir="auto">So, we explain what counts as a block quote or list item by explaining +<p data-sourcepos="4469:1-4473:52" dir="auto">So, we explain what counts as a block quote or list item by explaining how these can be <em>generated</em> from their contents. This should suffice to define the syntax, although it does not give a recipe for <em>parsing</em> these constructions. (A recipe is provided below in the section entitled <a href="#appendix-a-parsing-strategy">A parsing strategy</a>.)</p> -<h2 data-sourcepos="3657:1-3657:15" dir="auto"> +<h2 data-sourcepos="4475:1-4475:15" dir="auto"> <a id="user-content-block-quotes" class="anchor" href="#block-quotes" aria-hidden="true"></a>Block quotes</h2> -<p data-sourcepos="3659:1-3661:78" dir="auto">A <a href="@">block quote marker</a> +<p data-sourcepos="4477:1-4479:78" dir="auto">A <a href="@">block quote marker</a> consists of 0-3 spaces of initial indent, plus (a) the character <code>></code> together with a following space, or (b) a single character <code>></code> not followed by a space.</p> -<p data-sourcepos="3663:1-3663:42" dir="auto">The following rules define [block quotes]:</p> -<ol data-sourcepos="3665:1-3682:0" dir="auto"> -<li data-sourcepos="3665:1-3669:0"> -<p data-sourcepos="3665:5-3668:54"><strong>Basic case.</strong> If a string of lines <em>Ls</em> constitute a sequence +<p data-sourcepos="4481:1-4481:42" dir="auto">The following rules define [block quotes]:</p> +<ol data-sourcepos="4483:1-4500:0" dir="auto"> +<li data-sourcepos="4483:1-4487:0"> +<p data-sourcepos="4483:5-4486:54"><strong>Basic case.</strong> If a string of lines <em>Ls</em> constitute a sequence of blocks <em>Bs</em>, then the result of prepending a [block quote marker] to the beginning of each line in <em>Ls</em> is a <a href="#block-quotes">block quote</a> containing <em>Bs</em>.</p> </li> -<li data-sourcepos="3670:1-3679:0"> -<p data-sourcepos="3670:5-3678:48"><strong>Laziness.</strong> If a string of lines <em>Ls</em> constitute a <a href="#block-quotes">block +<li data-sourcepos="4488:1-4497:0"> +<p data-sourcepos="4488:5-4496:48"><strong>Laziness.</strong> If a string of lines <em>Ls</em> constitute a <a href="#block-quotes">block quote</a> with contents <em>Bs</em>, then the result of deleting the initial [block quote marker] from one or more lines in which the next [non-whitespace character] after the [block @@ -3296,138 +4275,161 @@ text] is a block quote with <em>Bs</em> as its content. that will be parsed as part of the content of a paragraph, but does not occur at the beginning of the paragraph.</p> </li> -<li data-sourcepos="3680:1-3682:0"> -<p data-sourcepos="3680:5-3681:65"><strong>Consecutiveness.</strong> A document cannot contain two [block +<li data-sourcepos="4498:1-4500:0"> +<p data-sourcepos="4498:5-4499:65"><strong>Consecutiveness.</strong> A document cannot contain two [block quotes] in a row unless there is a [blank line] between them.</p> </li> </ol> -<p data-sourcepos="3683:1-3683:54" dir="auto">Nothing else counts as a <a href="#block-quotes">block quote</a>.</p> -<p data-sourcepos="3685:1-3685:25" dir="auto">Here is a simple example:</p> +<p data-sourcepos="4501:1-4501:54" dir="auto">Nothing else counts as a <a href="#block-quotes">block quote</a>.</p> +<p data-sourcepos="4503:1-4503:25" dir="auto">Here is a simple example:</p> +<div> +<div><a href="#example-206">Example 206</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3687:1-3691:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> # Foo</span> +<pre data-sourcepos="4508:1-4512:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> # Foo</span> <span id="LC2" class="line" lang="plaintext">> bar</span> <span id="LC3" class="line" lang="plaintext">> baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3693:1-3699:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4514:1-4520:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><h1>Foo</h1></span> <span id="LC3" class="line" lang="plaintext"><p>bar</span> <span id="LC4" class="line" lang="plaintext">baz</p></span> <span id="LC5" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3702:1-3702:51" dir="auto">The spaces after the <code>></code> characters can be omitted:</p> +</div> +<p data-sourcepos="4524:1-4524:51" dir="auto">The spaces after the <code>></code> characters can be omitted:</p> +<div> +<div><a href="#example-207">Example 207</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3704:1-3708:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">># Foo</span> +<pre data-sourcepos="4529:1-4533:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">># Foo</span> <span id="LC2" class="line" lang="plaintext">>bar</span> <span id="LC3" class="line" lang="plaintext">> baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3710:1-3716:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4535:1-4541:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><h1>Foo</h1></span> <span id="LC3" class="line" lang="plaintext"><p>bar</span> <span id="LC4" class="line" lang="plaintext">baz</p></span> <span id="LC5" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3719:1-3719:46" dir="auto">The <code>></code> characters can be indented 1-3 spaces:</p> +</div> +<p data-sourcepos="4545:1-4545:46" dir="auto">The <code>></code> characters can be indented 1-3 spaces:</p> +<div> +<div><a href="#example-208">Example 208</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3721:1-3725:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> > # Foo</span> +<pre data-sourcepos="4550:1-4554:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> > # Foo</span> <span id="LC2" class="line" lang="plaintext"> > bar</span> <span id="LC3" class="line" lang="plaintext"> > baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3727:1-3733:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4556:1-4562:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><h1>Foo</h1></span> <span id="LC3" class="line" lang="plaintext"><p>bar</span> <span id="LC4" class="line" lang="plaintext">baz</p></span> <span id="LC5" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3736:1-3736:34" dir="auto">Four spaces gives us a code block:</p> +</div> +<p data-sourcepos="4566:1-4566:34" dir="auto">Four spaces gives us a code block:</p> +<div> +<div><a href="#example-209">Example 209</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3738:1-3742:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> > # Foo</span> +<pre data-sourcepos="4571:1-4575:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> > # Foo</span> <span id="LC2" class="line" lang="plaintext"> > bar</span> <span id="LC3" class="line" lang="plaintext"> > baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3744:1-3749:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>&gt; # Foo</span> +<pre data-sourcepos="4577:1-4582:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>&gt; # Foo</span> <span id="LC2" class="line" lang="plaintext">&gt; bar</span> <span id="LC3" class="line" lang="plaintext">&gt; baz</span> <span id="LC4" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3752:1-3753:30" dir="auto">The Laziness clause allows us to omit the <code>></code> before +</div> +<p data-sourcepos="4586:1-4587:30" dir="auto">The Laziness clause allows us to omit the <code>></code> before [paragraph continuation text]:</p> +<div> +<div><a href="#example-210">Example 210</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3755:1-3759:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> # Foo</span> +<pre data-sourcepos="4592:1-4596:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> # Foo</span> <span id="LC2" class="line" lang="plaintext">> bar</span> <span id="LC3" class="line" lang="plaintext">baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3761:1-3767:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4598:1-4604:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><h1>Foo</h1></span> <span id="LC3" class="line" lang="plaintext"><p>bar</span> <span id="LC4" class="line" lang="plaintext">baz</p></span> <span id="LC5" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3770:1-3771:19" dir="auto">A block quote can contain some lazy and some non-lazy +</div> +<p data-sourcepos="4608:1-4609:19" dir="auto">A block quote can contain some lazy and some non-lazy continuation lines:</p> +<div> +<div><a href="#example-211">Example 211</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3773:1-3777:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> bar</span> +<pre data-sourcepos="4614:1-4618:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> bar</span> <span id="LC2" class="line" lang="plaintext">baz</span> <span id="LC3" class="line" lang="plaintext">> foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3779:1-3785:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4620:1-4626:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><p>bar</span> <span id="LC3" class="line" lang="plaintext">baz</span> <span id="LC4" class="line" lang="plaintext">foo</p></span> <span id="LC5" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3788:1-3790:61" dir="auto">Laziness only applies to lines that would have been continuations of +</div> +<p data-sourcepos="4630:1-4632:61" dir="auto">Laziness only applies to lines that would have been continuations of paragraphs had they been prepended with [block quote markers]. For example, the <code>> </code> cannot be omitted in the second line of</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3792:1-3795:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">> foo</span></span> +<pre data-sourcepos="4634:1-4637:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">> foo</span></span> <span id="LC2" class="line" lang="markdown"><span class="gt">> ---</span></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3797:1-3797:29" dir="auto">without changing the meaning:</p> +<p data-sourcepos="4639:1-4639:29" dir="auto">without changing the meaning:</p> +<div> +<div><a href="#example-212">Example 212</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3799:1-3802:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> foo</span> +<pre data-sourcepos="4644:1-4647:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> foo</span> <span id="LC2" class="line" lang="plaintext">---</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3804:1-3809:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4649:1-4654:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><p>foo</p></span> <span id="LC3" class="line" lang="plaintext"></blockquote></span> <span id="LC4" class="line" lang="plaintext"><hr /></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3812:1-3812:52" dir="auto">Similarly, if we omit the <code>> </code> in the second line of</p> +</div> +<p data-sourcepos="4658:1-4658:52" dir="auto">Similarly, if we omit the <code>> </code> in the second line of</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3814:1-3817:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">> - foo</span></span> +<pre data-sourcepos="4660:1-4663:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">> - foo</span></span> <span id="LC2" class="line" lang="markdown"><span class="gt">> - bar</span></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3819:1-3819:47" dir="auto">then the block quote ends after the first line:</p> +<p data-sourcepos="4665:1-4665:47" dir="auto">then the block quote ends after the first line:</p> +<div> +<div><a href="#example-213">Example 213</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3821:1-3824:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> - foo</span> +<pre data-sourcepos="4670:1-4673:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> - foo</span> <span id="LC2" class="line" lang="plaintext">- bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3826:1-3835:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4675:1-4684:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><ul></span> <span id="LC3" class="line" lang="plaintext"><li>foo</li></span> <span id="LC4" class="line" lang="plaintext"></ul></span> @@ -3437,15 +4439,18 @@ For example, the <code>> </code> cannot be omitted in the second line of</p> <span id="LC8" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3838:1-3839:53" dir="auto">For the same reason, we can't omit the <code>> </code> in front of +</div> +<p data-sourcepos="4688:1-4689:53" dir="auto">For the same reason, we can't omit the <code>> </code> in front of subsequent lines of an indented or fenced code block:</p> +<div> +<div><a href="#example-214">Example 214</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3841:1-3844:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> foo</span> +<pre data-sourcepos="4694:1-4697:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> foo</span> <span id="LC2" class="line" lang="plaintext"> bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3846:1-3853:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4699:1-4706:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><pre><code>foo</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span> <span id="LC4" class="line" lang="plaintext"></blockquote></span> @@ -3453,86 +4458,104 @@ subsequent lines of an indented or fenced code block:</p> <span id="LC6" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-215">Example 215</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3856:1-3860:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> ```</span> +<pre data-sourcepos="4713:1-4717:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> ```</span> <span id="LC2" class="line" lang="plaintext">foo</span> <span id="LC3" class="line" lang="plaintext">```</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3862:1-3868:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4719:1-4725:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><pre><code></code></pre></span> <span id="LC3" class="line" lang="plaintext"></blockquote></span> <span id="LC4" class="line" lang="plaintext"><p>foo</p></span> <span id="LC5" class="line" lang="plaintext"><pre><code></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3871:1-3872:19" dir="auto">Note that in the following case, we have a [lazy +</div> +<p data-sourcepos="4729:1-4730:19" dir="auto">Note that in the following case, we have a [lazy continuation line]:</p> +<div> +<div><a href="#example-216">Example 216</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3874:1-3877:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> foo</span> +<pre data-sourcepos="4735:1-4738:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> foo</span> <span id="LC2" class="line" lang="plaintext"> - bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3879:1-3884:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4740:1-4745:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><p>foo</span> <span id="LC3" class="line" lang="plaintext">- bar</p></span> <span id="LC4" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3887:1-3887:24" dir="auto">To see why, note that in</p> +</div> +<p data-sourcepos="4749:1-4749:24" dir="auto">To see why, note that in</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3889:1-3892:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">> foo</span></span> +<pre data-sourcepos="4751:1-4754:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">> foo</span></span> <span id="LC2" class="line" lang="markdown"><span class="gt">> - bar</span></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3894:1-3896:61" dir="auto">the <code>- bar</code> is indented too far to start a list, and can't +<p data-sourcepos="4756:1-4758:61" dir="auto">the <code>- bar</code> is indented too far to start a list, and can't be an indented code block because indented code blocks cannot interrupt paragraphs, so it is [paragraph continuation text].</p> -<p data-sourcepos="3898:1-3898:27" dir="auto">A block quote can be empty:</p> +<p data-sourcepos="4760:1-4760:27" dir="auto">A block quote can be empty:</p> +<div> +<div><a href="#example-217">Example 217</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3900:1-3902:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">></span></code></pre> +<pre data-sourcepos="4765:1-4767:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3904:1-3907:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4769:1-4772:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-218">Example 218</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3910:1-3914:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">></span> +<pre data-sourcepos="4779:1-4783:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">></span> <span id="LC2" class="line" lang="plaintext">> </span> <span id="LC3" class="line" lang="plaintext">> </span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3916:1-3919:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4785:1-4788:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3922:1-3922:52" dir="auto">A block quote can have initial or final blank lines:</p> +</div> +<p data-sourcepos="4792:1-4792:52" dir="auto">A block quote can have initial or final blank lines:</p> +<div> +<div><a href="#example-219">Example 219</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3924:1-3928:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">></span> +<pre data-sourcepos="4797:1-4801:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">></span> <span id="LC2" class="line" lang="plaintext">> foo</span> <span id="LC3" class="line" lang="plaintext">> </span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3930:1-3934:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4803:1-4807:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><p>foo</p></span> <span id="LC3" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3937:1-3937:43" dir="auto">A blank line always separates block quotes:</p> +</div> +<p data-sourcepos="4811:1-4811:43" dir="auto">A blank line always separates block quotes:</p> +<div> +<div><a href="#example-220">Example 220</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3939:1-3943:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> foo</span> +<pre data-sourcepos="4816:1-4820:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">> bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3945:1-3952:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4822:1-4829:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><p>foo</p></span> <span id="LC3" class="line" lang="plaintext"></blockquote></span> <span id="LC4" class="line" lang="plaintext"><blockquote></span> @@ -3540,61 +4563,73 @@ interrupt paragraphs, so it is [paragraph continuation text].</p> <span id="LC6" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3955:1-3958:44" dir="auto">(Most current Markdown implementations, including John Gruber's +</div> +<p data-sourcepos="4833:1-4836:44" dir="auto">(Most current Markdown implementations, including John Gruber's original <code>Markdown.pl</code>, will parse this example as a single block quote with two paragraphs. But it seems better to allow the author to decide whether two block quotes or one are wanted.)</p> -<p data-sourcepos="3960:1-3961:28" dir="auto">Consecutiveness means that if we put these block quotes together, +<p data-sourcepos="4838:1-4839:28" dir="auto">Consecutiveness means that if we put these block quotes together, we get a single block quote:</p> +<div> +<div><a href="#example-221">Example 221</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3963:1-3966:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> foo</span> +<pre data-sourcepos="4844:1-4847:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> foo</span> <span id="LC2" class="line" lang="plaintext">> bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3968:1-3973:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4849:1-4854:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><p>foo</span> <span id="LC3" class="line" lang="plaintext">bar</p></span> <span id="LC4" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3976:1-3976:46" dir="auto">To get a block quote with two paragraphs, use:</p> +</div> +<p data-sourcepos="4858:1-4858:46" dir="auto">To get a block quote with two paragraphs, use:</p> +<div> +<div><a href="#example-222">Example 222</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3978:1-3982:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> foo</span> +<pre data-sourcepos="4863:1-4867:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> foo</span> <span id="LC2" class="line" lang="plaintext">></span> <span id="LC3" class="line" lang="plaintext">> bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3984:1-3989:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4869:1-4874:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><p>foo</p></span> <span id="LC3" class="line" lang="plaintext"><p>bar</p></span> <span id="LC4" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="3992:1-3992:38" dir="auto">Block quotes can interrupt paragraphs:</p> +</div> +<p data-sourcepos="4878:1-4878:38" dir="auto">Block quotes can interrupt paragraphs:</p> +<div> +<div><a href="#example-223">Example 223</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3994:1-3997:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span> +<pre data-sourcepos="4883:1-4886:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span> <span id="LC2" class="line" lang="plaintext">> bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="3999:1-4004:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</p></span> +<pre data-sourcepos="4888:1-4893:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</p></span> <span id="LC2" class="line" lang="plaintext"><blockquote></span> <span id="LC3" class="line" lang="plaintext"><p>bar</p></span> <span id="LC4" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4007:1-4008:7" dir="auto">In general, blank lines are not needed before or after block +</div> +<p data-sourcepos="4897:1-4898:7" dir="auto">In general, blank lines are not needed before or after block quotes:</p> +<div> +<div><a href="#example-224">Example 224</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4010:1-4014:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> aaa</span> +<pre data-sourcepos="4903:1-4907:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> aaa</span> <span id="LC2" class="line" lang="plaintext">***</span> <span id="LC3" class="line" lang="plaintext">> bbb</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4016:1-4024:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4909:1-4917:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><p>aaa</p></span> <span id="LC3" class="line" lang="plaintext"></blockquote></span> <span id="LC4" class="line" lang="plaintext"><hr /></span> @@ -3603,56 +4638,68 @@ quotes:</p> <span id="LC7" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4027:1-4028:40" dir="auto">However, because of laziness, a blank line is needed between +</div> +<p data-sourcepos="4921:1-4922:40" dir="auto">However, because of laziness, a blank line is needed between a block quote and a following paragraph:</p> +<div> +<div><a href="#example-225">Example 225</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4030:1-4033:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> bar</span> +<pre data-sourcepos="4927:1-4930:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> bar</span> <span id="LC2" class="line" lang="plaintext">baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4035:1-4040:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4932:1-4937:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><p>bar</span> <span id="LC3" class="line" lang="plaintext">baz</p></span> <span id="LC4" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-226">Example 226</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4043:1-4047:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> bar</span> +<pre data-sourcepos="4944:1-4948:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> bar</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4049:1-4054:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4950:1-4955:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><p>bar</p></span> <span id="LC3" class="line" lang="plaintext"></blockquote></span> <span id="LC4" class="line" lang="plaintext"><p>baz</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-227">Example 227</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4057:1-4061:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> bar</span> +<pre data-sourcepos="4962:1-4966:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> bar</span> <span id="LC2" class="line" lang="plaintext">></span> <span id="LC3" class="line" lang="plaintext">baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4063:1-4068:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4968:1-4973:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><p>bar</p></span> <span id="LC3" class="line" lang="plaintext"></blockquote></span> <span id="LC4" class="line" lang="plaintext"><p>baz</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4071:1-4073:19" dir="auto">It is a consequence of the Laziness rule that any number +</div> +<p data-sourcepos="4977:1-4979:19" dir="auto">It is a consequence of the Laziness rule that any number of initial <code>></code>s may be omitted on a continuation line of a nested block quote:</p> +<div> +<div><a href="#example-228">Example 228</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4075:1-4078:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> > > foo</span> +<pre data-sourcepos="4984:1-4987:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> > > foo</span> <span id="LC2" class="line" lang="plaintext">bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4080:1-4089:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="4989:1-4998:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><blockquote></span> <span id="LC3" class="line" lang="plaintext"><blockquote></span> <span id="LC4" class="line" lang="plaintext"><p>foo</span> @@ -3662,14 +4709,17 @@ nested block quote:</p> <span id="LC8" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-229">Example 229</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4092:1-4096:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">>>> foo</span> +<pre data-sourcepos="5005:1-5009:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">>>> foo</span> <span id="LC2" class="line" lang="plaintext">> bar</span> <span id="LC3" class="line" lang="plaintext">>>baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4098:1-4108:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="5011:1-5021:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><blockquote></span> <span id="LC3" class="line" lang="plaintext"><blockquote></span> <span id="LC4" class="line" lang="plaintext"><p>foo</span> @@ -3680,18 +4730,21 @@ nested block quote:</p> <span id="LC9" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4111:1-4114:8" dir="auto">When including an indented code block in a block quote, +</div> +<p data-sourcepos="5025:1-5028:8" dir="auto">When including an indented code block in a block quote, remember that the [block quote marker] includes both the <code>></code> and a following space. So <em>five spaces</em> are needed after the <code>></code>:</p> +<div> +<div><a href="#example-230">Example 230</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4116:1-4120:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> code</span> +<pre data-sourcepos="5033:1-5037:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> code</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">> not code</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4122:1-4130:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="5039:1-5047:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><pre><code>code</span> <span id="LC3" class="line" lang="plaintext"></code></pre></span> <span id="LC4" class="line" lang="plaintext"></blockquote></span> @@ -3700,21 +4753,22 @@ the <code>></code>:</p> <span id="LC7" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="4134:1-4134:13" dir="auto"> +</div> +<h2 data-sourcepos="5052:1-5052:13" dir="auto"> <a id="user-content-list-items" class="anchor" href="#list-items" aria-hidden="true"></a>List items</h2> -<p data-sourcepos="4136:1-4137:49" dir="auto">A <a href="@">list marker</a> is a +<p data-sourcepos="5054:1-5055:49" dir="auto">A <a href="@">list marker</a> is a [bullet list marker] or an [ordered list marker].</p> -<p data-sourcepos="4139:1-4140:32" dir="auto">A <a href="@">bullet list marker</a> +<p data-sourcepos="5057:1-5058:32" dir="auto">A <a href="@">bullet list marker</a> is a <code>-</code>, <code>+</code>, or <code>*</code> character.</p> -<p data-sourcepos="4142:1-4146:18" dir="auto">An <a href="@">ordered list marker</a> +<p data-sourcepos="5060:1-5064:18" dir="auto">An <a href="@">ordered list marker</a> is a sequence of 1--9 arabic digits (<code>0-9</code>), followed by either a <code>.</code> character or a <code>)</code> character. (The reason for the length limit is that with 10 digits we start seeing integer overflows in some browsers.)</p> -<p data-sourcepos="4148:1-4148:40" dir="auto">The following rules define [list items]:</p> -<ol data-sourcepos="4150:1-4169:0" dir="auto"> -<li data-sourcepos="4150:1-4169:0"> -<p data-sourcepos="4150:5-4158:45"><strong>Basic case.</strong> If a sequence of lines <em>Ls</em> constitute a sequence of +<p data-sourcepos="5066:1-5066:40" dir="auto">The following rules define [list items]:</p> +<ol data-sourcepos="5068:1-5087:0" dir="auto"> +<li data-sourcepos="5068:1-5087:0"> +<p data-sourcepos="5068:5-5076:45"><strong>Basic case.</strong> If a sequence of lines <em>Ls</em> constitute a sequence of blocks <em>Bs</em> starting with a [non-whitespace character], and <em>M</em> is a list marker of width <em>W</em> followed by 1 ≤ <em>N</em> ≤ 4 spaces, then the result of prepending <em>M</em> and the following spaces to the first line of @@ -3723,21 +4777,23 @@ list item with <em>Bs</em> as its contents. The type of the list item (bullet or ordered) is determined by the type of its list marker. If the list item is ordered, then it is also assigned a start number, based on the ordered list marker.</p> -<p data-sourcepos="4160:5-4160:15">Exceptions:</p> -<ol data-sourcepos="4162:5-4169:0"> -<li data-sourcepos="4162:5-4166:57">When the first list item in a [list] interrupts +<p data-sourcepos="5078:5-5078:15">Exceptions:</p> +<ol data-sourcepos="5080:5-5087:0"> +<li data-sourcepos="5080:5-5084:57">When the first list item in a [list] interrupts a paragraph---that is, when it starts on a line that would otherwise count as [paragraph continuation text]---then (a) the lines <em>Ls</em> must not begin with a blank line, and (b) if the list item is ordered, the start number must be 1.</li> -<li data-sourcepos="4167:5-4169:0">If any line is a [thematic break][thematic breaks] then +<li data-sourcepos="5085:5-5087:0">If any line is a [thematic break][thematic breaks] then that line is not a list item.</li> </ol> </li> </ol> -<p data-sourcepos="4170:1-4170:34" dir="auto">For example, let <em>Ls</em> be the lines</p> +<p data-sourcepos="5088:1-5088:34" dir="auto">For example, let <em>Ls</em> be the lines</p> +<div> +<div><a href="#example-231">Example 231</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4172:1-4179:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">A paragraph</span> +<pre data-sourcepos="5093:1-5100:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">A paragraph</span> <span id="LC2" class="line" lang="plaintext">with two lines.</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext"> indented code</span> @@ -3746,7 +4802,7 @@ that line is not a list item.</li> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4181:1-4189:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>A paragraph</span> +<pre data-sourcepos="5102:1-5110:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>A paragraph</span> <span id="LC2" class="line" lang="plaintext">with two lines.</p></span> <span id="LC3" class="line" lang="plaintext"><pre><code>indented code</span> <span id="LC4" class="line" lang="plaintext"></code></pre></span> @@ -3755,11 +4811,14 @@ that line is not a list item.</li> <span id="LC7" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4192:1-4194:30" dir="auto">And let <em>M</em> be the marker <code>1.</code>, and <em>N</em> = 2. Then rule #1 says +</div> +<p data-sourcepos="5114:1-5116:30" dir="auto">And let <em>M</em> be the marker <code>1.</code>, and <em>N</em> = 2. Then rule #1 says that the following is an ordered list item with start number 1, and the same contents as <em>Ls</em>:</p> +<div> +<div><a href="#example-232">Example 232</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4196:1-4203:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. A paragraph</span> +<pre data-sourcepos="5121:1-5128:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. A paragraph</span> <span id="LC2" class="line" lang="plaintext"> with two lines.</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext"> indented code</span> @@ -3768,7 +4827,7 @@ and the same contents as <em>Ls</em>:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4205:1-4217:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> +<pre data-sourcepos="5130:1-5142:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>A paragraph</span> <span id="LC4" class="line" lang="plaintext">with two lines.</p></span> @@ -3781,36 +4840,42 @@ and the same contents as <em>Ls</em>:</p> <span id="LC11" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4220:1-4226:5" dir="auto">The most important thing to notice is that the position of +</div> +<p data-sourcepos="5146:1-5152:5" dir="auto">The most important thing to notice is that the position of the text after the list marker determines how much indentation is needed in subsequent blocks in the list item. If the list marker takes up two spaces, and there are three spaces between the list marker and the next [non-whitespace character], then blocks must be indented five spaces in order to fall under the list item.</p> -<p data-sourcepos="4228:1-4229:24" dir="auto">Here are some examples showing how far content must be indented to be +<p data-sourcepos="5154:1-5155:24" dir="auto">Here are some examples showing how far content must be indented to be put under the list item:</p> +<div> +<div><a href="#example-233">Example 233</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4231:1-4235:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- one</span> +<pre data-sourcepos="5160:1-5164:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- one</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> two</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4237:1-4242:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="5166:1-5171:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>one</li></span> <span id="LC3" class="line" lang="plaintext"></ul></span> <span id="LC4" class="line" lang="plaintext"><p>two</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-234">Example 234</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4245:1-4249:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- one</span> +<pre data-sourcepos="5178:1-5182:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- one</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> two</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4251:1-4258:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="5184:1-5191:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>one</p></span> <span id="LC4" class="line" lang="plaintext"><p>two</p></span> @@ -3818,28 +4883,34 @@ put under the list item:</p> <span id="LC6" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-235">Example 235</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4261:1-4265:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - one</span> +<pre data-sourcepos="5198:1-5202:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - one</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> two</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4267:1-4273:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="5204:1-5210:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>one</li></span> <span id="LC3" class="line" lang="plaintext"></ul></span> <span id="LC4" class="line" lang="plaintext"><pre><code> two</span> <span id="LC5" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-236">Example 236</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4276:1-4280:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - one</span> +<pre data-sourcepos="5217:1-5221:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - one</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> two</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4282:1-4289:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="5223:1-5230:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>one</p></span> <span id="LC4" class="line" lang="plaintext"><p>two</p></span> @@ -3847,21 +4918,24 @@ put under the list item:</p> <span id="LC6" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4292:1-4298:13" dir="auto">It is tempting to think of this in terms of columns: the continuation +</div> +<p data-sourcepos="5234:1-5240:13" dir="auto">It is tempting to think of this in terms of columns: the continuation blocks must be indented at least to the column of the first [non-whitespace character] after the list marker. However, that is not quite right. The spaces after the list marker determine how much relative indentation is needed. Which column this indentation reaches will depend on how the list item is embedded in other constructions, as shown by this example:</p> +<div> +<div><a href="#example-237">Example 237</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4300:1-4304:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> > > 1. one</span> +<pre data-sourcepos="5245:1-5249:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> > > 1. one</span> <span id="LC2" class="line" lang="plaintext">>></span> <span id="LC3" class="line" lang="plaintext">>> two</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4306:1-4317:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="5251:1-5262:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><blockquote></span> <span id="LC3" class="line" lang="plaintext"><ol></span> <span id="LC4" class="line" lang="plaintext"><li></span> @@ -3873,21 +4947,24 @@ this example:</p> <span id="LC10" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4320:1-4322:67" dir="auto">Here <code>two</code> occurs in the same column as the list marker <code>1.</code>, +</div> +<p data-sourcepos="5266:1-5268:67" dir="auto">Here <code>two</code> occurs in the same column as the list marker <code>1.</code>, but is actually contained in the list item, because there is sufficient indentation after the last containing blockquote marker.</p> -<p data-sourcepos="4324:1-4327:38" dir="auto">The converse is also possible. In the following example, the word <code>two</code> +<p data-sourcepos="5270:1-5273:38" dir="auto">The converse is also possible. In the following example, the word <code>two</code> occurs far to the right of the initial text of the list item, <code>one</code>, but it is not considered part of the list item, because it is not indented far enough past the blockquote marker:</p> +<div> +<div><a href="#example-238">Example 238</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4329:1-4333:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">>>- one</span> +<pre data-sourcepos="5278:1-5282:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">>>- one</span> <span id="LC2" class="line" lang="plaintext">>></span> <span id="LC3" class="line" lang="plaintext"> > > two</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4335:1-4344:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="5284:1-5293:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><blockquote></span> <span id="LC3" class="line" lang="plaintext"><ul></span> <span id="LC4" class="line" lang="plaintext"><li>one</li></span> @@ -3897,30 +4974,36 @@ far enough past the blockquote marker:</p> <span id="LC8" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4347:1-4348:51" dir="auto">Note that at least one space is needed between the list marker and +</div> +<p data-sourcepos="5297:1-5298:51" dir="auto">Note that at least one space is needed between the list marker and any following content, so these are not list items:</p> +<div> +<div><a href="#example-239">Example 239</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4350:1-4354:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-one</span> +<pre data-sourcepos="5303:1-5307:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-one</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">2.two</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4356:1-4359:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>-one</p></span> +<pre data-sourcepos="5309:1-5312:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>-one</p></span> <span id="LC2" class="line" lang="plaintext"><p>2.two</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4362:1-4363:15" dir="auto">A list item may contain blocks that are separated by more than +</div> +<p data-sourcepos="5316:1-5317:15" dir="auto">A list item may contain blocks that are separated by more than one blank line.</p> +<div> +<div><a href="#example-240">Example 240</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4365:1-4370:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> +<pre data-sourcepos="5322:1-5327:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext"> bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4372:1-4379:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="5329:1-5336:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>foo</p></span> <span id="LC4" class="line" lang="plaintext"><p>bar</p></span> @@ -3928,9 +5011,12 @@ one blank line.</p> <span id="LC6" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4382:1-4382:42" dir="auto">A list item may contain any kind of block:</p> +</div> +<p data-sourcepos="5340:1-5340:42" dir="auto">A list item may contain any kind of block:</p> +<div> +<div><a href="#example-241">Example 241</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4384:1-4394:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. foo</span> +<pre data-sourcepos="5345:1-5355:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> ```</span> <span id="LC4" class="line" lang="plaintext"> bar</span> @@ -3942,7 +5028,7 @@ one blank line.</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4396:1-4408:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> +<pre data-sourcepos="5357:1-5369:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>foo</p></span> <span id="LC4" class="line" lang="plaintext"><pre><code>bar</span> @@ -3955,10 +5041,13 @@ one blank line.</p> <span id="LC11" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4411:1-4412:43" dir="auto">A list item that contains an indented code block will preserve +</div> +<p data-sourcepos="5373:1-5374:43" dir="auto">A list item that contains an indented code block will preserve empty lines within the code block verbatim.</p> +<div> +<div><a href="#example-242">Example 242</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4414:1-4421:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- Foo</span> +<pre data-sourcepos="5379:1-5386:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- Foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> bar</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -3967,7 +5056,7 @@ empty lines within the code block verbatim.</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4423:1-4434:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="5388:1-5399:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>Foo</p></span> <span id="LC4" class="line" lang="plaintext"><pre><code>bar</span> @@ -3979,57 +5068,73 @@ empty lines within the code block verbatim.</p> <span id="LC10" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4436:1-4436:65" dir="auto">Note that ordered list start numbers must be nine digits or less:</p> +</div> +<p data-sourcepos="5402:1-5402:65" dir="auto">Note that ordered list start numbers must be nine digits or less:</p> +<div> +<div><a href="#example-243">Example 243</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4438:1-4440:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">123456789. ok</span></code></pre> +<pre data-sourcepos="5407:1-5409:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">123456789. ok</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4442:1-4446:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol start="123456789"></span> +<pre data-sourcepos="5411:1-5415:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol start="123456789"></span> <span id="LC2" class="line" lang="plaintext"><li>ok</li></span> <span id="LC3" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-244">Example 244</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4449:1-4451:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1234567890. not ok</span></code></pre> +<pre data-sourcepos="5422:1-5424:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1234567890. not ok</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4453:1-4455:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>1234567890. not ok</p></span></code></pre> +<pre data-sourcepos="5426:1-5428:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>1234567890. not ok</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4458:1-4458:33" dir="auto">A start number may begin with 0s:</p> +</div> +<p data-sourcepos="5432:1-5432:33" dir="auto">A start number may begin with 0s:</p> +<div> +<div><a href="#example-245">Example 245</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4460:1-4462:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">0. ok</span></code></pre> +<pre data-sourcepos="5437:1-5439:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">0. ok</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4464:1-4468:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol start="0"></span> +<pre data-sourcepos="5441:1-5445:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol start="0"></span> <span id="LC2" class="line" lang="plaintext"><li>ok</li></span> <span id="LC3" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-246">Example 246</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4471:1-4473:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">003. ok</span></code></pre> +<pre data-sourcepos="5452:1-5454:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">003. ok</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4475:1-4479:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol start="3"></span> +<pre data-sourcepos="5456:1-5460:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol start="3"></span> <span id="LC2" class="line" lang="plaintext"><li>ok</li></span> <span id="LC3" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4482:1-4482:35" dir="auto">A start number may not be negative:</p> +</div> +<p data-sourcepos="5464:1-5464:35" dir="auto">A start number may not be negative:</p> +<div> +<div><a href="#example-247">Example 247</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4484:1-4486:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-1. not ok</span></code></pre> +<pre data-sourcepos="5469:1-5471:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-1. not ok</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4488:1-4490:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>-1. not ok</p></span></code></pre> +<pre data-sourcepos="5473:1-5475:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>-1. not ok</p></span></code></pre> <copy-code></copy-code> </div> -<ol start="2" data-sourcepos="4494:1-4504:0" dir="auto"> -<li data-sourcepos="4494:1-4504:0"> +</div> +<ol start="2" data-sourcepos="5480:1-5490:0" dir="auto"> +<li data-sourcepos="5480:1-5490:0"> <strong>Item starting with indented code.</strong> If a sequence of lines <em>Ls</em> constitute a sequence of blocks <em>Bs</em> starting with an indented code block, and <em>M</em> is a list marker of width <em>W</em> followed by @@ -4041,17 +5146,19 @@ list item (bullet or ordered) is determined by the type of its list marker. If the list item is ordered, then it is also assigned a start number, based on the ordered list marker.</li> </ol> -<p data-sourcepos="4505:1-4507:39" dir="auto">An indented code block will have to be indented four spaces beyond +<p data-sourcepos="5491:1-5493:39" dir="auto">An indented code block will have to be indented four spaces beyond the edge of the region where text will be included in the list item. In the following case that is 6 spaces:</p> +<div> +<div><a href="#example-248">Example 248</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4509:1-4513:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> +<pre data-sourcepos="5498:1-5502:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4515:1-4523:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="5504:1-5512:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>foo</p></span> <span id="LC4" class="line" lang="plaintext"><pre><code>bar</span> @@ -4060,15 +5167,18 @@ In the following case that is 6 spaces:</p> <span id="LC7" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4526:1-4526:33" dir="auto">And in this case it is 11 spaces:</p> +</div> +<p data-sourcepos="5516:1-5516:33" dir="auto">And in this case it is 11 spaces:</p> +<div> +<div><a href="#example-249">Example 249</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4528:1-4532:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 10. foo</span> +<pre data-sourcepos="5521:1-5525:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 10. foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4534:1-4542:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol start="10"></span> +<pre data-sourcepos="5527:1-5535:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol start="10"></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>foo</p></span> <span id="LC4" class="line" lang="plaintext"><pre><code>bar</span> @@ -4077,11 +5187,14 @@ In the following case that is 6 spaces:</p> <span id="LC7" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4545:1-4547:12" dir="auto">If the <em>first</em> block in the list item is an indented code block, +</div> +<p data-sourcepos="5539:1-5541:12" dir="auto">If the <em>first</em> block in the list item is an indented code block, then by rule #2, the contents must be indented <em>one</em> space after the list marker:</p> +<div> +<div><a href="#example-250">Example 250</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4549:1-4555:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> indented code</span> +<pre data-sourcepos="5546:1-5552:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> indented code</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">paragraph</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -4089,15 +5202,18 @@ list marker:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4557:1-4563:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>indented code</span> +<pre data-sourcepos="5554:1-5560:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>indented code</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span> <span id="LC3" class="line" lang="plaintext"><p>paragraph</p></span> <span id="LC4" class="line" lang="plaintext"><pre><code>more code</span> <span id="LC5" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-251">Example 251</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4566:1-4572:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. indented code</span> +<pre data-sourcepos="5567:1-5573:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. indented code</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> paragraph</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -4105,7 +5221,7 @@ list marker:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4574:1-4584:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> +<pre data-sourcepos="5575:1-5585:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><pre><code>indented code</span> <span id="LC4" class="line" lang="plaintext"></code></pre></span> @@ -4116,10 +5232,13 @@ list marker:</p> <span id="LC9" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4587:1-4588:22" dir="auto">Note that an additional space indent is interpreted as space +</div> +<p data-sourcepos="5589:1-5590:22" dir="auto">Note that an additional space indent is interpreted as space inside the code block:</p> +<div> +<div><a href="#example-252">Example 252</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4590:1-4596:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. indented code</span> +<pre data-sourcepos="5595:1-5601:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. indented code</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> paragraph</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -4127,7 +5246,7 @@ inside the code block:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4598:1-4608:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> +<pre data-sourcepos="5603:1-5613:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><pre><code> indented code</span> <span id="LC4" class="line" lang="plaintext"></code></pre></span> @@ -4138,49 +5257,58 @@ inside the code block:</p> <span id="LC9" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4611:1-4617:55" dir="auto">Note that rules #1 and #2 only apply to two cases: (a) cases +</div> +<p data-sourcepos="5617:1-5623:55" dir="auto">Note that rules #1 and #2 only apply to two cases: (a) cases in which the lines to be included in a list item begin with a [non-whitespace character], and (b) cases in which they begin with an indented code block. In a case like the following, where the first block begins with a three-space indent, the rules do not allow us to form a list item by indenting the whole thing and prepending a list marker:</p> +<div> +<div><a href="#example-253">Example 253</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4619:1-4623:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo</span> +<pre data-sourcepos="5628:1-5632:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4625:1-4628:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</p></span> +<pre data-sourcepos="5634:1-5637:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</p></span> <span id="LC2" class="line" lang="plaintext"><p>bar</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-254">Example 254</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4631:1-4635:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> +<pre data-sourcepos="5644:1-5648:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4637:1-4642:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="5650:1-5655:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>foo</li></span> <span id="LC3" class="line" lang="plaintext"></ul></span> <span id="LC4" class="line" lang="plaintext"><p>bar</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4645:1-4648:15" dir="auto">This is not a significant restriction, because when a block begins +</div> +<p data-sourcepos="5659:1-5662:15" dir="auto">This is not a significant restriction, because when a block begins with 1-3 spaces indent, the indentation can always be removed without a change in interpretation, allowing rule #1 to be applied. So, in the above case:</p> +<div> +<div><a href="#example-255">Example 255</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4650:1-4654:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> +<pre data-sourcepos="5667:1-5671:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4656:1-4663:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="5673:1-5680:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>foo</p></span> <span id="LC4" class="line" lang="plaintext"><p>bar</p></span> @@ -4188,8 +5316,9 @@ the above case:</p> <span id="LC6" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<ol start="3" data-sourcepos="4666:1-4677:0" dir="auto"> -<li data-sourcepos="4666:1-4677:0"> +</div> +<ol start="3" data-sourcepos="5684:1-5695:0" dir="auto"> +<li data-sourcepos="5684:1-5695:0"> <strong>Item starting with a blank line.</strong> If a sequence of lines <em>Ls</em> starting with a single [blank line] constitute a (possibly empty) sequence of blocks <em>Bs</em>, not separated from each other by more than @@ -4202,9 +5331,11 @@ list item (bullet or ordered) is determined by the type of its list marker. If the list item is ordered, then it is also assigned a start number, based on the ordered list marker.</li> </ol> -<p data-sourcepos="4678:1-4678:72" dir="auto">Here are some list items that start with a blank line but are not empty:</p> +<p data-sourcepos="5696:1-5696:72" dir="auto">Here are some list items that start with a blank line but are not empty:</p> +<div> +<div><a href="#example-256">Example 256</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4680:1-4689:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-</span> +<pre data-sourcepos="5701:1-5710:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-</span> <span id="LC2" class="line" lang="plaintext"> foo</span> <span id="LC3" class="line" lang="plaintext">-</span> <span id="LC4" class="line" lang="plaintext"> ```</span> @@ -4215,7 +5346,7 @@ start number, based on the ordered list marker.</li> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4691:1-4703:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="5712:1-5724:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>foo</li></span> <span id="LC3" class="line" lang="plaintext"><li></span> <span id="LC4" class="line" lang="plaintext"><pre><code>bar</span> @@ -4228,94 +5359,115 @@ start number, based on the ordered list marker.</li> <span id="LC11" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4705:1-4706:66" dir="auto">When the list item starts with a blank line, the number of spaces +</div> +<p data-sourcepos="5727:1-5728:66" dir="auto">When the list item starts with a blank line, the number of spaces following the list marker doesn't change the required indentation:</p> +<div> +<div><a href="#example-257">Example 257</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4708:1-4711:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- </span> +<pre data-sourcepos="5733:1-5736:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- </span> <span id="LC2" class="line" lang="plaintext"> foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4713:1-4717:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="5738:1-5742:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>foo</li></span> <span id="LC3" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4720:1-4722:5" dir="auto">A list item can begin with at most one blank line. +</div> +<p data-sourcepos="5746:1-5748:5" dir="auto">A list item can begin with at most one blank line. In the following example, <code>foo</code> is not part of the list item:</p> +<div> +<div><a href="#example-258">Example 258</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4724:1-4728:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-</span> +<pre data-sourcepos="5753:1-5757:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4730:1-4735:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="5759:1-5764:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></li></span> <span id="LC3" class="line" lang="plaintext"></ul></span> <span id="LC4" class="line" lang="plaintext"><p>foo</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4738:1-4738:34" dir="auto">Here is an empty bullet list item:</p> +</div> +<p data-sourcepos="5768:1-5768:34" dir="auto">Here is an empty bullet list item:</p> +<div> +<div><a href="#example-259">Example 259</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4740:1-4744:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> +<pre data-sourcepos="5773:1-5777:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> <span id="LC2" class="line" lang="plaintext">-</span> <span id="LC3" class="line" lang="plaintext">- bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4746:1-4752:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="5779:1-5785:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>foo</li></span> <span id="LC3" class="line" lang="plaintext"><li></li></span> <span id="LC4" class="line" lang="plaintext"><li>bar</li></span> <span id="LC5" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4755:1-4755:72" dir="auto">It does not matter whether there are spaces following the [list marker]:</p> +</div> +<p data-sourcepos="5789:1-5789:72" dir="auto">It does not matter whether there are spaces following the [list marker]:</p> +<div> +<div><a href="#example-260">Example 260</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4757:1-4761:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> +<pre data-sourcepos="5794:1-5798:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> <span id="LC2" class="line" lang="plaintext">- </span> <span id="LC3" class="line" lang="plaintext">- bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4763:1-4769:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="5800:1-5806:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>foo</li></span> <span id="LC3" class="line" lang="plaintext"><li></li></span> <span id="LC4" class="line" lang="plaintext"><li>bar</li></span> <span id="LC5" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4772:1-4772:35" dir="auto">Here is an empty ordered list item:</p> +</div> +<p data-sourcepos="5810:1-5810:35" dir="auto">Here is an empty ordered list item:</p> +<div> +<div><a href="#example-261">Example 261</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4774:1-4778:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. foo</span> +<pre data-sourcepos="5815:1-5819:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. foo</span> <span id="LC2" class="line" lang="plaintext">2.</span> <span id="LC3" class="line" lang="plaintext">3. bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4780:1-4786:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> +<pre data-sourcepos="5821:1-5827:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> <span id="LC2" class="line" lang="plaintext"><li>foo</li></span> <span id="LC3" class="line" lang="plaintext"><li></li></span> <span id="LC4" class="line" lang="plaintext"><li>bar</li></span> <span id="LC5" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4789:1-4789:48" dir="auto">A list may start or end with an empty list item:</p> +</div> +<p data-sourcepos="5831:1-5831:48" dir="auto">A list may start or end with an empty list item:</p> +<div> +<div><a href="#example-262">Example 262</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4791:1-4793:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*</span></code></pre> +<pre data-sourcepos="5836:1-5838:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4795:1-4799:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="5840:1-5844:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></li></span> <span id="LC3" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4801:1-4801:57" dir="auto">However, an empty list item cannot interrupt a paragraph:</p> +</div> +<p data-sourcepos="5847:1-5847:57" dir="auto">However, an empty list item cannot interrupt a paragraph:</p> +<div> +<div><a href="#example-263">Example 263</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4803:1-4809:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span> +<pre data-sourcepos="5852:1-5858:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span> <span id="LC2" class="line" lang="plaintext">*</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">foo</span> @@ -4323,23 +5475,26 @@ item:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4811:1-4816:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</span> +<pre data-sourcepos="5860:1-5865:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</span> <span id="LC2" class="line" lang="plaintext">*</p></span> <span id="LC3" class="line" lang="plaintext"><p>foo</span> <span id="LC4" class="line" lang="plaintext">1.</p></span></code></pre> <copy-code></copy-code> </div> -<ol start="4" data-sourcepos="4819:1-4824:0" dir="auto"> -<li data-sourcepos="4819:1-4824:0"> +</div> +<ol start="4" data-sourcepos="5869:1-5874:0" dir="auto"> +<li data-sourcepos="5869:1-5874:0"> <strong>Indentation.</strong> If a sequence of lines <em>Ls</em> constitutes a list item according to rule #1, #2, or #3, then the result of indenting each line of <em>Ls</em> by 1-3 spaces (the same for each line) also constitutes a list item with the same contents and attributes. If a line is empty, then it need not be indented.</li> </ol> -<p data-sourcepos="4825:1-4825:19" dir="auto">Indented one space:</p> +<p data-sourcepos="5875:1-5875:19" dir="auto">Indented one space:</p> +<div> +<div><a href="#example-264">Example 264</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4827:1-4834:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span> +<pre data-sourcepos="5880:1-5887:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span> <span id="LC2" class="line" lang="plaintext"> with two lines.</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext"> indented code</span> @@ -4348,7 +5503,7 @@ empty, then it need not be indented.</li> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4836:1-4848:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> +<pre data-sourcepos="5889:1-5901:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>A paragraph</span> <span id="LC4" class="line" lang="plaintext">with two lines.</p></span> @@ -4361,9 +5516,12 @@ empty, then it need not be indented.</li> <span id="LC11" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4851:1-4851:20" dir="auto">Indented two spaces:</p> +</div> +<p data-sourcepos="5905:1-5905:20" dir="auto">Indented two spaces:</p> +<div> +<div><a href="#example-265">Example 265</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4853:1-4860:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span> +<pre data-sourcepos="5910:1-5917:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span> <span id="LC2" class="line" lang="plaintext"> with two lines.</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext"> indented code</span> @@ -4372,7 +5530,7 @@ empty, then it need not be indented.</li> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4862:1-4874:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> +<pre data-sourcepos="5919:1-5931:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>A paragraph</span> <span id="LC4" class="line" lang="plaintext">with two lines.</p></span> @@ -4385,9 +5543,12 @@ empty, then it need not be indented.</li> <span id="LC11" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4877:1-4877:22" dir="auto">Indented three spaces:</p> +</div> +<p data-sourcepos="5935:1-5935:22" dir="auto">Indented three spaces:</p> +<div> +<div><a href="#example-266">Example 266</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4879:1-4886:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span> +<pre data-sourcepos="5940:1-5947:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span> <span id="LC2" class="line" lang="plaintext"> with two lines.</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext"> indented code</span> @@ -4396,7 +5557,7 @@ empty, then it need not be indented.</li> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4888:1-4900:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> +<pre data-sourcepos="5949:1-5961:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>A paragraph</span> <span id="LC4" class="line" lang="plaintext">with two lines.</p></span> @@ -4409,9 +5570,12 @@ empty, then it need not be indented.</li> <span id="LC11" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4903:1-4903:38" dir="auto">Four spaces indent gives a code block:</p> +</div> +<p data-sourcepos="5965:1-5965:38" dir="auto">Four spaces indent gives a code block:</p> +<div> +<div><a href="#example-267">Example 267</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4905:1-4912:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span> +<pre data-sourcepos="5970:1-5977:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span> <span id="LC2" class="line" lang="plaintext"> with two lines.</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext"> indented code</span> @@ -4420,7 +5584,7 @@ empty, then it need not be indented.</li> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4914:1-4922:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>1. A paragraph</span> +<pre data-sourcepos="5979:1-5987:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>1. A paragraph</span> <span id="LC2" class="line" lang="plaintext"> with two lines.</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext"> indented code</span> @@ -4429,8 +5593,9 @@ empty, then it need not be indented.</li> <span id="LC7" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<ol start="5" data-sourcepos="4926:1-4934:0" dir="auto"> -<li data-sourcepos="4926:1-4934:0"> +</div> +<ol start="5" data-sourcepos="5992:1-6000:0" dir="auto"> +<li data-sourcepos="5992:1-6000:0"> <strong>Laziness.</strong> If a string of lines <em>Ls</em> constitute a <a href="#list-items">list item</a> with contents <em>Bs</em>, then the result of deleting some or all of the indentation from one or more lines in which the @@ -4440,9 +5605,11 @@ list item with the same contents and attributes. The unindented lines are called <a href="@">lazy continuation line</a>s.</li> </ol> -<p data-sourcepos="4935:1-4935:50" dir="auto">Here is an example with [lazy continuation lines]:</p> +<p data-sourcepos="6001:1-6001:50" dir="auto">Here is an example with [lazy continuation lines]:</p> +<div> +<div><a href="#example-268">Example 268</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4937:1-4944:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span> +<pre data-sourcepos="6006:1-6013:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span> <span id="LC2" class="line" lang="plaintext">with two lines.</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext"> indented code</span> @@ -4451,7 +5618,7 @@ lines are called <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4946:1-4958:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> +<pre data-sourcepos="6015:1-6027:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>A paragraph</span> <span id="LC4" class="line" lang="plaintext">with two lines.</p></span> @@ -4464,27 +5631,33 @@ lines are called <span id="LC11" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4961:1-4961:37" dir="auto">Indentation can be partially deleted:</p> +</div> +<p data-sourcepos="6031:1-6031:37" dir="auto">Indentation can be partially deleted:</p> +<div> +<div><a href="#example-269">Example 269</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4963:1-4966:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span> +<pre data-sourcepos="6036:1-6039:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span> <span id="LC2" class="line" lang="plaintext"> with two lines.</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4968:1-4973:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> +<pre data-sourcepos="6041:1-6046:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> <span id="LC2" class="line" lang="plaintext"><li>A paragraph</span> <span id="LC3" class="line" lang="plaintext">with two lines.</li></span> <span id="LC4" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="4976:1-4976:63" dir="auto">These examples show how laziness can work in nested structures:</p> +</div> +<p data-sourcepos="6050:1-6050:63" dir="auto">These examples show how laziness can work in nested structures:</p> +<div> +<div><a href="#example-270">Example 270</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4978:1-4981:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> 1. > Blockquote</span> +<pre data-sourcepos="6055:1-6058:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> 1. > Blockquote</span> <span id="LC2" class="line" lang="plaintext">continued here.</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4983:1-4994:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="6060:1-6071:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><ol></span> <span id="LC3" class="line" lang="plaintext"><li></span> <span id="LC4" class="line" lang="plaintext"><blockquote></span> @@ -4496,13 +5669,16 @@ lines are called <span id="LC10" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-271">Example 271</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="4997:1-5000:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> 1. > Blockquote</span> +<pre data-sourcepos="6078:1-6081:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> 1. > Blockquote</span> <span id="LC2" class="line" lang="plaintext">> continued here.</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5002:1-5013:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> +<pre data-sourcepos="6083:1-6094:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><blockquote></span> <span id="LC2" class="line" lang="plaintext"><ol></span> <span id="LC3" class="line" lang="plaintext"><li></span> <span id="LC4" class="line" lang="plaintext"><blockquote></span> @@ -4514,25 +5690,28 @@ lines are called <span id="LC10" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> -<ol start="6" data-sourcepos="5017:1-5019:0" dir="auto"> -<li data-sourcepos="5017:1-5019:0"> +</div> +<ol start="6" data-sourcepos="6099:1-6101:0" dir="auto"> +<li data-sourcepos="6099:1-6101:0"> <strong>That's all.</strong> Nothing that is not counted as a list item by rules #1--5 counts as a <a href="#list-items">list item</a>.</li> </ol> -<p data-sourcepos="5020:1-5023:17" dir="auto">The rules for sublists follow from the general rules +<p data-sourcepos="6102:1-6105:17" dir="auto">The rules for sublists follow from the general rules [above][List items]. A sublist must be indented the same number of spaces a paragraph would need to be in order to be included in the list item.</p> -<p data-sourcepos="5025:1-5025:43" dir="auto">So, in this case we need two spaces indent:</p> +<p data-sourcepos="6107:1-6107:43" dir="auto">So, in this case we need two spaces indent:</p> +<div> +<div><a href="#example-272">Example 272</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5027:1-5032:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> +<pre data-sourcepos="6112:1-6117:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> <span id="LC2" class="line" lang="plaintext"> - bar</span> <span id="LC3" class="line" lang="plaintext"> - baz</span> <span id="LC4" class="line" lang="plaintext"> - boo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5034:1-5050:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="6119:1-6135:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>foo</span> <span id="LC3" class="line" lang="plaintext"><ul></span> <span id="LC4" class="line" lang="plaintext"><li>bar</span> @@ -4549,16 +5728,19 @@ in the list item.</p> <span id="LC15" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5053:1-5053:18" dir="auto">One is not enough:</p> +</div> +<p data-sourcepos="6139:1-6139:18" dir="auto">One is not enough:</p> +<div> +<div><a href="#example-273">Example 273</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5055:1-5060:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> +<pre data-sourcepos="6144:1-6149:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> <span id="LC2" class="line" lang="plaintext"> - bar</span> <span id="LC3" class="line" lang="plaintext"> - baz</span> <span id="LC4" class="line" lang="plaintext"> - boo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5062:1-5069:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="6151:1-6158:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>foo</li></span> <span id="LC3" class="line" lang="plaintext"><li>bar</li></span> <span id="LC4" class="line" lang="plaintext"><li>baz</li></span> @@ -4566,14 +5748,17 @@ in the list item.</p> <span id="LC6" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5072:1-5072:52" dir="auto">Here we need four, because the list marker is wider:</p> +</div> +<p data-sourcepos="6162:1-6162:52" dir="auto">Here we need four, because the list marker is wider:</p> +<div> +<div><a href="#example-274">Example 274</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5074:1-5077:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">10) foo</span> +<pre data-sourcepos="6167:1-6170:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">10) foo</span> <span id="LC2" class="line" lang="plaintext"> - bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5079:1-5087:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol start="10"></span> +<pre data-sourcepos="6172:1-6180:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol start="10"></span> <span id="LC2" class="line" lang="plaintext"><li>foo</span> <span id="LC3" class="line" lang="plaintext"><ul></span> <span id="LC4" class="line" lang="plaintext"><li>bar</li></span> @@ -4582,14 +5767,17 @@ in the list item.</p> <span id="LC7" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5090:1-5090:20" dir="auto">Three is not enough:</p> +</div> +<p data-sourcepos="6184:1-6184:20" dir="auto">Three is not enough:</p> +<div> +<div><a href="#example-275">Example 275</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5092:1-5095:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">10) foo</span> +<pre data-sourcepos="6189:1-6192:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">10) foo</span> <span id="LC2" class="line" lang="plaintext"> - bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5097:1-5104:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol start="10"></span> +<pre data-sourcepos="6194:1-6201:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol start="10"></span> <span id="LC2" class="line" lang="plaintext"><li>foo</li></span> <span id="LC3" class="line" lang="plaintext"></ol></span> <span id="LC4" class="line" lang="plaintext"><ul></span> @@ -4597,13 +5785,16 @@ in the list item.</p> <span id="LC6" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5107:1-5107:45" dir="auto">A list may be the first block in a list item:</p> +</div> +<p data-sourcepos="6205:1-6205:45" dir="auto">A list may be the first block in a list item:</p> +<div> +<div><a href="#example-276">Example 276</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5109:1-5111:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- - foo</span></code></pre> +<pre data-sourcepos="6210:1-6212:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- - foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5113:1-5121:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="6214:1-6222:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><ul></span> <span id="LC4" class="line" lang="plaintext"><li>foo</li></span> @@ -4612,12 +5803,15 @@ in the list item.</p> <span id="LC7" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-277">Example 277</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5124:1-5126:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. - 2. foo</span></code></pre> +<pre data-sourcepos="6229:1-6231:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. - 2. foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5128:1-5140:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> +<pre data-sourcepos="6233:1-6245:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><ul></span> <span id="LC4" class="line" lang="plaintext"><li></span> @@ -4630,16 +5824,19 @@ in the list item.</p> <span id="LC11" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5143:1-5143:34" dir="auto">A list item can contain a heading:</p> +</div> +<p data-sourcepos="6249:1-6249:34" dir="auto">A list item can contain a heading:</p> +<div> +<div><a href="#example-278">Example 278</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5145:1-5150:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- # Foo</span> +<pre data-sourcepos="6254:1-6259:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- # Foo</span> <span id="LC2" class="line" lang="plaintext">- Bar</span> <span id="LC3" class="line" lang="plaintext"> ---</span> <span id="LC4" class="line" lang="plaintext"> baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5152:1-5161:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="6261:1-6270:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><h1>Foo</h1></span> <span id="LC4" class="line" lang="plaintext"></li></span> @@ -4649,38 +5846,39 @@ in the list item.</p> <span id="LC8" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<h3 data-sourcepos="5164:1-5164:14" dir="auto"> +</div> +<h3 data-sourcepos="6274:1-6274:14" dir="auto"> <a id="user-content-motivation" class="anchor" href="#motivation" aria-hidden="true"></a>Motivation</h3> -<p data-sourcepos="5166:1-5166:64" dir="auto">John Gruber's Markdown spec says the following about list items:</p> -<ol data-sourcepos="5168:1-5187:0" dir="auto"> -<li data-sourcepos="5168:1-5171:0"> -<p data-sourcepos="5168:4-5170:20">"List markers typically start at the left margin, but may be indented +<p data-sourcepos="6276:1-6276:64" dir="auto">John Gruber's Markdown spec says the following about list items:</p> +<ol data-sourcepos="6278:1-6297:0" dir="auto"> +<li data-sourcepos="6278:1-6281:0"> +<p data-sourcepos="6278:4-6280:20">"List markers typically start at the left margin, but may be indented by up to three spaces. List markers must be followed by one or more spaces or a tab."</p> </li> -<li data-sourcepos="5172:1-5174:0"> -<p data-sourcepos="5172:4-5173:48">"To make lists look nice, you can wrap items with hanging indents.... +<li data-sourcepos="6282:1-6284:0"> +<p data-sourcepos="6282:4-6283:48">"To make lists look nice, you can wrap items with hanging indents.... But if you don't want to, you don't have to."</p> </li> -<li data-sourcepos="5175:1-5178:0"> -<p data-sourcepos="5175:4-5177:8">"List items may consist of multiple paragraphs. Each subsequent +<li data-sourcepos="6285:1-6288:0"> +<p data-sourcepos="6285:4-6287:8">"List items may consist of multiple paragraphs. Each subsequent paragraph in a list item must be indented by either 4 spaces or one tab."</p> </li> -<li data-sourcepos="5179:1-5181:0"> -<p data-sourcepos="5179:4-5180:55">"It looks nice if you indent every line of the subsequent paragraphs, +<li data-sourcepos="6289:1-6291:0"> +<p data-sourcepos="6289:4-6290:55">"It looks nice if you indent every line of the subsequent paragraphs, but here again, Markdown will allow you to be lazy."</p> </li> -<li data-sourcepos="5182:1-5184:0"> -<p data-sourcepos="5182:4-5183:35">"To put a blockquote within a list item, the blockquote's <code>></code> +<li data-sourcepos="6292:1-6294:0"> +<p data-sourcepos="6292:4-6293:35">"To put a blockquote within a list item, the blockquote's <code>></code> delimiters need to be indented."</p> </li> -<li data-sourcepos="5185:1-5187:0"> -<p data-sourcepos="5185:4-5186:44">"To put a code block within a list item, the code block needs to be +<li data-sourcepos="6295:1-6297:0"> +<p data-sourcepos="6295:4-6296:44">"To put a code block within a list item, the code block needs to be indented twice — 8 spaces or two tabs."</p> </li> </ol> -<p data-sourcepos="5188:1-5197:18" dir="auto">These rules specify that a paragraph under a list item must be indented +<p data-sourcepos="6298:1-6307:18" dir="auto">These rules specify that a paragraph under a list item must be indented four spaces (presumably, from the left margin, rather than the start of the list marker, but this is not said), and that code under a list item must be indented eight spaces instead of the usual four. They also say @@ -4690,7 +5888,7 @@ about other kinds of block-level content, it is certainly reasonable to infer that <em>all</em> block elements under a list item, including other lists, must be indented four spaces. This principle has been called the <em>four-space rule</em>.</p> -<p data-sourcepos="5199:1-5210:48" dir="auto">The four-space rule is clear and principled, and if the reference +<p data-sourcepos="6309:1-6320:48" dir="auto">The four-space rule is clear and principled, and if the reference implementation <code>Markdown.pl</code> had followed it, it probably would have become the standard. However, <code>Markdown.pl</code> allowed paragraphs and sublists to start with only two spaces indentation, at least on the @@ -4702,33 +5900,33 @@ determining what comes under a list item. (Pandoc and python-Markdown, for example, stuck with Gruber's syntax description and the four-space rule, while discount, redcarpet, marked, PHP Markdown, and others followed <code>Markdown.pl</code>'s behavior more closely.)</p> -<p data-sourcepos="5212:1-5217:45" dir="auto">Unfortunately, given the divergences between implementations, there +<p data-sourcepos="6322:1-6327:45" dir="auto">Unfortunately, given the divergences between implementations, there is no way to give a spec for list items that will be guaranteed not to break any existing documents. However, the spec given here should correctly handle lists formatted with either the four-space rule or the more forgiving <code>Markdown.pl</code> behavior, provided they are laid out in a way that is natural for a human to read.</p> -<p data-sourcepos="5219:1-5225:22" dir="auto">The strategy here is to let the width and indentation of the list marker +<p data-sourcepos="6329:1-6335:22" dir="auto">The strategy here is to let the width and indentation of the list marker determine the indentation necessary for blocks to fall under the list item, rather than having a fixed and arbitrary number. The writer can think of the body of the list item as a unit which gets indented to the right enough to fit the list marker (and any indentation on the list marker). (The laziness rule, #5, then allows continuation lines to be unindented if needed.)</p> -<p data-sourcepos="5227:1-5229:39" dir="auto">This rule is superior, we claim, to any rule requiring a fixed level of +<p data-sourcepos="6337:1-6339:39" dir="auto">This rule is superior, we claim, to any rule requiring a fixed level of indentation from the margin. The four-space rule is clear but unnatural. It is quite unintuitive that</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5231:1-5237:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="p">-</span> foo</span> +<pre data-sourcepos="6341:1-6347:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="p">-</span> foo</span> <span id="LC2" class="line" lang="markdown"></span> <span id="LC3" class="line" lang="markdown"> bar</span> <span id="LC4" class="line" lang="markdown"></span> <span id="LC5" class="line" lang="markdown"><span class="p"> -</span> baz</span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5239:1-5239:60" dir="auto">should be parsed as two lists with an intervening paragraph,</p> +<p data-sourcepos="6349:1-6349:60" dir="auto">should be parsed as two lists with an intervening paragraph,</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5241:1-5249:3" lang="html" class="code highlight js-syntax-highlight language-html" v-pre="true"><code><span id="LC1" class="line" lang="html"><span class="nt"><ul></span></span> +<pre data-sourcepos="6351:1-6359:3" lang="html" class="code highlight js-syntax-highlight language-html" v-pre="true"><code><span id="LC1" class="line" lang="html"><span class="nt"><ul></span></span> <span id="LC2" class="line" lang="html"><span class="nt"><li></span>foo<span class="nt"></li></span></span> <span id="LC3" class="line" lang="html"><span class="nt"></ul></span></span> <span id="LC4" class="line" lang="html"><span class="nt"><p></span>bar<span class="nt"></p></span></span> @@ -4737,9 +5935,9 @@ unnatural. It is quite unintuitive that</p> <span id="LC7" class="line" lang="html"><span class="nt"></ul></span></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5251:1-5251:58" dir="auto">as the four-space rule demands, rather than a single list,</p> +<p data-sourcepos="6361:1-6361:58" dir="auto">as the four-space rule demands, rather than a single list,</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5253:1-5263:3" lang="html" class="code highlight js-syntax-highlight language-html" v-pre="true"><code><span id="LC1" class="line" lang="html"><span class="nt"><ul></span></span> +<pre data-sourcepos="6363:1-6373:3" lang="html" class="code highlight js-syntax-highlight language-html" v-pre="true"><code><span id="LC1" class="line" lang="html"><span class="nt"><ul></span></span> <span id="LC2" class="line" lang="html"><span class="nt"><li></span></span> <span id="LC3" class="line" lang="html"><span class="nt"><p></span>foo<span class="nt"></p></span></span> <span id="LC4" class="line" lang="html"><span class="nt"><p></span>bar<span class="nt"></p></span></span> @@ -4750,22 +5948,22 @@ unnatural. It is quite unintuitive that</p> <span id="LC9" class="line" lang="html"><span class="nt"></ul></span></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5265:1-5266:62" dir="auto">The choice of four spaces is arbitrary. It can be learned, but it is +<p data-sourcepos="6375:1-6376:62" dir="auto">The choice of four spaces is arbitrary. It can be learned, but it is not likely to be guessed, and it trips up beginners regularly.</p> -<p data-sourcepos="5268:1-5272:20" dir="auto">Would it help to adopt a two-space rule? The problem is that such +<p data-sourcepos="6378:1-6382:20" dir="auto">Would it help to adopt a two-space rule? The problem is that such a rule, together with the rule allowing 1--3 spaces indentation of the initial list marker, allows text that is indented <em>less than</em> the original list marker to be included in the list item. For example, <code>Markdown.pl</code> parses</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5274:1-5278:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="p"> -</span> one</span> +<pre data-sourcepos="6384:1-6388:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="p"> -</span> one</span> <span id="LC2" class="line" lang="markdown"></span> <span id="LC3" class="line" lang="markdown"> two</span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5280:1-5280:59" dir="auto">as a single list item, with <code>two</code> a continuation paragraph:</p> +<p data-sourcepos="6390:1-6390:59" dir="auto">as a single list item, with <code>two</code> a continuation paragraph:</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5282:1-5289:3" lang="html" class="code highlight js-syntax-highlight language-html" v-pre="true"><code><span id="LC1" class="line" lang="html"><span class="nt"><ul></span></span> +<pre data-sourcepos="6392:1-6399:3" lang="html" class="code highlight js-syntax-highlight language-html" v-pre="true"><code><span id="LC1" class="line" lang="html"><span class="nt"><ul></span></span> <span id="LC2" class="line" lang="html"><span class="nt"><li></span></span> <span id="LC3" class="line" lang="html"><span class="nt"><p></span>one<span class="nt"></p></span></span> <span id="LC4" class="line" lang="html"><span class="nt"><p></span>two<span class="nt"></p></span></span> @@ -4773,16 +5971,16 @@ original list marker to be included in the list item. For example, <span id="LC6" class="line" lang="html"><span class="nt"></ul></span></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5291:1-5291:13" dir="auto">and similarly</p> +<p data-sourcepos="6401:1-6401:13" dir="auto">and similarly</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5293:1-5297:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">> - one</span></span> +<pre data-sourcepos="6403:1-6407:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">> - one</span></span> <span id="LC2" class="line" lang="markdown"><span class="gt">></span></span> <span id="LC3" class="line" lang="markdown"><span class="gt">> two</span></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5299:1-5299:2" dir="auto">as</p> +<p data-sourcepos="6409:1-6409:2" dir="auto">as</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5301:1-5310:3" lang="html" class="code highlight js-syntax-highlight language-html" v-pre="true"><code><span id="LC1" class="line" lang="html"><span class="nt"><blockquote></span></span> +<pre data-sourcepos="6411:1-6420:3" lang="html" class="code highlight js-syntax-highlight language-html" v-pre="true"><code><span id="LC1" class="line" lang="html"><span class="nt"><blockquote></span></span> <span id="LC2" class="line" lang="html"><span class="nt"><ul></span></span> <span id="LC3" class="line" lang="html"><span class="nt"><li></span></span> <span id="LC4" class="line" lang="html"><span class="nt"><p></span>one<span class="nt"></p></span></span> @@ -4792,33 +5990,33 @@ original list marker to be included in the list item. For example, <span id="LC8" class="line" lang="html"><span class="nt"></blockquote></span></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5312:1-5312:30" dir="auto">This is extremely unintuitive.</p> -<p data-sourcepos="5314:1-5319:52" dir="auto">Rather than requiring a fixed indent from the margin, we could require +<p data-sourcepos="6422:1-6422:30" dir="auto">This is extremely unintuitive.</p> +<p data-sourcepos="6424:1-6429:52" dir="auto">Rather than requiring a fixed indent from the margin, we could require a fixed indent (say, two spaces, or even one space) from the list marker (which may itself be indented). This proposal would remove the last anomaly discussed. Unlike the spec presented above, it would count the following as a list item with a subparagraph, even though the paragraph <code>bar</code> is not indented as far as the first paragraph <code>foo</code>:</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5321:1-5325:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="p"> 10.</span> foo</span> +<pre data-sourcepos="6431:1-6435:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="p"> 10.</span> foo</span> <span id="LC2" class="line" lang="markdown"></span> <span id="LC3" class="line" lang="markdown"> bar </span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5327:1-5330:62" dir="auto">Arguably this text does read like a list item with <code>bar</code> as a subparagraph, +<p data-sourcepos="6437:1-6440:62" dir="auto">Arguably this text does read like a list item with <code>bar</code> as a subparagraph, which may count in favor of the proposal. However, on this proposal indented code would have to be indented six spaces after the list marker. And this would break a lot of existing Markdown, which has the pattern:</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5332:1-5336:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="p">1.</span> foo</span> +<pre data-sourcepos="6442:1-6446:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="p">1.</span> foo</span> <span id="LC2" class="line" lang="markdown"></span> <span id="LC3" class="line" lang="markdown"><span class="sb"> indented code</span></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5338:1-5340:28" dir="auto">where the code is indented eight spaces. The spec above, by contrast, will +<p data-sourcepos="6448:1-6450:28" dir="auto">where the code is indented eight spaces. The spec above, by contrast, will parse this text as expected, since the code block's indentation is measured from the beginning of <code>foo</code>.</p> -<p data-sourcepos="5342:1-5348:62" dir="auto">The one case that needs special treatment is a list item that <em>starts</em> +<p data-sourcepos="6452:1-6458:62" dir="auto">The one case that needs special treatment is a list item that <em>starts</em> with indented code. How much indentation is required in that case, since we don't have a "first paragraph" to measure from? Rule #2 simply stipulates that in such cases, we require one space indentation from the list marker @@ -4826,46 +6024,51 @@ that in such cases, we require one space indentation from the list marker four-space rule in cases where the list marker plus its initial indentation takes four spaces (a common case), but diverge in other cases.</p> <div> -<h2 data-sourcepos="5352:1-5352:30"> +<h2 data-sourcepos="6462:1-6462:30"> <a id="user-content-task-list-items-extension" class="anchor" href="#task-list-items-extension" aria-hidden="true"></a>Task list items (extension)</h2> -<p data-sourcepos="5354:1-5355:26">GFM enables the <code>tasklist</code> extension, where an additional processing step is +<p data-sourcepos="6464:1-6465:26">GFM enables the <code>tasklist</code> extension, where an additional processing step is performed on [list items].</p> -<p data-sourcepos="5357:1-5359:46">A <a href="@">task list item</a> is a [list item][list items] where the first block in it +<p data-sourcepos="6467:1-6469:46">A <a href="@">task list item</a> is a [list item][list items] where the first block in it is a paragraph which begins with a [task list item marker] and at least one whitespace character before any other content.</p> -<p data-sourcepos="5361:1-5363:55">A <a href="@">task list item marker</a> consists of an optional number of spaces, a left +<p data-sourcepos="6471:1-6473:55">A <a href="@">task list item marker</a> consists of an optional number of spaces, a left bracket (<code>[</code>), either a whitespace character or the letter <code>x</code> in either lowercase or uppercase, and then a right bracket (<code>]</code>).</p> -<p data-sourcepos="5365:1-5366:70">When rendered, the [task list item marker] is replaced with a semantic checkbox element; +<p data-sourcepos="6475:1-6476:70">When rendered, the [task list item marker] is replaced with a semantic checkbox element; in an HTML output, this would be an <code><input type="checkbox"></code> element.</p> -<p data-sourcepos="5368:1-5369:50">If the character between the brackets is a whitespace character, the checkbox +<p data-sourcepos="6478:1-6479:50">If the character between the brackets is a whitespace character, the checkbox is unchecked. Otherwise, the checkbox is checked.</p> -<p data-sourcepos="5371:1-5374:28">This spec does not define how the checkbox elements are interacted with: in practice, +<p data-sourcepos="6481:1-6484:28">This spec does not define how the checkbox elements are interacted with: in practice, implementors are free to render the checkboxes as disabled or inmutable elements, or they may dynamically handle dynamic interactions (i.e. checking, unchecking) in the final rendered document.</p> +<div> +<div><a href="#example-279">Example 279</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5376:1-5379:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [ ] foo</span> +<pre data-sourcepos="6489:1-6492:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [ ] foo</span> <span id="LC2" class="line" lang="plaintext">- [x] bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5381:1-5386:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="6494:1-6499:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li><input disabled="" type="checkbox"> foo</li></span> <span id="LC3" class="line" lang="plaintext"><li><input checked="" disabled="" type="checkbox"> bar</li></span> <span id="LC4" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5388:1-5388:37">Task lists can be arbitrarily nested:</p> +</div> +<p data-sourcepos="6502:1-6502:37">Task lists can be arbitrarily nested:</p> +<div> +<div><a href="#example-280">Example 280</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5390:1-5395:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [x] foo</span> +<pre data-sourcepos="6507:1-6512:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [x] foo</span> <span id="LC2" class="line" lang="plaintext"> - [ ] bar</span> <span id="LC3" class="line" lang="plaintext"> - [x] baz</span> <span id="LC4" class="line" lang="plaintext">- [ ] bim</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5397:1-5407:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="6514:1-6524:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li><input checked="" disabled="" type="checkbox"> foo</span> <span id="LC3" class="line" lang="plaintext"><ul></span> <span id="LC4" class="line" lang="plaintext"><li><input disabled="" type="checkbox"> bar</li></span> @@ -4877,41 +6080,44 @@ the final rendered document.</p> <copy-code></copy-code> </div> </div> -<h2 data-sourcepos="5411:1-5411:8" dir="auto"> +</div> +<h2 data-sourcepos="6529:1-6529:8" dir="auto"> <a id="user-content-lists" class="anchor" href="#lists" aria-hidden="true"></a>Lists</h2> -<p data-sourcepos="5413:1-5415:46" dir="auto">A <a href="@">list</a> is a sequence of one or more +<p data-sourcepos="6531:1-6533:46" dir="auto">A <a href="@">list</a> is a sequence of one or more list items [of the same type]. The list items may be separated by any number of blank lines.</p> -<p data-sourcepos="5417:1-5422:30" dir="auto">Two list items are <a href="@">of the same type</a> +<p data-sourcepos="6535:1-6540:30" dir="auto">Two list items are <a href="@">of the same type</a> if they begin with a [list marker] of the same type. Two list markers are of the same type if (a) they are bullet list markers using the same character (<code>-</code>, <code>+</code>, or <code>*</code>) or (b) they are ordered list numbers with the same delimiter (either <code>.</code> or <code>)</code>).</p> -<p data-sourcepos="5424:1-5428:39" dir="auto">A list is an <a href="@">ordered list</a> +<p data-sourcepos="6542:1-6546:39" dir="auto">A list is an <a href="@">ordered list</a> if its constituent list items begin with [ordered list markers], and a <a href="@">bullet list</a> if its constituent list items begin with [bullet list markers].</p> -<p data-sourcepos="5430:1-5433:12" dir="auto">The <a href="@">start number</a> +<p data-sourcepos="6548:1-6551:12" dir="auto">The <a href="@">start number</a> of an [ordered list] is determined by the list number of its initial list item. The numbers of subsequent list items are disregarded.</p> -<p data-sourcepos="5435:1-5440:65" dir="auto">A list is <a href="@">loose</a> if any of its constituent +<p data-sourcepos="6553:1-6558:65" dir="auto">A list is <a href="@">loose</a> if any of its constituent list items are separated by blank lines, or if any of its constituent list items directly contain two block-level elements with a blank line between them. Otherwise a list is <a href="@">tight</a>. (The difference in HTML output is that paragraphs in a loose list are wrapped in <code><p></code> tags, while paragraphs in a tight list are not.)</p> -<p data-sourcepos="5442:1-5442:64" dir="auto">Changing the bullet or ordered list delimiter starts a new list:</p> +<p data-sourcepos="6560:1-6560:64" dir="auto">Changing the bullet or ordered list delimiter starts a new list:</p> +<div> +<div><a href="#example-281">Example 281</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5444:1-5448:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> +<pre data-sourcepos="6565:1-6569:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> <span id="LC2" class="line" lang="plaintext">- bar</span> <span id="LC3" class="line" lang="plaintext">+ baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5450:1-5458:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="6571:1-6579:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>foo</li></span> <span id="LC3" class="line" lang="plaintext"><li>bar</li></span> <span id="LC4" class="line" lang="plaintext"></ul></span> @@ -4920,14 +6126,17 @@ wrapped in <code><p></code> tags, while paragraphs in a tight list are not <span id="LC7" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-282">Example 282</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5461:1-5465:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. foo</span> +<pre data-sourcepos="6586:1-6590:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. foo</span> <span id="LC2" class="line" lang="plaintext">2. bar</span> <span id="LC3" class="line" lang="plaintext">3) baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5467:1-5475:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> +<pre data-sourcepos="6592:1-6600:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> <span id="LC2" class="line" lang="plaintext"><li>foo</li></span> <span id="LC3" class="line" lang="plaintext"><li>bar</li></span> <span id="LC4" class="line" lang="plaintext"></ol></span> @@ -4936,107 +6145,119 @@ wrapped in <code><p></code> tags, while paragraphs in a tight list are not <span id="LC7" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5478:1-5480:5" dir="auto">In CommonMark, a list can interrupt a paragraph. That is, +</div> +<p data-sourcepos="6604:1-6606:5" dir="auto">In CommonMark, a list can interrupt a paragraph. That is, no blank line is needed to separate a paragraph from a following list:</p> +<div> +<div><a href="#example-283">Example 283</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5482:1-5486:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> +<pre data-sourcepos="6611:1-6615:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span> <span id="LC2" class="line" lang="plaintext">- bar</span> <span id="LC3" class="line" lang="plaintext">- baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5488:1-5494:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</p></span> +<pre data-sourcepos="6617:1-6623:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo</p></span> <span id="LC2" class="line" lang="plaintext"><ul></span> <span id="LC3" class="line" lang="plaintext"><li>bar</li></span> <span id="LC4" class="line" lang="plaintext"><li>baz</li></span> <span id="LC5" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5496:1-5497:37" dir="auto"><code>Markdown.pl</code> does not allow this, through fear of triggering a list +</div> +<p data-sourcepos="6626:1-6627:37" dir="auto"><code>Markdown.pl</code> does not allow this, through fear of triggering a list via a numeral in a hard-wrapped line:</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5499:1-5502:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">The number of windows in my house is</span> +<pre data-sourcepos="6629:1-6632:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">The number of windows in my house is</span> <span id="LC2" class="line" lang="markdown"><span class="p">14.</span> The number of doors is 6.</span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5504:1-5506:6" dir="auto">Oddly, though, <code>Markdown.pl</code> <em>does</em> allow a blockquote to +<p data-sourcepos="6634:1-6636:6" dir="auto">Oddly, though, <code>Markdown.pl</code> <em>does</em> allow a blockquote to interrupt a paragraph, even though the same considerations might apply.</p> -<p data-sourcepos="5508:1-5510:35" dir="auto">In CommonMark, we do allow lists to interrupt paragraphs, for +<p data-sourcepos="6638:1-6640:35" dir="auto">In CommonMark, we do allow lists to interrupt paragraphs, for two reasons. First, it is natural and not uncommon for people to start lists without blank lines:</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5512:1-5517:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">I need to buy</span> +<pre data-sourcepos="6642:1-6647:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">I need to buy</span> <span id="LC2" class="line" lang="markdown"><span class="p">-</span> new shoes</span> <span id="LC3" class="line" lang="markdown"><span class="p">-</span> a coat</span> <span id="LC4" class="line" lang="markdown"><span class="p">-</span> a plane ticket</span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5519:1-5519:29" dir="auto">Second, we are attracted to a</p> -<blockquote data-sourcepos="5521:1-5524:54" dir="auto"> -<p data-sourcepos="5521:3-5524:54"><a href="@">principle of uniformity</a>: +<p data-sourcepos="6649:1-6649:29" dir="auto">Second, we are attracted to a</p> +<blockquote data-sourcepos="6651:1-6654:54" dir="auto"> +<p data-sourcepos="6651:3-6654:54"><a href="@">principle of uniformity</a>: if a chunk of text has a certain meaning, it will continue to have the same meaning when put into a container block (such as a list item or blockquote).</p> </blockquote> -<p data-sourcepos="5526:1-5527:47" dir="auto">(Indeed, the spec for [list items] and [block quotes] presupposes +<p data-sourcepos="6656:1-6657:47" dir="auto">(Indeed, the spec for [list items] and [block quotes] presupposes this principle.) This principle implies that if</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5529:1-5534:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="p"> *</span> I need to buy</span> +<pre data-sourcepos="6659:1-6664:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="p"> *</span> I need to buy</span> <span id="LC2" class="line" lang="markdown"><span class="p"> -</span> new shoes</span> <span id="LC3" class="line" lang="markdown"><span class="p"> -</span> a coat</span> <span id="LC4" class="line" lang="markdown"><span class="p"> -</span> a plane ticket</span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5536:1-5539:4" dir="auto">is a list item containing a paragraph followed by a nested sublist, +<p data-sourcepos="6666:1-6669:4" dir="auto">is a list item containing a paragraph followed by a nested sublist, as all Markdown implementations agree it is (though the paragraph may be rendered without <code><p></code> tags, since the list is "tight"), then</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5541:1-5546:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">I need to buy</span> +<pre data-sourcepos="6671:1-6676:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">I need to buy</span> <span id="LC2" class="line" lang="markdown"><span class="p">-</span> new shoes</span> <span id="LC3" class="line" lang="markdown"><span class="p">-</span> a coat</span> <span id="LC4" class="line" lang="markdown"><span class="p">-</span> a plane ticket</span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5548:1-5548:61" dir="auto">by itself should be a paragraph followed by a nested sublist.</p> -<p data-sourcepos="5550:1-5555:30" dir="auto">Since it is well established Markdown practice to allow lists to +<p data-sourcepos="6678:1-6678:61" dir="auto">by itself should be a paragraph followed by a nested sublist.</p> +<p data-sourcepos="6680:1-6685:30" dir="auto">Since it is well established Markdown practice to allow lists to interrupt paragraphs inside list items, the [principle of uniformity] requires us to allow this outside list items as well. (<a href="http://docutils.sourceforge.net/rst.html" rel="nofollow noreferrer noopener" target="_blank">reStructuredText</a> takes a different approach, requiring blank lines before lists even inside other list items.)</p> -<p data-sourcepos="5557:1-5559:28" dir="auto">In order to solve of unwanted lists in paragraphs with +<p data-sourcepos="6687:1-6689:28" dir="auto">In order to solve of unwanted lists in paragraphs with hard-wrapped numerals, we allow only lists starting with <code>1</code> to interrupt paragraphs. Thus,</p> +<div> +<div><a href="#example-284">Example 284</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5561:1-5564:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">The number of windows in my house is</span> +<pre data-sourcepos="6694:1-6697:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">The number of windows in my house is</span> <span id="LC2" class="line" lang="plaintext">14. The number of doors is 6.</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5566:1-5569:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>The number of windows in my house is</span> +<pre data-sourcepos="6699:1-6702:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>The number of windows in my house is</span> <span id="LC2" class="line" lang="plaintext">14. The number of doors is 6.</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5571:1-5571:51" dir="auto">We may still get an unintended result in cases like</p> +</div> +<p data-sourcepos="6705:1-6705:51" dir="auto">We may still get an unintended result in cases like</p> +<div> +<div><a href="#example-285">Example 285</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5573:1-5576:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">The number of windows in my house is</span> +<pre data-sourcepos="6710:1-6713:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">The number of windows in my house is</span> <span id="LC2" class="line" lang="plaintext">1. The number of doors is 6.</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5578:1-5583:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>The number of windows in my house is</p></span> +<pre data-sourcepos="6715:1-6720:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>The number of windows in my house is</p></span> <span id="LC2" class="line" lang="plaintext"><ol></span> <span id="LC3" class="line" lang="plaintext"><li>The number of doors is 6.</li></span> <span id="LC4" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5585:1-5585:57" dir="auto">but this rule should prevent most spurious list captures.</p> -<p data-sourcepos="5587:1-5587:53" dir="auto">There can be any number of blank lines between items:</p> +</div> +<p data-sourcepos="6723:1-6723:57" dir="auto">but this rule should prevent most spurious list captures.</p> +<p data-sourcepos="6725:1-6725:53" dir="auto">There can be any number of blank lines between items:</p> +<div> +<div><a href="#example-286">Example 286</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5589:1-5596:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> +<pre data-sourcepos="6730:1-6737:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">- bar</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -5045,7 +6266,7 @@ interrupt paragraphs. Thus,</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5598:1-5610:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="6739:1-6751:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>foo</p></span> <span id="LC4" class="line" lang="plaintext"></li></span> @@ -5058,8 +6279,11 @@ interrupt paragraphs. Thus,</p> <span id="LC11" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-287">Example 287</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5612:1-5619:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> +<pre data-sourcepos="6757:1-6764:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> <span id="LC2" class="line" lang="plaintext"> - bar</span> <span id="LC3" class="line" lang="plaintext"> - baz</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -5068,7 +6292,7 @@ interrupt paragraphs. Thus,</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5621:1-5636:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="6766:1-6781:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>foo</span> <span id="LC3" class="line" lang="plaintext"><ul></span> <span id="LC4" class="line" lang="plaintext"><li>bar</span> @@ -5084,12 +6308,15 @@ interrupt paragraphs. Thus,</p> <span id="LC14" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5639:1-5642:8" dir="auto">To separate consecutive lists of the same type, or to separate a +</div> +<p data-sourcepos="6785:1-6788:8" dir="auto">To separate consecutive lists of the same type, or to separate a list from an indented code block that would otherwise be parsed as a subparagraph of the final list item, you can insert a blank HTML comment:</p> +<div> +<div><a href="#example-288">Example 288</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5644:1-5652:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> +<pre data-sourcepos="6793:1-6801:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> <span id="LC2" class="line" lang="plaintext">- bar</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext"><!-- --></span> @@ -5099,7 +6326,7 @@ comment:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5654:1-5664:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="6803:1-6813:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>foo</li></span> <span id="LC3" class="line" lang="plaintext"><li>bar</li></span> <span id="LC4" class="line" lang="plaintext"></ul></span> @@ -5110,8 +6337,11 @@ comment:</p> <span id="LC9" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-289">Example 289</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5667:1-5677:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> +<pre data-sourcepos="6820:1-6830:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> notcode</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -5123,7 +6353,7 @@ comment:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5679:1-5692:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="6832:1-6845:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>foo</p></span> <span id="LC4" class="line" lang="plaintext"><p>notcode</p></span> @@ -5137,12 +6367,15 @@ comment:</p> <span id="LC12" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5695:1-5698:5" dir="auto">List items need not be indented to the same level. The following +</div> +<p data-sourcepos="6849:1-6852:5" dir="auto">List items need not be indented to the same level. The following list items will be treated as items at the same list level, since none is indented enough to belong to the previous list item:</p> +<div> +<div><a href="#example-290">Example 290</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5700:1-5708:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> +<pre data-sourcepos="6857:1-6865:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> <span id="LC2" class="line" lang="plaintext"> - b</span> <span id="LC3" class="line" lang="plaintext"> - c</span> <span id="LC4" class="line" lang="plaintext"> - d</span> @@ -5152,7 +6385,7 @@ item:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5710:1-5720:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="6867:1-6877:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>a</li></span> <span id="LC3" class="line" lang="plaintext"><li>b</li></span> <span id="LC4" class="line" lang="plaintext"><li>c</li></span> @@ -5163,8 +6396,11 @@ item:</p> <span id="LC9" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-291">Example 291</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5723:1-5729:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. a</span> +<pre data-sourcepos="6884:1-6890:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. a</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> 2. b</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -5172,7 +6408,7 @@ item:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5731:1-5743:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> +<pre data-sourcepos="6892:1-6904:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>a</p></span> <span id="LC4" class="line" lang="plaintext"></li></span> @@ -5185,11 +6421,14 @@ item:</p> <span id="LC11" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5745:1-5747:52" dir="auto">Note, however, that list items may not be indented more than +</div> +<p data-sourcepos="6907:1-6909:52" dir="auto">Note, however, that list items may not be indented more than three spaces. Here <code>- e</code> is treated as a paragraph continuation line, because it is indented more than three spaces:</p> +<div> +<div><a href="#example-292">Example 292</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5749:1-5755:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> +<pre data-sourcepos="6914:1-6920:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> <span id="LC2" class="line" lang="plaintext"> - b</span> <span id="LC3" class="line" lang="plaintext"> - c</span> <span id="LC4" class="line" lang="plaintext"> - d</span> @@ -5197,7 +6436,7 @@ line, because it is indented more than three spaces:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5757:1-5765:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="6922:1-6930:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>a</li></span> <span id="LC3" class="line" lang="plaintext"><li>b</li></span> <span id="LC4" class="line" lang="plaintext"><li>c</li></span> @@ -5206,11 +6445,14 @@ line, because it is indented more than three spaces:</p> <span id="LC7" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5767:1-5769:11" dir="auto">And here, <code>3. c</code> is treated as in indented code block, +</div> +<p data-sourcepos="6933:1-6935:11" dir="auto">And here, <code>3. c</code> is treated as in indented code block, because it is indented four spaces and preceded by a blank line.</p> +<div> +<div><a href="#example-293">Example 293</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5771:1-5777:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. a</span> +<pre data-sourcepos="6940:1-6946:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. a</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> 2. b</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -5218,7 +6460,7 @@ blank line.</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5779:1-5790:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> +<pre data-sourcepos="6948:1-6959:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>a</p></span> <span id="LC4" class="line" lang="plaintext"></li></span> @@ -5230,17 +6472,20 @@ blank line.</p> <span id="LC10" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5793:1-5794:22" dir="auto">This is a loose list, because there is a blank line between +</div> +<p data-sourcepos="6963:1-6964:22" dir="auto">This is a loose list, because there is a blank line between two of the list items:</p> +<div> +<div><a href="#example-294">Example 294</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5796:1-5801:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> +<pre data-sourcepos="6969:1-6974:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> <span id="LC2" class="line" lang="plaintext">- b</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">- c</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5803:1-5815:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="6976:1-6988:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>a</p></span> <span id="LC4" class="line" lang="plaintext"></li></span> @@ -5253,16 +6498,19 @@ two of the list items:</p> <span id="LC11" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5818:1-5818:37" dir="auto">So is this, with a empty second item:</p> +</div> +<p data-sourcepos="6992:1-6992:37" dir="auto">So is this, with a empty second item:</p> +<div> +<div><a href="#example-295">Example 295</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5820:1-5825:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* a</span> +<pre data-sourcepos="6997:1-7002:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* a</span> <span id="LC2" class="line" lang="plaintext">*</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">* c</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5827:1-5837:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="7004:1-7014:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>a</p></span> <span id="LC4" class="line" lang="plaintext"></li></span> @@ -5273,11 +6521,14 @@ two of the list items:</p> <span id="LC9" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5840:1-5842:31" dir="auto">These are loose lists, even though there is no space between the items, +</div> +<p data-sourcepos="7018:1-7020:31" dir="auto">These are loose lists, even though there is no space between the items, because one of the items directly contains two block-level elements with a blank line between them:</p> +<div> +<div><a href="#example-296">Example 296</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5844:1-5850:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> +<pre data-sourcepos="7025:1-7031:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> <span id="LC2" class="line" lang="plaintext">- b</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext"> c</span> @@ -5285,7 +6536,7 @@ with a blank line between them:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5852:1-5865:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="7033:1-7046:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>a</p></span> <span id="LC4" class="line" lang="plaintext"></li></span> @@ -5299,8 +6550,11 @@ with a blank line between them:</p> <span id="LC12" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-297">Example 297</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5868:1-5874:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> +<pre data-sourcepos="7053:1-7059:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> <span id="LC2" class="line" lang="plaintext">- b</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext"> [ref]: /url</span> @@ -5308,7 +6562,7 @@ with a blank line between them:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5876:1-5888:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="7061:1-7073:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>a</p></span> <span id="LC4" class="line" lang="plaintext"></li></span> @@ -5321,9 +6575,12 @@ with a blank line between them:</p> <span id="LC11" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5891:1-5891:66" dir="auto">This is a tight list, because the blank lines are in a code block:</p> +</div> +<p data-sourcepos="7077:1-7077:66" dir="auto">This is a tight list, because the blank lines are in a code block:</p> +<div> +<div><a href="#example-298">Example 298</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5893:1-5901:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> +<pre data-sourcepos="7082:1-7090:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> <span id="LC2" class="line" lang="plaintext">- ```</span> <span id="LC3" class="line" lang="plaintext"> b</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -5333,7 +6590,7 @@ with a blank line between them:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5903:1-5914:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="7092:1-7103:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>a</li></span> <span id="LC3" class="line" lang="plaintext"><li></span> <span id="LC4" class="line" lang="plaintext"><pre><code>b</span> @@ -5345,11 +6602,14 @@ with a blank line between them:</p> <span id="LC10" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5917:1-5919:24" dir="auto">This is a tight list, because the blank line is between two +</div> +<p data-sourcepos="7107:1-7109:24" dir="auto">This is a tight list, because the blank line is between two paragraphs of a sublist. So the sublist is loose while the outer list is tight:</p> +<div> +<div><a href="#example-299">Example 299</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5921:1-5927:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> +<pre data-sourcepos="7114:1-7120:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> <span id="LC2" class="line" lang="plaintext"> - b</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext"> c</span> @@ -5357,7 +6617,7 @@ the outer list is tight:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5929:1-5941:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="7122:1-7134:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>a</span> <span id="LC3" class="line" lang="plaintext"><ul></span> <span id="LC4" class="line" lang="plaintext"><li></span> @@ -5370,17 +6630,20 @@ the outer list is tight:</p> <span id="LC11" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5944:1-5945:12" dir="auto">This is a tight list, because the blank line is inside the +</div> +<p data-sourcepos="7138:1-7139:12" dir="auto">This is a tight list, because the blank line is inside the block quote:</p> +<div> +<div><a href="#example-300">Example 300</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5947:1-5952:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* a</span> +<pre data-sourcepos="7144:1-7149:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* a</span> <span id="LC2" class="line" lang="plaintext"> > b</span> <span id="LC3" class="line" lang="plaintext"> ></span> <span id="LC4" class="line" lang="plaintext">* c</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5954:1-5963:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="7151:1-7160:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>a</span> <span id="LC3" class="line" lang="plaintext"><blockquote></span> <span id="LC4" class="line" lang="plaintext"><p>b</p></span> @@ -5390,10 +6653,13 @@ block quote:</p> <span id="LC8" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5966:1-5967:33" dir="auto">This list is tight, because the consecutive block elements +</div> +<p data-sourcepos="7164:1-7165:33" dir="auto">This list is tight, because the consecutive block elements are not separated by blank lines:</p> +<div> +<div><a href="#example-301">Example 301</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5969:1-5976:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> +<pre data-sourcepos="7170:1-7177:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> <span id="LC2" class="line" lang="plaintext"> > b</span> <span id="LC3" class="line" lang="plaintext"> ```</span> <span id="LC4" class="line" lang="plaintext"> c</span> @@ -5402,7 +6668,7 @@ are not separated by blank lines:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5978:1-5989:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="7179:1-7190:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>a</span> <span id="LC3" class="line" lang="plaintext"><blockquote></span> <span id="LC4" class="line" lang="plaintext"><p>b</p></span> @@ -5414,24 +6680,30 @@ are not separated by blank lines:</p> <span id="LC10" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="5992:1-5992:33" dir="auto">A single-paragraph list is tight:</p> +</div> +<p data-sourcepos="7194:1-7194:33" dir="auto">A single-paragraph list is tight:</p> +<div> +<div><a href="#example-302">Example 302</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5994:1-5996:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span></code></pre> +<pre data-sourcepos="7199:1-7201:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="5998:1-6002:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="7203:1-7207:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>a</li></span> <span id="LC3" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-303">Example 303</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6005:1-6008:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> +<pre data-sourcepos="7214:1-7217:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> <span id="LC2" class="line" lang="plaintext"> - b</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6010:1-6018:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="7219:1-7227:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li>a</span> <span id="LC3" class="line" lang="plaintext"><ul></span> <span id="LC4" class="line" lang="plaintext"><li>b</li></span> @@ -5440,10 +6712,13 @@ are not separated by blank lines:</p> <span id="LC7" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6021:1-6022:36" dir="auto">This list is loose, because of the blank line between the +</div> +<p data-sourcepos="7231:1-7232:36" dir="auto">This list is loose, because of the blank line between the two block elements in the list item:</p> +<div> +<div><a href="#example-304">Example 304</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6024:1-6030:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. ```</span> +<pre data-sourcepos="7237:1-7243:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. ```</span> <span id="LC2" class="line" lang="plaintext"> foo</span> <span id="LC3" class="line" lang="plaintext"> ```</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -5451,7 +6726,7 @@ two block elements in the list item:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6032:1-6040:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> +<pre data-sourcepos="7245:1-7253:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ol></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><pre><code>foo</span> <span id="LC4" class="line" lang="plaintext"></code></pre></span> @@ -5460,16 +6735,19 @@ two block elements in the list item:</p> <span id="LC7" class="line" lang="plaintext"></ol></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6043:1-6043:51" dir="auto">Here the outer list is loose, the inner list tight:</p> +</div> +<p data-sourcepos="7257:1-7257:51" dir="auto">Here the outer list is loose, the inner list tight:</p> +<div> +<div><a href="#example-305">Example 305</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6045:1-6050:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* foo</span> +<pre data-sourcepos="7262:1-7267:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* foo</span> <span id="LC2" class="line" lang="plaintext"> * bar</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext"> baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6052:1-6062:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="7269:1-7279:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>foo</p></span> <span id="LC4" class="line" lang="plaintext"><ul></span> @@ -5480,8 +6758,11 @@ two block elements in the list item:</p> <span id="LC9" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-306">Example 306</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6065:1-6073:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> +<pre data-sourcepos="7286:1-7294:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span> <span id="LC2" class="line" lang="plaintext"> - b</span> <span id="LC3" class="line" lang="plaintext"> - c</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -5491,7 +6772,7 @@ two block elements in the list item:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6075:1-6092:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="7296:1-7313:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p>a</p></span> <span id="LC4" class="line" lang="plaintext"><ul></span> @@ -5509,46 +6790,58 @@ two block elements in the list item:</p> <span id="LC16" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<h1 data-sourcepos="6095:1-6095:9" dir="auto"> +</div> +<h1 data-sourcepos="7317:1-7317:9" dir="auto"> <a id="user-content-inlines" class="anchor" href="#inlines" aria-hidden="true"></a>Inlines</h1> -<p data-sourcepos="6097:1-6099:21" dir="auto">Inlines are parsed sequentially from the beginning of the character +<p data-sourcepos="7319:1-7321:21" dir="auto">Inlines are parsed sequentially from the beginning of the character stream to the end (left to right, in left-to-right languages). Thus, for example, in</p> +<div> +<div><a href="#example-307">Example 307</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6101:1-6103:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`hi`lo`</span></code></pre> +<pre data-sourcepos="7326:1-7328:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`hi`lo`</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6105:1-6107:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>hi</code>lo`</p></span></code></pre> +<pre data-sourcepos="7330:1-7332:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>hi</code>lo`</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6109:1-6110:9" dir="auto"><code>hi</code> is parsed as code, leaving the backtick at the end as a literal +</div> +<p data-sourcepos="7335:1-7336:9" dir="auto"><code>hi</code> is parsed as code, leaving the backtick at the end as a literal backtick.</p> -<h2 data-sourcepos="6113:1-6113:20" dir="auto"> +<h2 data-sourcepos="7339:1-7339:20" dir="auto"> <a id="user-content-backslash-escapes" class="anchor" href="#backslash-escapes" aria-hidden="true"></a>Backslash escapes</h2> -<p data-sourcepos="6115:1-6115:57" dir="auto">Any ASCII punctuation character may be backslash-escaped:</p> +<p data-sourcepos="7341:1-7341:57" dir="auto">Any ASCII punctuation character may be backslash-escaped:</p> +<div> +<div><a href="#example-308">Example 308</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6117:1-6119:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~</span></code></pre> +<pre data-sourcepos="7346:1-7348:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\!\"\#\$\%\&\'\(\)\*\+\,\-\.\/\:\;\<\=\>\?\@\[\\\]\^\_\`\{\|\}\~</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6121:1-6123:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>!&quot;#$%&amp;'()*+,-./:;&lt;=&gt;?@[\]^_`{|}~</p></span></code></pre> +<pre data-sourcepos="7350:1-7352:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>!&quot;#$%&amp;'()*+,-./:;&lt;=&gt;?@[\]^_`{|}~</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6126:1-6127:12" dir="auto">Backslashes before other characters are treated as literal +</div> +<p data-sourcepos="7356:1-7357:12" dir="auto">Backslashes before other characters are treated as literal backslashes:</p> +<div> +<div><a href="#example-309">Example 309</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6129:1-6131:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\→\A\a\ \3\φ\«</span></code></pre> +<pre data-sourcepos="7362:1-7364:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\→\A\a\ \3\φ\«</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6133:1-6135:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>\→\A\a\ \3\φ\«</p></span></code></pre> +<pre data-sourcepos="7366:1-7368:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>\→\A\a\ \3\φ\«</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6138:1-6139:39" dir="auto">Escaped characters are treated as regular characters and do +</div> +<p data-sourcepos="7372:1-7373:39" dir="auto">Escaped characters are treated as regular characters and do not have their usual Markdown meanings:</p> +<div> +<div><a href="#example-310">Example 310</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6141:1-6151:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\*not emphasized*</span> +<pre data-sourcepos="7378:1-7388:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\*not emphasized*</span> <span id="LC2" class="line" lang="plaintext">\<br/> not a tag</span> <span id="LC3" class="line" lang="plaintext">\[not a link](/foo)</span> <span id="LC4" class="line" lang="plaintext">\`not code`</span> @@ -5560,7 +6853,7 @@ not have their usual Markdown meanings:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6153:1-6163:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*not emphasized*</span> +<pre data-sourcepos="7390:1-7400:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*not emphasized*</span> <span id="LC2" class="line" lang="plaintext">&lt;br/&gt; not a tag</span> <span id="LC3" class="line" lang="plaintext">[not a link](/foo)</span> <span id="LC4" class="line" lang="plaintext">`not code`</span> @@ -5571,115 +6864,146 @@ not have their usual Markdown meanings:</p> <span id="LC9" class="line" lang="plaintext">&amp;ouml; not a character entity</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6166:1-6166:65" dir="auto">If a backslash is itself escaped, the following character is not:</p> +</div> +<p data-sourcepos="7404:1-7404:65" dir="auto">If a backslash is itself escaped, the following character is not:</p> +<div> +<div><a href="#example-311">Example 311</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6168:1-6170:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\\*emphasis*</span></code></pre> +<pre data-sourcepos="7409:1-7411:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\\*emphasis*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6172:1-6174:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>\<em>emphasis</em></p></span></code></pre> +<pre data-sourcepos="7413:1-7415:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>\<em>emphasis</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6177:1-6177:58" dir="auto">A backslash at the end of the line is a [hard line break]:</p> +</div> +<p data-sourcepos="7419:1-7419:58" dir="auto">A backslash at the end of the line is a [hard line break]:</p> +<div> +<div><a href="#example-312">Example 312</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6179:1-6182:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo\</span> +<pre data-sourcepos="7424:1-7427:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo\</span> <span id="LC2" class="line" lang="plaintext">bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6184:1-6187:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<br /></span> +<pre data-sourcepos="7429:1-7432:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<br /></span> <span id="LC2" class="line" lang="plaintext">bar</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6190:1-6191:9" dir="auto">Backslash escapes do not work in code blocks, code spans, autolinks, or +</div> +<p data-sourcepos="7436:1-7437:9" dir="auto">Backslash escapes do not work in code blocks, code spans, autolinks, or raw HTML:</p> +<div> +<div><a href="#example-313">Example 313</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6193:1-6195:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`` \[\` ``</span></code></pre> +<pre data-sourcepos="7442:1-7444:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`` \[\` ``</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6197:1-6199:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>\[\`</code></p></span></code></pre> +<pre data-sourcepos="7446:1-7448:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>\[\`</code></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-314">Example 314</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6202:1-6204:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> \[\]</span></code></pre> +<pre data-sourcepos="7455:1-7457:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> \[\]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6206:1-6209:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>\[\]</span> +<pre data-sourcepos="7459:1-7462:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>\[\]</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-315">Example 315</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6212:1-6216:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~</span> +<pre data-sourcepos="7469:1-7473:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~</span> <span id="LC2" class="line" lang="plaintext">\[\]</span> <span id="LC3" class="line" lang="plaintext">~~~</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6218:1-6221:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>\[\]</span> +<pre data-sourcepos="7475:1-7478:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>\[\]</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-316">Example 316</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6224:1-6226:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><http://example.com?find=\*></span></code></pre> +<pre data-sourcepos="7485:1-7487:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><http://example.com?find=\*></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6228:1-6230:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://example.com?find=%5C*">http://example.com?find=\*</a></p></span></code></pre> +<pre data-sourcepos="7489:1-7491:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://example.com?find=%5C*">http://example.com?find=\*</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-317">Example 317</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6233:1-6235:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="/bar\/)"></span></code></pre> +<pre data-sourcepos="7498:1-7500:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="/bar\/)"></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6237:1-6239:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="/bar\/)"></span></code></pre> +<pre data-sourcepos="7502:1-7504:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="/bar\/)"></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6242:1-6243:60" dir="auto">But they work in all other contexts, including URLs and link titles, +</div> +<p data-sourcepos="7508:1-7509:60" dir="auto">But they work in all other contexts, including URLs and link titles, link references, and [info strings] in [fenced code blocks]:</p> +<div> +<div><a href="#example-318">Example 318</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6245:1-6247:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo](/bar\* "ti\*tle")</span></code></pre> +<pre data-sourcepos="7514:1-7516:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo](/bar\* "ti\*tle")</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6249:1-6251:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/bar*" title="ti*tle">foo</a></p></span></code></pre> +<pre data-sourcepos="7518:1-7520:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/bar*" title="ti*tle">foo</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-319">Example 319</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6254:1-6258:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span> +<pre data-sourcepos="7527:1-7531:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /bar\* "ti\*tle"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6260:1-6262:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/bar*" title="ti*tle">foo</a></p></span></code></pre> +<pre data-sourcepos="7533:1-7535:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/bar*" title="ti*tle">foo</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-320">Example 320</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6265:1-6269:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``` foo\+bar</span> +<pre data-sourcepos="7542:1-7546:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``` foo\+bar</span> <span id="LC2" class="line" lang="plaintext">foo</span> <span id="LC3" class="line" lang="plaintext">```</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6271:1-6274:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code class="language-foo+bar">foo</span> +<pre data-sourcepos="7548:1-7551:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code class="language-foo+bar">foo</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="6278:1-6278:42" dir="auto"> +</div> +<h2 data-sourcepos="7556:1-7556:42" dir="auto"> <a id="user-content-entity-and-numeric-character-references" class="anchor" href="#entity-and-numeric-character-references" aria-hidden="true"></a>Entity and numeric character references</h2> -<p data-sourcepos="6280:1-6282:30" dir="auto">Valid HTML entity references and numeric character references +<p data-sourcepos="7558:1-7560:30" dir="auto">Valid HTML entity references and numeric character references can be used in place of the corresponding Unicode character, with the following exceptions:</p> -<ul data-sourcepos="6284:1-6293:0" dir="auto"> -<li data-sourcepos="6284:1-6286:0"> -<p data-sourcepos="6284:3-6285:24">Entity and character references are not recognized in code +<ul data-sourcepos="7562:1-7571:0" dir="auto"> +<li data-sourcepos="7562:1-7564:0"> +<p data-sourcepos="7562:3-7563:24">Entity and character references are not recognized in code blocks and code spans.</p> </li> -<li data-sourcepos="6287:1-6293:0"> -<p data-sourcepos="6287:3-6292:9">Entity and character references cannot stand in place of +<li data-sourcepos="7565:1-7571:0"> +<p data-sourcepos="7565:3-7570:9">Entity and character references cannot stand in place of special characters that define structural elements in CommonMark. For example, although <code>&#42;</code> can be used in place of a literal <code>*</code> character, <code>&#42;</code> cannot replace @@ -5687,292 +7011,366 @@ in place of a literal <code>*</code> character, <code>&#42;</code> cannot re breaks.</p> </li> </ul> -<p data-sourcepos="6294:1-6296:49" dir="auto">Conforming CommonMark parsers need not store information about +<p data-sourcepos="7572:1-7574:49" dir="auto">Conforming CommonMark parsers need not store information about whether a particular character was represented in the source using a Unicode character or an entity reference.</p> -<p data-sourcepos="6298:1-6302:47" dir="auto"><a href="@">Entity references</a> consist of <code>&</code> + any of the valid +<p data-sourcepos="7576:1-7580:47" dir="auto"><a href="@">Entity references</a> consist of <code>&</code> + any of the valid HTML5 entity names + <code>;</code>. The document <a href="https://html.spec.whatwg.org/multipage/entities.json" rel="nofollow noreferrer noopener" target="_blank">https://html.spec.whatwg.org/multipage/entities.json</a> is used as an authoritative source for the valid entity references and their corresponding code points.</p> +<div> +<div><a href="#example-321">Example 321</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6304:1-6308:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&nbsp; &amp; &copy; &AElig; &Dcaron;</span> +<pre data-sourcepos="7585:1-7589:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&nbsp; &amp; &copy; &AElig; &Dcaron;</span> <span id="LC2" class="line" lang="plaintext">&frac34; &HilbertSpace; &DifferentialD;</span> <span id="LC3" class="line" lang="plaintext">&ClockwiseContourIntegral; &ngE;</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6310:1-6314:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p> &amp; © Æ Ď</span> +<pre data-sourcepos="7591:1-7595:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p> &amp; © Æ Ď</span> <span id="LC2" class="line" lang="plaintext">¾ ℋ ⅆ</span> <span id="LC3" class="line" lang="plaintext">∲ ≧̸</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6317:1-6323:58" dir="auto"><a href="@">Decimal numeric character +</div> +<p data-sourcepos="7599:1-7605:58" dir="auto"><a href="@">Decimal numeric character references</a> consist of <code>&#</code> + a string of 1--7 arabic digits + <code>;</code>. A numeric character reference is parsed as the corresponding Unicode character. Invalid Unicode code points will be replaced by the REPLACEMENT CHARACTER (<code>U+FFFD</code>). For security reasons, the code point <code>U+0000</code> will also be replaced by <code>U+FFFD</code>.</p> +<div> +<div><a href="#example-322">Example 322</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6325:1-6327:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&#35; &#1234; &#992; &#0;</span></code></pre> +<pre data-sourcepos="7610:1-7612:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&#35; &#1234; &#992; &#0;</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6329:1-6331:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p># Ӓ Ϡ �</p></span></code></pre> +<pre data-sourcepos="7614:1-7616:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p># Ӓ Ϡ �</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6334:1-6338:62" dir="auto"><a href="@">Hexadecimal numeric character +</div> +<p data-sourcepos="7620:1-7624:62" dir="auto"><a href="@">Hexadecimal numeric character references</a> consist of <code>&#</code> + either <code>X</code> or <code>x</code> + a string of 1-6 hexadecimal digits + <code>;</code>. They too are parsed as the corresponding Unicode character (this time specified with a hexadecimal numeral instead of decimal).</p> +<div> +<div><a href="#example-323">Example 323</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6340:1-6342:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&#X22; &#XD06; &#xcab;</span></code></pre> +<pre data-sourcepos="7629:1-7631:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&#X22; &#XD06; &#xcab;</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6344:1-6346:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&quot; ആ ಫ</p></span></code></pre> +<pre data-sourcepos="7633:1-7635:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&quot; ആ ಫ</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6349:1-6349:26" dir="auto">Here are some nonentities:</p> +</div> +<p data-sourcepos="7639:1-7639:26" dir="auto">Here are some nonentities:</p> +<div> +<div><a href="#example-324">Example 324</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6351:1-6356:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&nbsp &x; &#; &#x;</span> +<pre data-sourcepos="7644:1-7649:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&nbsp &x; &#; &#x;</span> <span id="LC2" class="line" lang="plaintext">&#987654321;</span> <span id="LC3" class="line" lang="plaintext">&#abcdef0;</span> <span id="LC4" class="line" lang="plaintext">&ThisIsNotDefined; &hi?;</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6358:1-6363:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&amp;nbsp &amp;x; &amp;#; &amp;#x;</span> +<pre data-sourcepos="7651:1-7656:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&amp;nbsp &amp;x; &amp;#; &amp;#x;</span> <span id="LC2" class="line" lang="plaintext">&amp;#987654321;</span> <span id="LC3" class="line" lang="plaintext">&amp;#abcdef0;</span> <span id="LC4" class="line" lang="plaintext">&amp;ThisIsNotDefined; &amp;hi?;</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6366:1-6368:60" dir="auto">Although HTML5 does accept some entity references +</div> +<p data-sourcepos="7660:1-7662:60" dir="auto">Although HTML5 does accept some entity references without a trailing semicolon (such as <code>&copy</code>), these are not recognized here, because it makes the grammar too ambiguous:</p> +<div> +<div><a href="#example-325">Example 325</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6370:1-6372:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&copy</span></code></pre> +<pre data-sourcepos="7667:1-7669:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&copy</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6374:1-6376:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&amp;copy</p></span></code></pre> +<pre data-sourcepos="7671:1-7673:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&amp;copy</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6379:1-6380:39" dir="auto">Strings that are not on the list of HTML5 named entities are not +</div> +<p data-sourcepos="7677:1-7678:39" dir="auto">Strings that are not on the list of HTML5 named entities are not recognized as entity references either:</p> +<div> +<div><a href="#example-326">Example 326</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6382:1-6384:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&MadeUpEntity;</span></code></pre> +<pre data-sourcepos="7683:1-7685:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&MadeUpEntity;</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6386:1-6388:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&amp;MadeUpEntity;</p></span></code></pre> +<pre data-sourcepos="7687:1-7689:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&amp;MadeUpEntity;</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6391:1-6393:62" dir="auto">Entity and numeric character references are recognized in any +</div> +<p data-sourcepos="7693:1-7695:62" dir="auto">Entity and numeric character references are recognized in any context besides code spans or code blocks, including URLs, [link titles], and [fenced code block][] [info strings]:</p> +<div> +<div><a href="#example-327">Example 327</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6395:1-6397:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="&ouml;&ouml;.html"></span></code></pre> +<pre data-sourcepos="7700:1-7702:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="&ouml;&ouml;.html"></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6399:1-6401:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="&ouml;&ouml;.html"></span></code></pre> +<pre data-sourcepos="7704:1-7706:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="&ouml;&ouml;.html"></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-328">Example 328</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6404:1-6406:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo](/f&ouml;&ouml; "f&ouml;&ouml;")</span></code></pre> +<pre data-sourcepos="7713:1-7715:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo](/f&ouml;&ouml; "f&ouml;&ouml;")</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6408:1-6410:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/f%C3%B6%C3%B6" title="föö">foo</a></p></span></code></pre> +<pre data-sourcepos="7717:1-7719:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/f%C3%B6%C3%B6" title="föö">foo</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-329">Example 329</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6413:1-6417:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span> +<pre data-sourcepos="7726:1-7730:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /f&ouml;&ouml; "f&ouml;&ouml;"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6419:1-6421:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/f%C3%B6%C3%B6" title="föö">foo</a></p></span></code></pre> +<pre data-sourcepos="7732:1-7734:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/f%C3%B6%C3%B6" title="föö">foo</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-330">Example 330</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6424:1-6428:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``` f&ouml;&ouml;</span> +<pre data-sourcepos="7741:1-7745:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``` f&ouml;&ouml;</span> <span id="LC2" class="line" lang="plaintext">foo</span> <span id="LC3" class="line" lang="plaintext">```</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6430:1-6433:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code class="language-föö">foo</span> +<pre data-sourcepos="7747:1-7750:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code class="language-föö">foo</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6436:1-6437:35" dir="auto">Entity and numeric character references are treated as literal +</div> +<p data-sourcepos="7754:1-7755:35" dir="auto">Entity and numeric character references are treated as literal text in code spans and code blocks:</p> +<div> +<div><a href="#example-331">Example 331</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6439:1-6441:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`f&ouml;&ouml;`</span></code></pre> +<pre data-sourcepos="7760:1-7762:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`f&ouml;&ouml;`</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6443:1-6445:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>f&amp;ouml;&amp;ouml;</code></p></span></code></pre> +<pre data-sourcepos="7764:1-7766:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>f&amp;ouml;&amp;ouml;</code></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-332">Example 332</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6448:1-6450:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> f&ouml;f&ouml;</span></code></pre> +<pre data-sourcepos="7773:1-7775:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> f&ouml;f&ouml;</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6452:1-6455:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>f&amp;ouml;f&amp;ouml;</span> +<pre data-sourcepos="7777:1-7780:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre><code>f&amp;ouml;f&amp;ouml;</span> <span id="LC2" class="line" lang="plaintext"></code></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6458:1-6460:10" dir="auto">Entity and numeric character references cannot be used +</div> +<p data-sourcepos="7784:1-7786:10" dir="auto">Entity and numeric character references cannot be used in place of symbols indicating structure in CommonMark documents.</p> +<div> +<div><a href="#example-333">Example 333</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6462:1-6465:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&#42;foo&#42;</span> +<pre data-sourcepos="7791:1-7794:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&#42;foo&#42;</span> <span id="LC2" class="line" lang="plaintext">*foo*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6467:1-6470:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*foo*</span> +<pre data-sourcepos="7796:1-7799:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*foo*</span> <span id="LC2" class="line" lang="plaintext"><em>foo</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-334">Example 334</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6472:1-6476:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&#42; foo</span> +<pre data-sourcepos="7805:1-7809:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&#42; foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">* foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6478:1-6483:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>* foo</p></span> +<pre data-sourcepos="7811:1-7816:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>* foo</p></span> <span id="LC2" class="line" lang="plaintext"><ul></span> <span id="LC3" class="line" lang="plaintext"><li>foo</li></span> <span id="LC4" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-335">Example 335</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6485:1-6487:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo&#10;&#10;bar</span></code></pre> +<pre data-sourcepos="7822:1-7824:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo&#10;&#10;bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6489:1-6493:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</span> +<pre data-sourcepos="7826:1-7830:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">bar</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-336">Example 336</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6495:1-6497:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&#9;foo</span></code></pre> +<pre data-sourcepos="7836:1-7838:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&#9;foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6499:1-6501:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>→foo</p></span></code></pre> +<pre data-sourcepos="7840:1-7842:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>→foo</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-337">Example 337</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6504:1-6506:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[a](url &quot;tit&quot;)</span></code></pre> +<pre data-sourcepos="7849:1-7851:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[a](url &quot;tit&quot;)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6508:1-6510:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[a](url &quot;tit&quot;)</p></span></code></pre> +<pre data-sourcepos="7853:1-7855:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[a](url &quot;tit&quot;)</p></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="6513:1-6513:13" dir="auto"> +</div> +<h2 data-sourcepos="7859:1-7859:13" dir="auto"> <a id="user-content-code-spans" class="anchor" href="#code-spans" aria-hidden="true"></a>Code spans</h2> -<p data-sourcepos="6515:1-6517:36" dir="auto">A <a href="@">backtick string</a> +<p data-sourcepos="7861:1-7863:36" dir="auto">A <a href="@">backtick string</a> is a string of one or more backtick characters (<code>`</code>) that is neither preceded nor followed by a backtick.</p> -<p data-sourcepos="6519:1-6522:15" dir="auto">A <a href="@">code span</a> begins with a backtick string and ends with +<p data-sourcepos="7865:1-7868:15" dir="auto">A <a href="@">code span</a> begins with a backtick string and ends with a backtick string of equal length. The contents of the code span are the characters between the two backtick strings, normalized in the following ways:</p> -<ul data-sourcepos="6524:1-6531:0" dir="auto"> -<li data-sourcepos="6524:1-6524:50">First, [line endings] are converted to [spaces].</li> -<li data-sourcepos="6525:1-6531:0">If the resulting string both begins <em>and</em> ends with a [space] +<ul data-sourcepos="7870:1-7877:0" dir="auto"> +<li data-sourcepos="7870:1-7870:50">First, [line endings] are converted to [spaces].</li> +<li data-sourcepos="7871:1-7877:0">If the resulting string both begins <em>and</em> ends with a [space] character, but does not consist entirely of [space] characters, a single [space] character is removed from the front and back. This allows you to include code that begins or ends with backtick characters, which must be separated by whitespace from the opening or closing backtick strings.</li> </ul> -<p data-sourcepos="6532:1-6532:27" dir="auto">This is a simple code span:</p> +<p data-sourcepos="7878:1-7878:27" dir="auto">This is a simple code span:</p> +<div> +<div><a href="#example-338">Example 338</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6534:1-6536:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`foo`</span></code></pre> +<pre data-sourcepos="7883:1-7885:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`foo`</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6538:1-6540:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo</code></p></span></code></pre> +<pre data-sourcepos="7887:1-7889:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo</code></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6543:1-6545:15" dir="auto">Here two backticks are used, because the code contains a backtick. +</div> +<p data-sourcepos="7893:1-7895:15" dir="auto">Here two backticks are used, because the code contains a backtick. This example also illustrates stripping of a single leading and trailing space:</p> +<div> +<div><a href="#example-339">Example 339</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6547:1-6549:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`` foo ` bar ``</span></code></pre> +<pre data-sourcepos="7900:1-7902:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`` foo ` bar ``</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6551:1-6553:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo ` bar</code></p></span></code></pre> +<pre data-sourcepos="7904:1-7906:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo ` bar</code></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6556:1-6557:7" dir="auto">This example shows the motivation for stripping leading and trailing +</div> +<p data-sourcepos="7910:1-7911:7" dir="auto">This example shows the motivation for stripping leading and trailing spaces:</p> +<div> +<div><a href="#example-340">Example 340</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6559:1-6561:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` `` `</span></code></pre> +<pre data-sourcepos="7916:1-7918:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` `` `</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6563:1-6565:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>``</code></p></span></code></pre> +<pre data-sourcepos="7920:1-7922:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>``</code></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6567:1-6567:39" dir="auto">Note that only <em>one</em> space is stripped:</p> +</div> +<p data-sourcepos="7925:1-7925:39" dir="auto">Note that only <em>one</em> space is stripped:</p> +<div> +<div><a href="#example-341">Example 341</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6569:1-6571:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` `` `</span></code></pre> +<pre data-sourcepos="7930:1-7932:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` `` `</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6573:1-6575:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code> `` </code></p></span></code></pre> +<pre data-sourcepos="7934:1-7936:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code> `` </code></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6577:1-6578:20" dir="auto">The stripping only happens if the space is on both +</div> +<p data-sourcepos="7939:1-7940:20" dir="auto">The stripping only happens if the space is on both sides of the string:</p> +<div> +<div><a href="#example-342">Example 342</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6580:1-6582:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` a`</span></code></pre> +<pre data-sourcepos="7945:1-7947:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` a`</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6584:1-6586:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code> a</code></p></span></code></pre> +<pre data-sourcepos="7949:1-7951:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code> a</code></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6588:1-6589:21" dir="auto">Only [spaces], and not [unicode whitespace] in general, are +</div> +<p data-sourcepos="7954:1-7955:21" dir="auto">Only [spaces], and not [unicode whitespace] in general, are stripped in this way:</p> +<div> +<div><a href="#example-343">Example 343</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6591:1-6593:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` b `</span></code></pre> +<pre data-sourcepos="7960:1-7962:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` b `</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6595:1-6597:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code> b </code></p></span></code></pre> +<pre data-sourcepos="7964:1-7966:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code> b </code></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6599:1-6599:58" dir="auto">No stripping occurs if the code span contains only spaces:</p> +</div> +<p data-sourcepos="7969:1-7969:58" dir="auto">No stripping occurs if the code span contains only spaces:</p> +<div> +<div><a href="#example-344">Example 344</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6601:1-6604:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` `</span> +<pre data-sourcepos="7974:1-7977:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` `</span> <span id="LC2" class="line" lang="plaintext">` `</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6606:1-6609:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code> </code></span> +<pre data-sourcepos="7979:1-7982:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code> </code></span> <span id="LC2" class="line" lang="plaintext"><code> </code></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6612:1-6612:39" dir="auto">[Line endings] are treated like spaces:</p> +</div> +<p data-sourcepos="7986:1-7986:39" dir="auto">[Line endings] are treated like spaces:</p> +<div> +<div><a href="#example-345">Example 345</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6614:1-6620:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``</span> +<pre data-sourcepos="7991:1-7997:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``</span> <span id="LC2" class="line" lang="plaintext">foo</span> <span id="LC3" class="line" lang="plaintext">bar </span> <span id="LC4" class="line" lang="plaintext">baz</span> @@ -5980,306 +7378,349 @@ stripped in this way:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6622:1-6624:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo bar baz</code></p></span></code></pre> +<pre data-sourcepos="7999:1-8001:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo bar baz</code></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-346">Example 346</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6626:1-6630:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``</span> +<pre data-sourcepos="8007:1-8011:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``</span> <span id="LC2" class="line" lang="plaintext">foo </span> <span id="LC3" class="line" lang="plaintext">``</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6632:1-6634:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo </code></p></span></code></pre> +<pre data-sourcepos="8013:1-8015:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo </code></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6637:1-6637:34" dir="auto">Interior spaces are not collapsed:</p> +</div> +<p data-sourcepos="8019:1-8019:34" dir="auto">Interior spaces are not collapsed:</p> +<div> +<div><a href="#example-347">Example 347</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6639:1-6642:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`foo bar </span> +<pre data-sourcepos="8024:1-8027:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`foo bar </span> <span id="LC2" class="line" lang="plaintext">baz`</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6644:1-6646:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo bar baz</code></p></span></code></pre> +<pre data-sourcepos="8029:1-8031:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo bar baz</code></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6648:1-6650:26" dir="auto">Note that browsers will typically collapse consecutive spaces +</div> +<p data-sourcepos="8034:1-8036:26" dir="auto">Note that browsers will typically collapse consecutive spaces when rendering <code><code></code> elements, so it is recommended that the following CSS be used:</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6652:5-6654:0" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">code{white-space: pre-wrap;}</span></code></pre> +<pre data-sourcepos="8038:5-8040:0" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">code{white-space: pre-wrap;}</span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6655:1-6656:22" dir="auto">Note that backslash escapes do not work in code spans. All backslashes +<p data-sourcepos="8041:1-8042:22" dir="auto">Note that backslash escapes do not work in code spans. All backslashes are treated literally:</p> +<div> +<div><a href="#example-348">Example 348</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6658:1-6660:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`foo\`bar`</span></code></pre> +<pre data-sourcepos="8047:1-8049:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`foo\`bar`</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6662:1-6664:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo\</code>bar`</p></span></code></pre> +<pre data-sourcepos="8051:1-8053:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo\</code>bar`</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6667:1-6669:59" dir="auto">Backslash escapes are never needed, because one can always choose a +</div> +<p data-sourcepos="8057:1-8059:59" dir="auto">Backslash escapes are never needed, because one can always choose a string of <em>n</em> backtick characters as delimiters, where the code does not contain any strings of exactly <em>n</em> backtick characters.</p> +<div> +<div><a href="#example-349">Example 349</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6671:1-6673:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``foo`bar``</span></code></pre> +<pre data-sourcepos="8064:1-8066:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``foo`bar``</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6675:1-6677:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo`bar</code></p></span></code></pre> +<pre data-sourcepos="8068:1-8070:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo`bar</code></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-350">Example 350</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6679:1-6681:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` foo `` bar `</span></code></pre> +<pre data-sourcepos="8076:1-8078:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` foo `` bar `</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6683:1-6685:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo `` bar</code></p></span></code></pre> +<pre data-sourcepos="8080:1-8082:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>foo `` bar</code></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6688:1-6691:5" dir="auto">Code span backticks have higher precedence than any other inline +</div> +<p data-sourcepos="8086:1-8089:5" dir="auto">Code span backticks have higher precedence than any other inline constructs except HTML tags and autolinks. Thus, for example, this is not parsed as emphasized text, since the second <code>*</code> is part of a code span:</p> +<div> +<div><a href="#example-351">Example 351</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6693:1-6695:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo`*`</span></code></pre> +<pre data-sourcepos="8094:1-8096:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo`*`</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6697:1-6699:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*foo<code>*</code></p></span></code></pre> +<pre data-sourcepos="8098:1-8100:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*foo<code>*</code></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6702:1-6702:33" dir="auto">And this is not parsed as a link:</p> +</div> +<p data-sourcepos="8104:1-8104:33" dir="auto">And this is not parsed as a link:</p> +<div> +<div><a href="#example-352">Example 352</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6704:1-6706:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[not a `link](/foo`)</span></code></pre> +<pre data-sourcepos="8109:1-8111:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[not a `link](/foo`)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6708:1-6710:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[not a <code>link](/foo</code>)</p></span></code></pre> +<pre data-sourcepos="8113:1-8115:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[not a <code>link](/foo</code>)</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6713:1-6714:19" dir="auto">Code spans, HTML tags, and autolinks have the same precedence. +</div> +<p data-sourcepos="8119:1-8120:19" dir="auto">Code spans, HTML tags, and autolinks have the same precedence. Thus, this is code:</p> +<div> +<div><a href="#example-353">Example 353</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6716:1-6718:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`<a href="`">`</span></code></pre> +<pre data-sourcepos="8125:1-8127:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`<a href="`">`</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6720:1-6722:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>&lt;a href=&quot;</code>&quot;&gt;`</p></span></code></pre> +<pre data-sourcepos="8129:1-8131:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>&lt;a href=&quot;</code>&quot;&gt;`</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6725:1-6725:24" dir="auto">But this is an HTML tag:</p> +</div> +<p data-sourcepos="8135:1-8135:24" dir="auto">But this is an HTML tag:</p> +<div> +<div><a href="#example-354">Example 354</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6727:1-6729:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="`">`</span></code></pre> +<pre data-sourcepos="8140:1-8142:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="`">`</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6731:1-6733:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="`">`</p></span></code></pre> +<pre data-sourcepos="8144:1-8146:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="`">`</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6736:1-6736:17" dir="auto">And this is code:</p> +</div> +<p data-sourcepos="8150:1-8150:17" dir="auto">And this is code:</p> +<div> +<div><a href="#example-355">Example 355</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6738:1-6740:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`<http://foo.bar.`baz>`</span></code></pre> +<pre data-sourcepos="8155:1-8157:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`<http://foo.bar.`baz>`</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6742:1-6744:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>&lt;http://foo.bar.</code>baz&gt;`</p></span></code></pre> +<pre data-sourcepos="8159:1-8161:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>&lt;http://foo.bar.</code>baz&gt;`</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6747:1-6747:24" dir="auto">But this is an autolink:</p> +</div> +<p data-sourcepos="8165:1-8165:24" dir="auto">But this is an autolink:</p> +<div> +<div><a href="#example-356">Example 356</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6749:1-6751:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><http://foo.bar.`baz>`</span></code></pre> +<pre data-sourcepos="8170:1-8172:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><http://foo.bar.`baz>`</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6753:1-6755:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://foo.bar.%60baz">http://foo.bar.`baz</a>`</p></span></code></pre> +<pre data-sourcepos="8174:1-8176:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://foo.bar.%60baz">http://foo.bar.`baz</a>`</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6758:1-6759:31" dir="auto">When a backtick string is not closed by a matching backtick string, +</div> +<p data-sourcepos="8180:1-8181:31" dir="auto">When a backtick string is not closed by a matching backtick string, we just have literal backticks:</p> +<div> +<div><a href="#example-357">Example 357</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6761:1-6763:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```foo``</span></code></pre> +<pre data-sourcepos="8186:1-8188:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```foo``</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6765:1-6767:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>```foo``</p></span></code></pre> +<pre data-sourcepos="8190:1-8192:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>```foo``</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-358">Example 358</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6770:1-6772:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`foo</span></code></pre> +<pre data-sourcepos="8199:1-8201:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`foo</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6774:1-6776:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>`foo</p></span></code></pre> +<pre data-sourcepos="8203:1-8205:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>`foo</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6778:1-6779:47" dir="auto">The following case also illustrates the need for opening and +</div> +<p data-sourcepos="8208:1-8209:47" dir="auto">The following case also illustrates the need for opening and closing backtick strings to be equal in length:</p> +<div> +<div><a href="#example-359">Example 359</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6781:1-6783:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`foo``bar``</span></code></pre> +<pre data-sourcepos="8214:1-8216:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`foo``bar``</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6785:1-6787:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>`foo<code>bar</code></p></span></code></pre> +<pre data-sourcepos="8218:1-8220:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>`foo<code>bar</code></p></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="6790:1-6790:31" dir="auto"> +</div> +<h2 data-sourcepos="8224:1-8224:31" dir="auto"> <a id="user-content-emphasis-and-strong-emphasis" class="anchor" href="#emphasis-and-strong-emphasis" aria-hidden="true"></a>Emphasis and strong emphasis</h2> -<p data-sourcepos="6792:1-6793:73" dir="auto">John Gruber's original <a href="http://daringfireball.net/projects/markdown/syntax#em" rel="nofollow noreferrer noopener" target="_blank">Markdown syntax +<p data-sourcepos="8226:1-8227:73" dir="auto">John Gruber's original <a href="http://daringfireball.net/projects/markdown/syntax#em" rel="nofollow noreferrer noopener" target="_blank">Markdown syntax description</a> says:</p> -<blockquote data-sourcepos="6795:1-6798:6" dir="auto"> -<p data-sourcepos="6795:3-6798:6">Markdown treats asterisks (<code>*</code>) and underscores (<code>_</code>) as indicators of +<blockquote data-sourcepos="8229:1-8232:6" dir="auto"> +<p data-sourcepos="8229:3-8232:6">Markdown treats asterisks (<code>*</code>) and underscores (<code>_</code>) as indicators of emphasis. Text wrapped with one <code>*</code> or <code>_</code> will be wrapped with an HTML <code><em></code> tag; double <code>*</code>'s or <code>_</code>'s will be wrapped with an HTML <code><strong></code> tag.</p> </blockquote> -<p data-sourcepos="6800:1-6804:57" dir="auto">This is enough for most users, but these rules leave much undecided, +<p data-sourcepos="8234:1-8238:57" dir="auto">This is enough for most users, but these rules leave much undecided, especially when it comes to nested emphasis. The original <code>Markdown.pl</code> test suite makes it clear that triple <code>***</code> and <code>___</code> delimiters can be used for strong emphasis, and most implementations have also allowed the following patterns:</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6806:1-6812:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gs">***strong emph**</span><span class="err">*</span></span> +<pre data-sourcepos="8240:1-8246:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gs">***strong emph**</span><span class="err">*</span></span> <span id="LC2" class="line" lang="markdown"><span class="gs">***strong**</span> in emph<span class="err">*</span></span> <span id="LC3" class="line" lang="markdown"><span class="gs">***emph* in strong**</span></span> <span id="LC4" class="line" lang="markdown"><span class="gs">**in strong *emph**</span><span class="err">*</span></span> <span id="LC5" class="line" lang="markdown"><span class="ge">*in emph **strong***</span></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6814:1-6816:9" dir="auto">The following patterns are less widely supported, but the intent +<p data-sourcepos="8248:1-8250:9" dir="auto">The following patterns are less widely supported, but the intent is clear and they are useful (especially in contexts like bibliography entries):</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6818:1-6821:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="ge">*emph *</span>with emph<span class="ge">* in it*</span></span> +<pre data-sourcepos="8252:1-8255:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="ge">*emph *</span>with emph<span class="ge">* in it*</span></span> <span id="LC2" class="line" lang="markdown"><span class="gs">**strong **</span>with strong<span class="gs">** in it**</span></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6823:1-6826:31" dir="auto">Many implementations have also restricted intraword emphasis to +<p data-sourcepos="8257:1-8260:31" dir="auto">Many implementations have also restricted intraword emphasis to the <code>*</code> forms, to avoid unwanted emphasis in words containing internal underscores. (It is best practice to put these in code spans, but users often do not.)</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6828:1-6831:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">internal emphasis: foo<span class="ge">*bar*</span>baz</span> +<pre data-sourcepos="8262:1-8265:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">internal emphasis: foo<span class="ge">*bar*</span>baz</span> <span id="LC2" class="line" lang="markdown">no emphasis: foo_bar_baz</span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="6833:1-6834:55" dir="auto">The rules given below capture all of these patterns, while allowing +<p data-sourcepos="8267:1-8268:55" dir="auto">The rules given below capture all of these patterns, while allowing for efficient parsing strategies that do not backtrack.</p> -<p data-sourcepos="6836:1-6840:38" dir="auto">First, some definitions. A <a href="@">delimiter run</a> is either +<p data-sourcepos="8270:1-8274:38" dir="auto">First, some definitions. A <a href="@">delimiter run</a> is either a sequence of one or more <code>*</code> characters that is not preceded or followed by a non-backslash-escaped <code>*</code> character, or a sequence of one or more <code>_</code> characters that is not preceded or followed by a non-backslash-escaped <code>_</code> character.</p> -<p data-sourcepos="6842:1-6848:37" dir="auto">A <a href="@">left-flanking delimiter run</a> is +<p data-sourcepos="8276:1-8282:37" dir="auto">A <a href="@">left-flanking delimiter run</a> is a [delimiter run] that is (1) not followed by [Unicode whitespace], and either (2a) not followed by a [punctuation character], or (2b) followed by a [punctuation character] and preceded by [Unicode whitespace] or a [punctuation character]. For purposes of this definition, the beginning and the end of the line count as Unicode whitespace.</p> -<p data-sourcepos="6850:1-6856:37" dir="auto">A <a href="@">right-flanking delimiter run</a> is +<p data-sourcepos="8284:1-8290:37" dir="auto">A <a href="@">right-flanking delimiter run</a> is a [delimiter run] that is (1) not preceded by [Unicode whitespace], and either (2a) not preceded by a [punctuation character], or (2b) preceded by a [punctuation character] and followed by [Unicode whitespace] or a [punctuation character]. For purposes of this definition, the beginning and the end of the line count as Unicode whitespace.</p> -<p data-sourcepos="6858:1-6858:41" dir="auto">Here are some examples of delimiter runs.</p> -<ul data-sourcepos="6860:3-6891:0" dir="auto"> -<li data-sourcepos="6860:3-6868:0"> -<p data-sourcepos="6860:5-6860:41">left-flanking but not right-flanking:</p> +<p data-sourcepos="8292:1-8292:41" dir="auto">Here are some examples of delimiter runs.</p> +<ul data-sourcepos="8294:3-8325:0" dir="auto"> +<li data-sourcepos="8294:3-8302:0"> +<p data-sourcepos="8294:5-8294:41">left-flanking but not right-flanking:</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6862:5-6867:7" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***abc</span> +<pre data-sourcepos="8296:5-8301:7" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***abc</span> <span id="LC2" class="line" lang="plaintext"> _abc</span> <span id="LC3" class="line" lang="plaintext">**"abc"</span> <span id="LC4" class="line" lang="plaintext"> _"abc"</span></code></pre> <copy-code></copy-code> </div> </li> -<li data-sourcepos="6869:3-6877:0"> -<p data-sourcepos="6869:5-6869:41">right-flanking but not left-flanking:</p> +<li data-sourcepos="8303:3-8311:0"> +<p data-sourcepos="8303:5-8303:41">right-flanking but not left-flanking:</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6871:5-6876:7" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> abc***</span> +<pre data-sourcepos="8305:5-8310:7" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> abc***</span> <span id="LC2" class="line" lang="plaintext"> abc_</span> <span id="LC3" class="line" lang="plaintext">"abc"**</span> <span id="LC4" class="line" lang="plaintext">"abc"_</span></code></pre> <copy-code></copy-code> </div> </li> -<li data-sourcepos="6878:3-6884:0"> -<p data-sourcepos="6878:5-6878:33">Both left and right-flanking:</p> +<li data-sourcepos="8312:3-8318:0"> +<p data-sourcepos="8312:5-8312:33">Both left and right-flanking:</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6880:5-6883:7" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> abc***def</span> +<pre data-sourcepos="8314:5-8317:7" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> abc***def</span> <span id="LC2" class="line" lang="plaintext">"abc"_"def"</span></code></pre> <copy-code></copy-code> </div> </li> -<li data-sourcepos="6885:3-6891:0"> -<p data-sourcepos="6885:5-6885:36">Neither left nor right-flanking:</p> +<li data-sourcepos="8319:3-8325:0"> +<p data-sourcepos="8319:5-8319:36">Neither left nor right-flanking:</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="6887:5-6890:7" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">abc *** def</span> +<pre data-sourcepos="8321:5-8324:7" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">abc *** def</span> <span id="LC2" class="line" lang="plaintext">a _ b</span></code></pre> <copy-code></copy-code> </div> </li> </ul> -<p data-sourcepos="6892:1-6898:49" dir="auto">(The idea of distinguishing left-flanking and right-flanking +<p data-sourcepos="8326:1-8332:49" dir="auto">(The idea of distinguishing left-flanking and right-flanking delimiter runs based on the character before and the character after comes from Roopesh Chander's <a href="http://www.vfmd.org/vfmd-spec/specification/#procedure-for-identifying-emphasis-tags" rel="nofollow noreferrer noopener" target="_blank">vfmd</a>. vfmd uses the terminology "emphasis indicator string" instead of "delimiter run," and its rules for distinguishing left- and right-flanking runs are a bit more complex than the ones given here.)</p> -<p data-sourcepos="6900:1-6900:56" dir="auto">The following rules define emphasis and strong emphasis:</p> -<ol data-sourcepos="6902:1-6966:0" dir="auto"> -<li data-sourcepos="6902:1-6904:0"> -<p data-sourcepos="6902:5-6903:71">A single <code>*</code> character <a href="@">can open emphasis</a> +<p data-sourcepos="8334:1-8334:56" dir="auto">The following rules define emphasis and strong emphasis:</p> +<ol data-sourcepos="8336:1-8400:0" dir="auto"> +<li data-sourcepos="8336:1-8338:0"> +<p data-sourcepos="8336:5-8337:71">A single <code>*</code> character <a href="@">can open emphasis</a> iff (if and only if) it is part of a [left-flanking delimiter run].</p> </li> -<li data-sourcepos="6905:1-6910:0"> -<p data-sourcepos="6905:5-6909:28">A single <code>_</code> character [can open emphasis] iff +<li data-sourcepos="8339:1-8344:0"> +<p data-sourcepos="8339:5-8343:28">A single <code>_</code> character [can open emphasis] iff it is part of a [left-flanking delimiter run] and either (a) not part of a [right-flanking delimiter run] or (b) part of a [right-flanking delimiter run] preceded by punctuation.</p> </li> -<li data-sourcepos="6911:1-6913:0"> -<p data-sourcepos="6911:5-6912:55">A single <code>*</code> character <a href="@">can close emphasis</a> +<li data-sourcepos="8345:1-8347:0"> +<p data-sourcepos="8345:5-8346:55">A single <code>*</code> character <a href="@">can close emphasis</a> iff it is part of a [right-flanking delimiter run].</p> </li> -<li data-sourcepos="6914:1-6919:0"> -<p data-sourcepos="6914:5-6918:28">A single <code>_</code> character [can close emphasis] iff +<li data-sourcepos="8348:1-8353:0"> +<p data-sourcepos="8348:5-8352:28">A single <code>_</code> character [can close emphasis] iff it is part of a [right-flanking delimiter run] and either (a) not part of a [left-flanking delimiter run] or (b) part of a [left-flanking delimiter run] followed by punctuation.</p> </li> -<li data-sourcepos="6920:1-6922:0"> -<p data-sourcepos="6920:5-6921:54">A double <code>**</code> <a href="@">can open strong emphasis</a> +<li data-sourcepos="8354:1-8356:0"> +<p data-sourcepos="8354:5-8355:54">A double <code>**</code> <a href="@">can open strong emphasis</a> iff it is part of a [left-flanking delimiter run].</p> </li> -<li data-sourcepos="6923:1-6928:0"> -<p data-sourcepos="6923:5-6927:28">A double <code>__</code> [can open strong emphasis] iff +<li data-sourcepos="8357:1-8362:0"> +<p data-sourcepos="8357:5-8361:28">A double <code>__</code> [can open strong emphasis] iff it is part of a [left-flanking delimiter run] and either (a) not part of a [right-flanking delimiter run] or (b) part of a [right-flanking delimiter run] preceded by punctuation.</p> </li> -<li data-sourcepos="6929:1-6931:0"> -<p data-sourcepos="6929:5-6930:55">A double <code>**</code> <a href="@">can close strong emphasis</a> +<li data-sourcepos="8363:1-8365:0"> +<p data-sourcepos="8363:5-8364:55">A double <code>**</code> <a href="@">can close strong emphasis</a> iff it is part of a [right-flanking delimiter run].</p> </li> -<li data-sourcepos="6932:1-6937:0"> -<p data-sourcepos="6932:5-6936:28">A double <code>__</code> [can close strong emphasis] iff +<li data-sourcepos="8366:1-8371:0"> +<p data-sourcepos="8366:5-8370:28">A double <code>__</code> [can close strong emphasis] iff it is part of a [right-flanking delimiter run] and either (a) not part of a [left-flanking delimiter run] or (b) part of a [left-flanking delimiter run] followed by punctuation.</p> </li> -<li data-sourcepos="6938:1-6947:0"> -<p data-sourcepos="6938:5-6946:19">Emphasis begins with a delimiter that [can open emphasis] and ends +<li data-sourcepos="8372:1-8381:0"> +<p data-sourcepos="8372:5-8380:19">Emphasis begins with a delimiter that [can open emphasis] and ends with a delimiter that [can close emphasis], and that uses the same character (<code>_</code> or <code>*</code>) as the opening delimiter. The opening and closing delimiters must belong to separate @@ -6289,8 +7730,8 @@ delimiter runs containing the opening and closing delimiters must not be a multiple of 3 unless both lengths are multiples of 3.</p> </li> -<li data-sourcepos="6948:1-6958:0"> -<p data-sourcepos="6948:5-6957:23">Strong emphasis begins with a delimiter that +<li data-sourcepos="8382:1-8392:0"> +<p data-sourcepos="8382:5-8391:23">Strong emphasis begins with a delimiter that [can open strong emphasis] and ends with a delimiter that [can close strong emphasis], and that uses the same character (<code>_</code> or <code>*</code>) as the opening delimiter. The @@ -6301,45 +7742,45 @@ the delimiter runs containing the opening and closing delimiters must not be a multiple of 3 unless both lengths are multiples of 3.</p> </li> -<li data-sourcepos="6959:1-6962:0"> -<p data-sourcepos="6959:5-6961:25">A literal <code>*</code> character cannot occur at the beginning or end of +<li data-sourcepos="8393:1-8396:0"> +<p data-sourcepos="8393:5-8395:25">A literal <code>*</code> character cannot occur at the beginning or end of <code>*</code>-delimited emphasis or <code>**</code>-delimited strong emphasis, unless it is backslash-escaped.</p> </li> -<li data-sourcepos="6963:1-6966:0"> -<p data-sourcepos="6963:5-6965:25">A literal <code>_</code> character cannot occur at the beginning or end of +<li data-sourcepos="8397:1-8400:0"> +<p data-sourcepos="8397:5-8399:25">A literal <code>_</code> character cannot occur at the beginning or end of <code>_</code>-delimited emphasis or <code>__</code>-delimited strong emphasis, unless it is backslash-escaped.</p> </li> </ol> -<p data-sourcepos="6967:1-6968:43" dir="auto">Where rules 1--12 above are compatible with multiple parsings, +<p data-sourcepos="8401:1-8402:43" dir="auto">Where rules 1--12 above are compatible with multiple parsings, the following principles resolve ambiguity:</p> -<ol start="13" data-sourcepos="6970:1-6995:0" dir="auto"> -<li data-sourcepos="6970:1-6973:0"> -<p data-sourcepos="6970:5-6972:28">The number of nestings should be minimized. Thus, for example, +<ol start="13" data-sourcepos="8404:1-8429:0" dir="auto"> +<li data-sourcepos="8404:1-8407:0"> +<p data-sourcepos="8404:5-8406:28">The number of nestings should be minimized. Thus, for example, an interpretation <code><strong>...</strong></code> is always preferred to <code><em><em>...</em></em></code>.</p> </li> -<li data-sourcepos="6974:1-6976:0"> -<p data-sourcepos="6974:5-6975:49">An interpretation <code><em><strong>...</strong></em></code> is always +<li data-sourcepos="8408:1-8410:0"> +<p data-sourcepos="8408:5-8409:49">An interpretation <code><em><strong>...</strong></em></code> is always preferred to <code><strong><em>...</em></strong></code>.</p> </li> -<li data-sourcepos="6977:1-6982:0"> -<p data-sourcepos="6977:5-6981:34">When two potential emphasis or strong emphasis spans overlap, +<li data-sourcepos="8411:1-8416:0"> +<p data-sourcepos="8411:5-8415:34">When two potential emphasis or strong emphasis spans overlap, so that the second begins before the first ends and ends after the first ends, the first takes precedence. Thus, for example, <code>*foo _bar* baz_</code> is parsed as <code><em>foo _bar</em> baz_</code> rather than <code>*foo <em>bar* baz</em></code>.</p> </li> -<li data-sourcepos="6983:1-6988:0"> -<p data-sourcepos="6983:5-6987:49">When there are two potential emphasis or strong emphasis spans +<li data-sourcepos="8417:1-8422:0"> +<p data-sourcepos="8417:5-8421:49">When there are two potential emphasis or strong emphasis spans with the same closing delimiter, the shorter one (the one that opens later) takes precedence. Thus, for example, <code>**foo **bar baz**</code> is parsed as <code>**foo <strong>bar baz</strong></code> rather than <code><strong>foo **bar baz</strong></code>.</p> </li> -<li data-sourcepos="6989:1-6995:0"> -<p data-sourcepos="6989:5-6994:26">Inline code spans, links, images, and HTML tags group more tightly +<li data-sourcepos="8423:1-8429:0"> +<p data-sourcepos="8423:5-8428:26">Inline code spans, links, images, and HTML tags group more tightly than emphasis. So, when there is a choice between an interpretation that contains one of these elements and one that does not, the former always wins. Thus, for example, <code>*[foo*](bar)</code> is @@ -6347,1269 +7788,1668 @@ parsed as <code>*<a href="bar">foo*</a></code> rather than as <code><em>[foo</em>](bar)</code>.</p> </li> </ol> -<p data-sourcepos="6996:1-6996:60" dir="auto">These rules can be illustrated through a series of examples.</p> -<p data-sourcepos="6998:1-6998:7" dir="auto">Rule 1:</p> +<p data-sourcepos="8430:1-8430:60" dir="auto">These rules can be illustrated through a series of examples.</p> +<p data-sourcepos="8432:1-8432:7" dir="auto">Rule 1:</p> +<div> +<div><a href="#example-360">Example 360</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7000:1-7002:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo bar*</span></code></pre> +<pre data-sourcepos="8437:1-8439:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo bar*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7004:1-7006:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo bar</em></p></span></code></pre> +<pre data-sourcepos="8441:1-8443:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo bar</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7009:1-7010:66" dir="auto">This is not emphasis, because the opening <code>*</code> is followed by +</div> +<p data-sourcepos="8447:1-8448:66" dir="auto">This is not emphasis, because the opening <code>*</code> is followed by whitespace, and hence not part of a [left-flanking delimiter run]:</p> +<div> +<div><a href="#example-361">Example 361</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7012:1-7014:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a * foo bar*</span></code></pre> +<pre data-sourcepos="8453:1-8455:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a * foo bar*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7016:1-7018:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>a * foo bar*</p></span></code></pre> +<pre data-sourcepos="8457:1-8459:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>a * foo bar*</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7021:1-7023:44" dir="auto">This is not emphasis, because the opening <code>*</code> is preceded +</div> +<p data-sourcepos="8463:1-8465:44" dir="auto">This is not emphasis, because the opening <code>*</code> is preceded by an alphanumeric and followed by punctuation, and hence not part of a [left-flanking delimiter run]:</p> +<div> +<div><a href="#example-362">Example 362</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7025:1-7027:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a*"foo"*</span></code></pre> +<pre data-sourcepos="8470:1-8472:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a*"foo"*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7029:1-7031:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>a*&quot;foo&quot;*</p></span></code></pre> +<pre data-sourcepos="8474:1-8476:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>a*&quot;foo&quot;*</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7034:1-7034:52" dir="auto">Unicode nonbreaking spaces count as whitespace, too:</p> +</div> +<p data-sourcepos="8480:1-8480:52" dir="auto">Unicode nonbreaking spaces count as whitespace, too:</p> +<div> +<div><a href="#example-363">Example 363</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7036:1-7038:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* a *</span></code></pre> +<pre data-sourcepos="8485:1-8487:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* a *</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7040:1-7042:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>* a *</p></span></code></pre> +<pre data-sourcepos="8489:1-8491:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>* a *</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7045:1-7045:41" dir="auto">Intraword emphasis with <code>*</code> is permitted:</p> +</div> +<p data-sourcepos="8495:1-8495:41" dir="auto">Intraword emphasis with <code>*</code> is permitted:</p> +<div> +<div><a href="#example-364">Example 364</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7047:1-7049:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo*bar*</span></code></pre> +<pre data-sourcepos="8500:1-8502:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo*bar*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7051:1-7053:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<em>bar</em></p></span></code></pre> +<pre data-sourcepos="8504:1-8506:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<em>bar</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-365">Example 365</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7056:1-7058:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">5*6*78</span></code></pre> +<pre data-sourcepos="8513:1-8515:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">5*6*78</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7060:1-7062:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>5<em>6</em>78</p></span></code></pre> +<pre data-sourcepos="8517:1-8519:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>5<em>6</em>78</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7065:1-7065:7" dir="auto">Rule 2:</p> +</div> +<p data-sourcepos="8523:1-8523:7" dir="auto">Rule 2:</p> +<div> +<div><a href="#example-366">Example 366</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7067:1-7069:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo bar_</span></code></pre> +<pre data-sourcepos="8528:1-8530:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo bar_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7071:1-7073:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo bar</em></p></span></code></pre> +<pre data-sourcepos="8532:1-8534:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo bar</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7076:1-7077:11" dir="auto">This is not emphasis, because the opening <code>_</code> is followed by +</div> +<p data-sourcepos="8538:1-8539:11" dir="auto">This is not emphasis, because the opening <code>_</code> is followed by whitespace:</p> +<div> +<div><a href="#example-367">Example 367</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7079:1-7081:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_ foo bar_</span></code></pre> +<pre data-sourcepos="8544:1-8546:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_ foo bar_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7083:1-7085:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_ foo bar_</p></span></code></pre> +<pre data-sourcepos="8548:1-8550:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_ foo bar_</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7088:1-7089:47" dir="auto">This is not emphasis, because the opening <code>_</code> is preceded +</div> +<p data-sourcepos="8554:1-8555:47" dir="auto">This is not emphasis, because the opening <code>_</code> is preceded by an alphanumeric and followed by punctuation:</p> +<div> +<div><a href="#example-368">Example 368</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7091:1-7093:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a_"foo"_</span></code></pre> +<pre data-sourcepos="8560:1-8562:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a_"foo"_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7095:1-7097:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>a_&quot;foo&quot;_</p></span></code></pre> +<pre data-sourcepos="8564:1-8566:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>a_&quot;foo&quot;_</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7100:1-7100:46" dir="auto">Emphasis with <code>_</code> is not allowed inside words:</p> +</div> +<p data-sourcepos="8570:1-8570:46" dir="auto">Emphasis with <code>_</code> is not allowed inside words:</p> +<div> +<div><a href="#example-369">Example 369</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7102:1-7104:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo_bar_</span></code></pre> +<pre data-sourcepos="8575:1-8577:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo_bar_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7106:1-7108:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo_bar_</p></span></code></pre> +<pre data-sourcepos="8579:1-8581:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo_bar_</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-370">Example 370</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7111:1-7113:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">5_6_78</span></code></pre> +<pre data-sourcepos="8588:1-8590:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">5_6_78</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7115:1-7117:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>5_6_78</p></span></code></pre> +<pre data-sourcepos="8592:1-8594:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>5_6_78</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-371">Example 371</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7120:1-7122:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">пристаням_стремятся_</span></code></pre> +<pre data-sourcepos="8601:1-8603:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">пристаням_стремятся_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7124:1-7126:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>пристаням_стремятся_</p></span></code></pre> +<pre data-sourcepos="8605:1-8607:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>пристаням_стремятся_</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7129:1-7130:47" dir="auto">Here <code>_</code> does not generate emphasis, because the first delimiter run +</div> +<p data-sourcepos="8611:1-8612:47" dir="auto">Here <code>_</code> does not generate emphasis, because the first delimiter run is right-flanking and the second left-flanking:</p> +<div> +<div><a href="#example-372">Example 372</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7132:1-7134:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aa_"bb"_cc</span></code></pre> +<pre data-sourcepos="8617:1-8619:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aa_"bb"_cc</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7136:1-7138:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aa_&quot;bb&quot;_cc</p></span></code></pre> +<pre data-sourcepos="8621:1-8623:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>aa_&quot;bb&quot;_cc</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7141:1-7143:12" dir="auto">This is emphasis, even though the opening delimiter is +</div> +<p data-sourcepos="8627:1-8629:12" dir="auto">This is emphasis, even though the opening delimiter is both left- and right-flanking, because it is preceded by punctuation:</p> +<div> +<div><a href="#example-373">Example 373</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7145:1-7147:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo-_(bar)_</span></code></pre> +<pre data-sourcepos="8634:1-8636:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo-_(bar)_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7149:1-7151:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo-<em>(bar)</em></p></span></code></pre> +<pre data-sourcepos="8638:1-8640:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo-<em>(bar)</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7154:1-7154:7" dir="auto">Rule 3:</p> -<p data-sourcepos="7156:1-7157:32" dir="auto">This is not emphasis, because the closing delimiter does +</div> +<p data-sourcepos="8644:1-8644:7" dir="auto">Rule 3:</p> +<p data-sourcepos="8646:1-8647:32" dir="auto">This is not emphasis, because the closing delimiter does not match the opening delimiter:</p> +<div> +<div><a href="#example-374">Example 374</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7159:1-7161:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo*</span></code></pre> +<pre data-sourcepos="8652:1-8654:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7163:1-7165:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_foo*</p></span></code></pre> +<pre data-sourcepos="8656:1-8658:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_foo*</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7168:1-7169:11" dir="auto">This is not emphasis, because the closing <code>*</code> is preceded by +</div> +<p data-sourcepos="8662:1-8663:11" dir="auto">This is not emphasis, because the closing <code>*</code> is preceded by whitespace:</p> +<div> +<div><a href="#example-375">Example 375</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7171:1-7173:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo bar *</span></code></pre> +<pre data-sourcepos="8668:1-8670:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo bar *</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7175:1-7177:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*foo bar *</p></span></code></pre> +<pre data-sourcepos="8672:1-8674:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*foo bar *</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7180:1-7180:36" dir="auto">A newline also counts as whitespace:</p> +</div> +<p data-sourcepos="8678:1-8678:36" dir="auto">A newline also counts as whitespace:</p> +<div> +<div><a href="#example-376">Example 376</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7182:1-7185:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo bar</span> +<pre data-sourcepos="8683:1-8686:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo bar</span> <span id="LC2" class="line" lang="plaintext">*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7187:1-7190:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*foo bar</span> +<pre data-sourcepos="8688:1-8691:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*foo bar</span> <span id="LC2" class="line" lang="plaintext">*</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7193:1-7195:58" dir="auto">This is not emphasis, because the second <code>*</code> is +</div> +<p data-sourcepos="8695:1-8697:58" dir="auto">This is not emphasis, because the second <code>*</code> is preceded by punctuation and followed by an alphanumeric (hence it is not part of a [right-flanking delimiter run]:</p> +<div> +<div><a href="#example-377">Example 377</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7197:1-7199:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*(*foo)</span></code></pre> +<pre data-sourcepos="8702:1-8704:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*(*foo)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7201:1-7203:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*(*foo)</p></span></code></pre> +<pre data-sourcepos="8706:1-8708:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*(*foo)</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7206:1-7207:18" dir="auto">The point of this restriction is more easily appreciated +</div> +<p data-sourcepos="8712:1-8713:18" dir="auto">The point of this restriction is more easily appreciated with this example:</p> +<div> +<div><a href="#example-378">Example 378</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7209:1-7211:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*(*foo*)*</span></code></pre> +<pre data-sourcepos="8718:1-8720:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*(*foo*)*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7213:1-7215:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>(<em>foo</em>)</em></p></span></code></pre> +<pre data-sourcepos="8722:1-8724:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>(<em>foo</em>)</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7218:1-7218:39" dir="auto">Intraword emphasis with <code>*</code> is allowed:</p> +</div> +<p data-sourcepos="8728:1-8728:39" dir="auto">Intraword emphasis with <code>*</code> is allowed:</p> +<div> +<div><a href="#example-379">Example 379</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7220:1-7222:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo*bar</span></code></pre> +<pre data-sourcepos="8733:1-8735:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo*bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7224:1-7226:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo</em>bar</p></span></code></pre> +<pre data-sourcepos="8737:1-8739:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo</em>bar</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7230:1-7230:7" dir="auto">Rule 4:</p> -<p data-sourcepos="7232:1-7233:11" dir="auto">This is not emphasis, because the closing <code>_</code> is preceded by +</div> +<p data-sourcepos="8744:1-8744:7" dir="auto">Rule 4:</p> +<p data-sourcepos="8746:1-8747:11" dir="auto">This is not emphasis, because the closing <code>_</code> is preceded by whitespace:</p> +<div> +<div><a href="#example-380">Example 380</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7235:1-7237:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo bar _</span></code></pre> +<pre data-sourcepos="8752:1-8754:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo bar _</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7239:1-7241:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_foo bar _</p></span></code></pre> +<pre data-sourcepos="8756:1-8758:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_foo bar _</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7244:1-7245:56" dir="auto">This is not emphasis, because the second <code>_</code> is +</div> +<p data-sourcepos="8762:1-8763:56" dir="auto">This is not emphasis, because the second <code>_</code> is preceded by punctuation and followed by an alphanumeric:</p> +<div> +<div><a href="#example-381">Example 381</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7247:1-7249:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_(_foo)</span></code></pre> +<pre data-sourcepos="8768:1-8770:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_(_foo)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7251:1-7253:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_(_foo)</p></span></code></pre> +<pre data-sourcepos="8772:1-8774:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_(_foo)</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7256:1-7256:33" dir="auto">This is emphasis within emphasis:</p> +</div> +<p data-sourcepos="8778:1-8778:33" dir="auto">This is emphasis within emphasis:</p> +<div> +<div><a href="#example-382">Example 382</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7258:1-7260:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_(_foo_)_</span></code></pre> +<pre data-sourcepos="8783:1-8785:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_(_foo_)_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7262:1-7264:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>(<em>foo</em>)</em></p></span></code></pre> +<pre data-sourcepos="8787:1-8789:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>(<em>foo</em>)</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7267:1-7267:41" dir="auto">Intraword emphasis is disallowed for <code>_</code>:</p> +</div> +<p data-sourcepos="8793:1-8793:41" dir="auto">Intraword emphasis is disallowed for <code>_</code>:</p> +<div> +<div><a href="#example-383">Example 383</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7269:1-7271:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo_bar</span></code></pre> +<pre data-sourcepos="8798:1-8800:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo_bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7273:1-7275:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_foo_bar</p></span></code></pre> +<pre data-sourcepos="8802:1-8804:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_foo_bar</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-384">Example 384</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7278:1-7280:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_пристаням_стремятся</span></code></pre> +<pre data-sourcepos="8811:1-8813:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_пристаням_стремятся</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7282:1-7284:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_пристаням_стремятся</p></span></code></pre> +<pre data-sourcepos="8815:1-8817:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_пристаням_стремятся</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-385">Example 385</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7287:1-7289:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo_bar_baz_</span></code></pre> +<pre data-sourcepos="8824:1-8826:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo_bar_baz_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7291:1-7293:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo_bar_baz</em></p></span></code></pre> +<pre data-sourcepos="8828:1-8830:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo_bar_baz</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7296:1-7298:12" dir="auto">This is emphasis, even though the closing delimiter is +</div> +<p data-sourcepos="8834:1-8836:12" dir="auto">This is emphasis, even though the closing delimiter is both left- and right-flanking, because it is followed by punctuation:</p> +<div> +<div><a href="#example-386">Example 386</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7300:1-7302:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_(bar)_.</span></code></pre> +<pre data-sourcepos="8841:1-8843:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_(bar)_.</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7304:1-7306:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>(bar)</em>.</p></span></code></pre> +<pre data-sourcepos="8845:1-8847:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>(bar)</em>.</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7309:1-7309:7" dir="auto">Rule 5:</p> +</div> +<p data-sourcepos="8851:1-8851:7" dir="auto">Rule 5:</p> +<div> +<div><a href="#example-387">Example 387</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7311:1-7313:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo bar**</span></code></pre> +<pre data-sourcepos="8856:1-8858:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo bar**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7315:1-7317:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo bar</strong></p></span></code></pre> +<pre data-sourcepos="8860:1-8862:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo bar</strong></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7320:1-7321:23" dir="auto">This is not strong emphasis, because the opening delimiter is +</div> +<p data-sourcepos="8866:1-8867:23" dir="auto">This is not strong emphasis, because the opening delimiter is followed by whitespace:</p> +<div> +<div><a href="#example-388">Example 388</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7323:1-7325:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">** foo bar**</span></code></pre> +<pre data-sourcepos="8872:1-8874:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">** foo bar**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7327:1-7329:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>** foo bar**</p></span></code></pre> +<pre data-sourcepos="8876:1-8878:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>** foo bar**</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7332:1-7334:44" dir="auto">This is not strong emphasis, because the opening <code>**</code> is preceded +</div> +<p data-sourcepos="8882:1-8884:44" dir="auto">This is not strong emphasis, because the opening <code>**</code> is preceded by an alphanumeric and followed by punctuation, and hence not part of a [left-flanking delimiter run]:</p> +<div> +<div><a href="#example-389">Example 389</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7336:1-7338:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a**"foo"**</span></code></pre> +<pre data-sourcepos="8889:1-8891:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a**"foo"**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7340:1-7342:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>a**&quot;foo&quot;**</p></span></code></pre> +<pre data-sourcepos="8893:1-8895:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>a**&quot;foo&quot;**</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7345:1-7345:49" dir="auto">Intraword strong emphasis with <code>**</code> is permitted:</p> +</div> +<p data-sourcepos="8899:1-8899:49" dir="auto">Intraword strong emphasis with <code>**</code> is permitted:</p> +<div> +<div><a href="#example-390">Example 390</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7347:1-7349:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo**bar**</span></code></pre> +<pre data-sourcepos="8904:1-8906:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo**bar**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7351:1-7353:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<strong>bar</strong></p></span></code></pre> +<pre data-sourcepos="8908:1-8910:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<strong>bar</strong></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7356:1-7356:7" dir="auto">Rule 6:</p> +</div> +<p data-sourcepos="8914:1-8914:7" dir="auto">Rule 6:</p> +<div> +<div><a href="#example-391">Example 391</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7358:1-7360:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo bar__</span></code></pre> +<pre data-sourcepos="8919:1-8921:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo bar__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7362:1-7364:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo bar</strong></p></span></code></pre> +<pre data-sourcepos="8923:1-8925:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo bar</strong></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7367:1-7368:23" dir="auto">This is not strong emphasis, because the opening delimiter is +</div> +<p data-sourcepos="8929:1-8930:23" dir="auto">This is not strong emphasis, because the opening delimiter is followed by whitespace:</p> +<div> +<div><a href="#example-392">Example 392</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7370:1-7372:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__ foo bar__</span></code></pre> +<pre data-sourcepos="8935:1-8937:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__ foo bar__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7374:1-7376:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__ foo bar__</p></span></code></pre> +<pre data-sourcepos="8939:1-8941:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__ foo bar__</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7379:1-7379:31" dir="auto">A newline counts as whitespace:</p> +</div> +<p data-sourcepos="8945:1-8945:31" dir="auto">A newline counts as whitespace:</p> +<div> +<div><a href="#example-393">Example 393</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7380:1-7383:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__</span> +<pre data-sourcepos="8949:1-8952:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__</span> <span id="LC2" class="line" lang="plaintext">foo bar__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7385:1-7388:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__</span> +<pre data-sourcepos="8954:1-8957:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__</span> <span id="LC2" class="line" lang="plaintext">foo bar__</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7391:1-7392:47" dir="auto">This is not strong emphasis, because the opening <code>__</code> is preceded +</div> +<p data-sourcepos="8961:1-8962:47" dir="auto">This is not strong emphasis, because the opening <code>__</code> is preceded by an alphanumeric and followed by punctuation:</p> +<div> +<div><a href="#example-394">Example 394</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7394:1-7396:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a__"foo"__</span></code></pre> +<pre data-sourcepos="8967:1-8969:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a__"foo"__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7398:1-7400:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>a__&quot;foo&quot;__</p></span></code></pre> +<pre data-sourcepos="8971:1-8973:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>a__&quot;foo&quot;__</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7403:1-7403:49" dir="auto">Intraword strong emphasis is forbidden with <code>__</code>:</p> +</div> +<p data-sourcepos="8977:1-8977:49" dir="auto">Intraword strong emphasis is forbidden with <code>__</code>:</p> +<div> +<div><a href="#example-395">Example 395</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7405:1-7407:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo__bar__</span></code></pre> +<pre data-sourcepos="8982:1-8984:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo__bar__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7409:1-7411:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo__bar__</p></span></code></pre> +<pre data-sourcepos="8986:1-8988:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo__bar__</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-396">Example 396</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7414:1-7416:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">5__6__78</span></code></pre> +<pre data-sourcepos="8995:1-8997:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">5__6__78</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7418:1-7420:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>5__6__78</p></span></code></pre> +<pre data-sourcepos="8999:1-9001:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>5__6__78</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-397">Example 397</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7423:1-7425:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">пристаням__стремятся__</span></code></pre> +<pre data-sourcepos="9008:1-9010:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">пристаням__стремятся__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7427:1-7429:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>пристаням__стремятся__</p></span></code></pre> +<pre data-sourcepos="9012:1-9014:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>пристаням__стремятся__</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-398">Example 398</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7432:1-7434:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo, __bar__, baz__</span></code></pre> +<pre data-sourcepos="9021:1-9023:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo, __bar__, baz__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7436:1-7438:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo, <strong>bar</strong>, baz</strong></p></span></code></pre> +<pre data-sourcepos="9025:1-9027:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo, <strong>bar</strong>, baz</strong></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7441:1-7443:12" dir="auto">This is strong emphasis, even though the opening delimiter is +</div> +<p data-sourcepos="9031:1-9033:12" dir="auto">This is strong emphasis, even though the opening delimiter is both left- and right-flanking, because it is preceded by punctuation:</p> +<div> +<div><a href="#example-399">Example 399</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7445:1-7447:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo-__(bar)__</span></code></pre> +<pre data-sourcepos="9038:1-9040:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo-__(bar)__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7449:1-7451:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo-<strong>(bar)</strong></p></span></code></pre> +<pre data-sourcepos="9042:1-9044:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo-<strong>(bar)</strong></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7455:1-7455:7" dir="auto">Rule 7:</p> -<p data-sourcepos="7457:1-7458:14" dir="auto">This is not strong emphasis, because the closing delimiter is preceded +</div> +<p data-sourcepos="9049:1-9049:7" dir="auto">Rule 7:</p> +<p data-sourcepos="9051:1-9052:14" dir="auto">This is not strong emphasis, because the closing delimiter is preceded by whitespace:</p> +<div> +<div><a href="#example-400">Example 400</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7460:1-7462:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo bar **</span></code></pre> +<pre data-sourcepos="9057:1-9059:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo bar **</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7464:1-7466:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>**foo bar **</p></span></code></pre> +<pre data-sourcepos="9061:1-9063:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>**foo bar **</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7469:1-7470:9" dir="auto">(Nor can it be interpreted as an emphasized <code>*foo bar *</code>, because of +</div> +<p data-sourcepos="9067:1-9068:9" dir="auto">(Nor can it be interpreted as an emphasized <code>*foo bar *</code>, because of Rule 11.)</p> -<p data-sourcepos="7472:1-7473:56" dir="auto">This is not strong emphasis, because the second <code>**</code> is +<p data-sourcepos="9070:1-9071:56" dir="auto">This is not strong emphasis, because the second <code>**</code> is preceded by punctuation and followed by an alphanumeric:</p> +<div> +<div><a href="#example-401">Example 401</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7475:1-7477:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**(**foo)</span></code></pre> +<pre data-sourcepos="9076:1-9078:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**(**foo)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7479:1-7481:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>**(**foo)</p></span></code></pre> +<pre data-sourcepos="9080:1-9082:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>**(**foo)</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7484:1-7485:20" dir="auto">The point of this restriction is more easily appreciated +</div> +<p data-sourcepos="9086:1-9087:20" dir="auto">The point of this restriction is more easily appreciated with these examples:</p> +<div> +<div><a href="#example-402">Example 402</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7487:1-7489:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*(**foo**)*</span></code></pre> +<pre data-sourcepos="9092:1-9094:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*(**foo**)*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7491:1-7493:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>(<strong>foo</strong>)</em></p></span></code></pre> +<pre data-sourcepos="9096:1-9098:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>(<strong>foo</strong>)</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-403">Example 403</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7496:1-7499:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**Gomphocarpus (*Gomphocarpus physocarpus*, syn.</span> +<pre data-sourcepos="9105:1-9108:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**Gomphocarpus (*Gomphocarpus physocarpus*, syn.</span> <span id="LC2" class="line" lang="plaintext">*Asclepias physocarpa*)**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7501:1-7504:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>Gomphocarpus (<em>Gomphocarpus physocarpus</em>, syn.</span> +<pre data-sourcepos="9110:1-9113:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>Gomphocarpus (<em>Gomphocarpus physocarpus</em>, syn.</span> <span id="LC2" class="line" lang="plaintext"><em>Asclepias physocarpa</em>)</strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-404">Example 404</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7507:1-7509:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo "*bar*" foo**</span></code></pre> +<pre data-sourcepos="9120:1-9122:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo "*bar*" foo**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7511:1-7513:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo &quot;<em>bar</em>&quot; foo</strong></p></span></code></pre> +<pre data-sourcepos="9124:1-9126:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo &quot;<em>bar</em>&quot; foo</strong></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7516:1-7516:19" dir="auto">Intraword emphasis:</p> +</div> +<p data-sourcepos="9130:1-9130:19" dir="auto">Intraword emphasis:</p> +<div> +<div><a href="#example-405">Example 405</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7518:1-7520:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo**bar</span></code></pre> +<pre data-sourcepos="9135:1-9137:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo**bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7522:1-7524:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo</strong>bar</p></span></code></pre> +<pre data-sourcepos="9139:1-9141:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo</strong>bar</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7527:1-7527:7" dir="auto">Rule 8:</p> -<p data-sourcepos="7529:1-7530:23" dir="auto">This is not strong emphasis, because the closing delimiter is +</div> +<p data-sourcepos="9145:1-9145:7" dir="auto">Rule 8:</p> +<p data-sourcepos="9147:1-9148:23" dir="auto">This is not strong emphasis, because the closing delimiter is preceded by whitespace:</p> +<div> +<div><a href="#example-406">Example 406</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7532:1-7534:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo bar __</span></code></pre> +<pre data-sourcepos="9153:1-9155:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo bar __</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7536:1-7538:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__foo bar __</p></span></code></pre> +<pre data-sourcepos="9157:1-9159:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__foo bar __</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7541:1-7542:56" dir="auto">This is not strong emphasis, because the second <code>__</code> is +</div> +<p data-sourcepos="9163:1-9164:56" dir="auto">This is not strong emphasis, because the second <code>__</code> is preceded by punctuation and followed by an alphanumeric:</p> +<div> +<div><a href="#example-407">Example 407</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7544:1-7546:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__(__foo)</span></code></pre> +<pre data-sourcepos="9169:1-9171:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__(__foo)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7548:1-7550:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__(__foo)</p></span></code></pre> +<pre data-sourcepos="9173:1-9175:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__(__foo)</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7553:1-7554:18" dir="auto">The point of this restriction is more easily appreciated +</div> +<p data-sourcepos="9179:1-9180:18" dir="auto">The point of this restriction is more easily appreciated with this example:</p> +<div> +<div><a href="#example-408">Example 408</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7556:1-7558:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_(__foo__)_</span></code></pre> +<pre data-sourcepos="9185:1-9187:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_(__foo__)_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7560:1-7562:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>(<strong>foo</strong>)</em></p></span></code></pre> +<pre data-sourcepos="9189:1-9191:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>(<strong>foo</strong>)</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7565:1-7565:49" dir="auto">Intraword strong emphasis is forbidden with <code>__</code>:</p> +</div> +<p data-sourcepos="9195:1-9195:49" dir="auto">Intraword strong emphasis is forbidden with <code>__</code>:</p> +<div> +<div><a href="#example-409">Example 409</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7567:1-7569:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo__bar</span></code></pre> +<pre data-sourcepos="9200:1-9202:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo__bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7571:1-7573:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__foo__bar</p></span></code></pre> +<pre data-sourcepos="9204:1-9206:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__foo__bar</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-410">Example 410</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7576:1-7578:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__пристаням__стремятся</span></code></pre> +<pre data-sourcepos="9213:1-9215:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__пристаням__стремятся</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7580:1-7582:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__пристаням__стремятся</p></span></code></pre> +<pre data-sourcepos="9217:1-9219:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__пристаням__стремятся</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-411">Example 411</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7585:1-7587:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo__bar__baz__</span></code></pre> +<pre data-sourcepos="9226:1-9228:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo__bar__baz__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7589:1-7591:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo__bar__baz</strong></p></span></code></pre> +<pre data-sourcepos="9230:1-9232:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo__bar__baz</strong></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7594:1-7596:12" dir="auto">This is strong emphasis, even though the closing delimiter is +</div> +<p data-sourcepos="9236:1-9238:12" dir="auto">This is strong emphasis, even though the closing delimiter is both left- and right-flanking, because it is followed by punctuation:</p> +<div> +<div><a href="#example-412">Example 412</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7598:1-7600:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__(bar)__.</span></code></pre> +<pre data-sourcepos="9243:1-9245:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__(bar)__.</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7602:1-7604:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>(bar)</strong>.</p></span></code></pre> +<pre data-sourcepos="9247:1-9249:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>(bar)</strong>.</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7607:1-7607:7" dir="auto">Rule 9:</p> -<p data-sourcepos="7609:1-7610:16" dir="auto">Any nonempty sequence of inline elements can be the contents of an +</div> +<p data-sourcepos="9253:1-9253:7" dir="auto">Rule 9:</p> +<p data-sourcepos="9255:1-9256:16" dir="auto">Any nonempty sequence of inline elements can be the contents of an emphasized span.</p> +<div> +<div><a href="#example-413">Example 413</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7612:1-7614:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo [bar](/url)*</span></code></pre> +<pre data-sourcepos="9261:1-9263:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo [bar](/url)*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7616:1-7618:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <a href="/url">bar</a></em></p></span></code></pre> +<pre data-sourcepos="9265:1-9267:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <a href="/url">bar</a></em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-414">Example 414</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7621:1-7624:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo</span> +<pre data-sourcepos="9274:1-9277:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo</span> <span id="LC2" class="line" lang="plaintext">bar*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7626:1-7629:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo</span> +<pre data-sourcepos="9279:1-9282:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo</span> <span id="LC2" class="line" lang="plaintext">bar</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7632:1-7633:16" dir="auto">In particular, emphasis and strong emphasis can be nested +</div> +<p data-sourcepos="9286:1-9287:16" dir="auto">In particular, emphasis and strong emphasis can be nested inside emphasis:</p> +<div> +<div><a href="#example-415">Example 415</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7635:1-7637:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo __bar__ baz_</span></code></pre> +<pre data-sourcepos="9292:1-9294:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo __bar__ baz_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7639:1-7641:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <strong>bar</strong> baz</em></p></span></code></pre> +<pre data-sourcepos="9296:1-9298:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <strong>bar</strong> baz</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-416">Example 416</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7644:1-7646:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo _bar_ baz_</span></code></pre> +<pre data-sourcepos="9305:1-9307:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo _bar_ baz_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7648:1-7650:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <em>bar</em> baz</em></p></span></code></pre> +<pre data-sourcepos="9309:1-9311:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <em>bar</em> baz</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-417">Example 417</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7653:1-7655:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo_ bar_</span></code></pre> +<pre data-sourcepos="9318:1-9320:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo_ bar_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7657:1-7659:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em><em>foo</em> bar</em></p></span></code></pre> +<pre data-sourcepos="9322:1-9324:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em><em>foo</em> bar</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-418">Example 418</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7662:1-7664:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo *bar**</span></code></pre> +<pre data-sourcepos="9331:1-9333:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo *bar**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7666:1-7668:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <em>bar</em></em></p></span></code></pre> +<pre data-sourcepos="9335:1-9337:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <em>bar</em></em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-419">Example 419</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7671:1-7673:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo **bar** baz*</span></code></pre> +<pre data-sourcepos="9344:1-9346:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo **bar** baz*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7675:1-7677:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <strong>bar</strong> baz</em></p></span></code></pre> +<pre data-sourcepos="9348:1-9350:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <strong>bar</strong> baz</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-420">Example 420</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7679:1-7681:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo**bar**baz*</span></code></pre> +<pre data-sourcepos="9356:1-9358:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo**bar**baz*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7683:1-7685:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo<strong>bar</strong>baz</em></p></span></code></pre> +<pre data-sourcepos="9360:1-9362:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo<strong>bar</strong>baz</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7687:1-7687:51" dir="auto">Note that in the preceding case, the interpretation</p> +</div> +<p data-sourcepos="9365:1-9365:51" dir="auto">Note that in the preceding case, the interpretation</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7689:1-7691:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="nt"><p><em></span>foo<span class="nt"></em><em></span>bar<span class="nt"><em></em></span>baz<span class="nt"></em></p></span></span></code></pre> +<pre data-sourcepos="9367:1-9369:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="nt"><p><em></span>foo<span class="nt"></em><em></span>bar<span class="nt"><em></em></span>baz<span class="nt"></em></p></span></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7694:1-7699:32" dir="auto">is precluded by the condition that a delimiter that +<p data-sourcepos="9372:1-9377:32" dir="auto">is precluded by the condition that a delimiter that can both open and close (like the <code>*</code> after <code>foo</code>) cannot form emphasis if the sum of the lengths of the delimiter runs containing the opening and closing delimiters is a multiple of 3 unless both lengths are multiples of 3.</p> -<p data-sourcepos="7702:1-7703:34" dir="auto">For the same reason, we don't get two consecutive +<p data-sourcepos="9380:1-9381:34" dir="auto">For the same reason, we don't get two consecutive emphasis sections in this example:</p> +<div> +<div><a href="#example-421">Example 421</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7705:1-7707:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo**bar*</span></code></pre> +<pre data-sourcepos="9386:1-9388:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo**bar*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7709:1-7711:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo**bar</em></p></span></code></pre> +<pre data-sourcepos="9390:1-9392:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo**bar</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7714:1-7717:8" dir="auto">The same condition ensures that the following +</div> +<p data-sourcepos="9396:1-9399:8" dir="auto">The same condition ensures that the following cases are all strong emphasis nested inside emphasis, even when the interior spaces are omitted:</p> +<div> +<div><a href="#example-422">Example 422</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7720:1-7722:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***foo** bar*</span></code></pre> +<pre data-sourcepos="9405:1-9407:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***foo** bar*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7724:1-7726:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em><strong>foo</strong> bar</em></p></span></code></pre> +<pre data-sourcepos="9409:1-9411:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em><strong>foo</strong> bar</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-423">Example 423</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7729:1-7731:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo **bar***</span></code></pre> +<pre data-sourcepos="9418:1-9420:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo **bar***</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7733:1-7735:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <strong>bar</strong></em></p></span></code></pre> +<pre data-sourcepos="9422:1-9424:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <strong>bar</strong></em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-424">Example 424</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7738:1-7740:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo**bar***</span></code></pre> +<pre data-sourcepos="9431:1-9433:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo**bar***</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7742:1-7744:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo<strong>bar</strong></em></p></span></code></pre> +<pre data-sourcepos="9435:1-9437:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo<strong>bar</strong></em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7747:1-7749:34" dir="auto">When the lengths of the interior closing and opening +</div> +<p data-sourcepos="9441:1-9443:34" dir="auto">When the lengths of the interior closing and opening delimiter runs are <em>both</em> multiples of 3, though, they can match to create emphasis:</p> +<div> +<div><a href="#example-425">Example 425</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7751:1-7753:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo***bar***baz</span></code></pre> +<pre data-sourcepos="9448:1-9450:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo***bar***baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7755:1-7757:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<em><strong>bar</strong></em>baz</p></span></code></pre> +<pre data-sourcepos="9452:1-9454:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<em><strong>bar</strong></em>baz</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-426">Example 426</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7759:1-7761:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo******bar*********baz</span></code></pre> +<pre data-sourcepos="9460:1-9462:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo******bar*********baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7763:1-7765:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<strong><strong><strong>bar</strong></strong></strong>***baz</p></span></code></pre> +<pre data-sourcepos="9464:1-9466:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<strong><strong><strong>bar</strong></strong></strong>***baz</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7768:1-7768:42" dir="auto">Indefinite levels of nesting are possible:</p> +</div> +<p data-sourcepos="9470:1-9470:42" dir="auto">Indefinite levels of nesting are possible:</p> +<div> +<div><a href="#example-427">Example 427</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7770:1-7772:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo **bar *baz* bim** bop*</span></code></pre> +<pre data-sourcepos="9475:1-9477:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo **bar *baz* bim** bop*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7774:1-7776:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <strong>bar <em>baz</em> bim</strong> bop</em></p></span></code></pre> +<pre data-sourcepos="9479:1-9481:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <strong>bar <em>baz</em> bim</strong> bop</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-428">Example 428</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7779:1-7781:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo [*bar*](/url)*</span></code></pre> +<pre data-sourcepos="9488:1-9490:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo [*bar*](/url)*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7783:1-7785:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <a href="/url"><em>bar</em></a></em></p></span></code></pre> +<pre data-sourcepos="9492:1-9494:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <a href="/url"><em>bar</em></a></em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7788:1-7788:50" dir="auto">There can be no empty emphasis or strong emphasis:</p> +</div> +<p data-sourcepos="9498:1-9498:50" dir="auto">There can be no empty emphasis or strong emphasis:</p> +<div> +<div><a href="#example-429">Example 429</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7790:1-7792:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">** is not an empty emphasis</span></code></pre> +<pre data-sourcepos="9503:1-9505:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">** is not an empty emphasis</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7794:1-7796:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>** is not an empty emphasis</p></span></code></pre> +<pre data-sourcepos="9507:1-9509:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>** is not an empty emphasis</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-430">Example 430</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7799:1-7801:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**** is not an empty strong emphasis</span></code></pre> +<pre data-sourcepos="9516:1-9518:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**** is not an empty strong emphasis</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7803:1-7805:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>**** is not an empty strong emphasis</p></span></code></pre> +<pre data-sourcepos="9520:1-9522:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>**** is not an empty strong emphasis</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7809:1-7809:8" dir="auto">Rule 10:</p> -<p data-sourcepos="7811:1-7812:25" dir="auto">Any nonempty sequence of inline elements can be the contents of an +</div> +<p data-sourcepos="9527:1-9527:8" dir="auto">Rule 10:</p> +<p data-sourcepos="9529:1-9530:25" dir="auto">Any nonempty sequence of inline elements can be the contents of an strongly emphasized span.</p> +<div> +<div><a href="#example-431">Example 431</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7814:1-7816:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo [bar](/url)**</span></code></pre> +<pre data-sourcepos="9535:1-9537:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo [bar](/url)**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7818:1-7820:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo <a href="/url">bar</a></strong></p></span></code></pre> +<pre data-sourcepos="9539:1-9541:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo <a href="/url">bar</a></strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-432">Example 432</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7823:1-7826:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo</span> +<pre data-sourcepos="9548:1-9551:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo</span> <span id="LC2" class="line" lang="plaintext">bar**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7828:1-7831:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo</span> +<pre data-sourcepos="9553:1-9556:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo</span> <span id="LC2" class="line" lang="plaintext">bar</strong></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7834:1-7835:23" dir="auto">In particular, emphasis and strong emphasis can be nested +</div> +<p data-sourcepos="9560:1-9561:23" dir="auto">In particular, emphasis and strong emphasis can be nested inside strong emphasis:</p> +<div> +<div><a href="#example-433">Example 433</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7837:1-7839:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo _bar_ baz__</span></code></pre> +<pre data-sourcepos="9566:1-9568:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo _bar_ baz__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7841:1-7843:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo <em>bar</em> baz</strong></p></span></code></pre> +<pre data-sourcepos="9570:1-9572:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo <em>bar</em> baz</strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-434">Example 434</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7846:1-7848:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo __bar__ baz__</span></code></pre> +<pre data-sourcepos="9579:1-9581:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo __bar__ baz__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7850:1-7852:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo <strong>bar</strong> baz</strong></p></span></code></pre> +<pre data-sourcepos="9583:1-9585:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo <strong>bar</strong> baz</strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-435">Example 435</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7855:1-7857:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">____foo__ bar__</span></code></pre> +<pre data-sourcepos="9592:1-9594:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">____foo__ bar__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7859:1-7861:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong><strong>foo</strong> bar</strong></p></span></code></pre> +<pre data-sourcepos="9596:1-9598:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong><strong>foo</strong> bar</strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-436">Example 436</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7864:1-7866:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo **bar****</span></code></pre> +<pre data-sourcepos="9605:1-9607:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo **bar****</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7868:1-7870:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo <strong>bar</strong></strong></p></span></code></pre> +<pre data-sourcepos="9609:1-9611:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo <strong>bar</strong></strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-437">Example 437</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7873:1-7875:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo *bar* baz**</span></code></pre> +<pre data-sourcepos="9618:1-9620:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo *bar* baz**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7877:1-7879:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo <em>bar</em> baz</strong></p></span></code></pre> +<pre data-sourcepos="9622:1-9624:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo <em>bar</em> baz</strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-438">Example 438</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7882:1-7884:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo*bar*baz**</span></code></pre> +<pre data-sourcepos="9631:1-9633:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo*bar*baz**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7886:1-7888:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo<em>bar</em>baz</strong></p></span></code></pre> +<pre data-sourcepos="9635:1-9637:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo<em>bar</em>baz</strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-439">Example 439</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7891:1-7893:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***foo* bar**</span></code></pre> +<pre data-sourcepos="9644:1-9646:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***foo* bar**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7895:1-7897:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong><em>foo</em> bar</strong></p></span></code></pre> +<pre data-sourcepos="9648:1-9650:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong><em>foo</em> bar</strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-440">Example 440</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7900:1-7902:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo *bar***</span></code></pre> +<pre data-sourcepos="9657:1-9659:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo *bar***</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7904:1-7906:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo <em>bar</em></strong></p></span></code></pre> +<pre data-sourcepos="9661:1-9663:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo <em>bar</em></strong></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7909:1-7909:42" dir="auto">Indefinite levels of nesting are possible:</p> +</div> +<p data-sourcepos="9667:1-9667:42" dir="auto">Indefinite levels of nesting are possible:</p> +<div> +<div><a href="#example-441">Example 441</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7911:1-7914:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo *bar **baz**</span> +<pre data-sourcepos="9672:1-9675:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo *bar **baz**</span> <span id="LC2" class="line" lang="plaintext">bim* bop**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7916:1-7919:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo <em>bar <strong>baz</strong></span> +<pre data-sourcepos="9677:1-9680:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo <em>bar <strong>baz</strong></span> <span id="LC2" class="line" lang="plaintext">bim</em> bop</strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-442">Example 442</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7922:1-7924:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo [*bar*](/url)**</span></code></pre> +<pre data-sourcepos="9687:1-9689:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo [*bar*](/url)**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7926:1-7928:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo <a href="/url"><em>bar</em></a></strong></p></span></code></pre> +<pre data-sourcepos="9691:1-9693:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo <a href="/url"><em>bar</em></a></strong></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7931:1-7931:50" dir="auto">There can be no empty emphasis or strong emphasis:</p> +</div> +<p data-sourcepos="9697:1-9697:50" dir="auto">There can be no empty emphasis or strong emphasis:</p> +<div> +<div><a href="#example-443">Example 443</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7933:1-7935:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__ is not an empty emphasis</span></code></pre> +<pre data-sourcepos="9702:1-9704:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__ is not an empty emphasis</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7937:1-7939:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__ is not an empty emphasis</p></span></code></pre> +<pre data-sourcepos="9706:1-9708:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__ is not an empty emphasis</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-444">Example 444</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7942:1-7944:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">____ is not an empty strong emphasis</span></code></pre> +<pre data-sourcepos="9715:1-9717:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">____ is not an empty strong emphasis</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7946:1-7948:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>____ is not an empty strong emphasis</p></span></code></pre> +<pre data-sourcepos="9719:1-9721:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>____ is not an empty strong emphasis</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="7952:1-7952:8" dir="auto">Rule 11:</p> +</div> +<p data-sourcepos="9726:1-9726:8" dir="auto">Rule 11:</p> +<div> +<div><a href="#example-445">Example 445</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7954:1-7956:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo ***</span></code></pre> +<pre data-sourcepos="9731:1-9733:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo ***</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7958:1-7960:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo ***</p></span></code></pre> +<pre data-sourcepos="9735:1-9737:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo ***</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-446">Example 446</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7963:1-7965:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo *\**</span></code></pre> +<pre data-sourcepos="9744:1-9746:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo *\**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7967:1-7969:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <em>*</em></p></span></code></pre> +<pre data-sourcepos="9748:1-9750:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <em>*</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-447">Example 447</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7972:1-7974:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo *_*</span></code></pre> +<pre data-sourcepos="9757:1-9759:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo *_*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7976:1-7978:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <em>_</em></p></span></code></pre> +<pre data-sourcepos="9761:1-9763:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <em>_</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-448">Example 448</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7981:1-7983:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo *****</span></code></pre> +<pre data-sourcepos="9770:1-9772:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo *****</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7985:1-7987:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo *****</p></span></code></pre> +<pre data-sourcepos="9774:1-9776:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo *****</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-449">Example 449</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7990:1-7992:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo **\***</span></code></pre> +<pre data-sourcepos="9783:1-9785:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo **\***</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7994:1-7996:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <strong>*</strong></p></span></code></pre> +<pre data-sourcepos="9787:1-9789:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <strong>*</strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-450">Example 450</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="7999:1-8001:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo **_**</span></code></pre> +<pre data-sourcepos="9796:1-9798:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo **_**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8003:1-8005:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <strong>_</strong></p></span></code></pre> +<pre data-sourcepos="9800:1-9802:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <strong>_</strong></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8008:1-8010:32" dir="auto">Note that when delimiters do not match evenly, Rule 11 determines +</div> +<p data-sourcepos="9806:1-9808:32" dir="auto">Note that when delimiters do not match evenly, Rule 11 determines that the excess literal <code>*</code> characters will appear outside of the emphasis, rather than inside it:</p> +<div> +<div><a href="#example-451">Example 451</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8012:1-8014:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo*</span></code></pre> +<pre data-sourcepos="9813:1-9815:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8016:1-8018:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*<em>foo</em></p></span></code></pre> +<pre data-sourcepos="9817:1-9819:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*<em>foo</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-452">Example 452</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8021:1-8023:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo**</span></code></pre> +<pre data-sourcepos="9826:1-9828:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8025:1-8027:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo</em>*</p></span></code></pre> +<pre data-sourcepos="9830:1-9832:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo</em>*</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-453">Example 453</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8030:1-8032:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***foo**</span></code></pre> +<pre data-sourcepos="9839:1-9841:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***foo**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8034:1-8036:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*<strong>foo</strong></p></span></code></pre> +<pre data-sourcepos="9843:1-9845:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*<strong>foo</strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-454">Example 454</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8039:1-8041:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">****foo*</span></code></pre> +<pre data-sourcepos="9852:1-9854:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">****foo*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8043:1-8045:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>***<em>foo</em></p></span></code></pre> +<pre data-sourcepos="9856:1-9858:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>***<em>foo</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-455">Example 455</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8048:1-8050:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo***</span></code></pre> +<pre data-sourcepos="9865:1-9867:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo***</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8052:1-8054:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo</strong>*</p></span></code></pre> +<pre data-sourcepos="9869:1-9871:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo</strong>*</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-456">Example 456</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8057:1-8059:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo****</span></code></pre> +<pre data-sourcepos="9878:1-9880:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo****</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8061:1-8063:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo</em>***</p></span></code></pre> +<pre data-sourcepos="9882:1-9884:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo</em>***</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8067:1-8067:8" dir="auto">Rule 12:</p> +</div> +<p data-sourcepos="9889:1-9889:8" dir="auto">Rule 12:</p> +<div> +<div><a href="#example-457">Example 457</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8069:1-8071:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo ___</span></code></pre> +<pre data-sourcepos="9894:1-9896:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo ___</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8073:1-8075:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo ___</p></span></code></pre> +<pre data-sourcepos="9898:1-9900:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo ___</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-458">Example 458</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8078:1-8080:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo _\__</span></code></pre> +<pre data-sourcepos="9907:1-9909:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo _\__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8082:1-8084:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <em>_</em></p></span></code></pre> +<pre data-sourcepos="9911:1-9913:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <em>_</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-459">Example 459</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8087:1-8089:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo _*_</span></code></pre> +<pre data-sourcepos="9920:1-9922:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo _*_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8091:1-8093:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <em>*</em></p></span></code></pre> +<pre data-sourcepos="9924:1-9926:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <em>*</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-460">Example 460</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8096:1-8098:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo _____</span></code></pre> +<pre data-sourcepos="9933:1-9935:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo _____</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8100:1-8102:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo _____</p></span></code></pre> +<pre data-sourcepos="9937:1-9939:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo _____</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-461">Example 461</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8105:1-8107:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo __\___</span></code></pre> +<pre data-sourcepos="9946:1-9948:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo __\___</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8109:1-8111:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <strong>_</strong></p></span></code></pre> +<pre data-sourcepos="9950:1-9952:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <strong>_</strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-462">Example 462</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8114:1-8116:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo __*__</span></code></pre> +<pre data-sourcepos="9959:1-9961:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo __*__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8118:1-8120:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <strong>*</strong></p></span></code></pre> +<pre data-sourcepos="9963:1-9965:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <strong>*</strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-463">Example 463</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8123:1-8125:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo_</span></code></pre> +<pre data-sourcepos="9972:1-9974:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8127:1-8129:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_<em>foo</em></p></span></code></pre> +<pre data-sourcepos="9976:1-9978:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_<em>foo</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8132:1-8134:32" dir="auto">Note that when delimiters do not match evenly, Rule 12 determines +</div> +<p data-sourcepos="9982:1-9984:32" dir="auto">Note that when delimiters do not match evenly, Rule 12 determines that the excess literal <code>_</code> characters will appear outside of the emphasis, rather than inside it:</p> +<div> +<div><a href="#example-464">Example 464</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8136:1-8138:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo__</span></code></pre> +<pre data-sourcepos="9989:1-9991:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8140:1-8142:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo</em>_</p></span></code></pre> +<pre data-sourcepos="9993:1-9995:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo</em>_</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-465">Example 465</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8145:1-8147:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">___foo__</span></code></pre> +<pre data-sourcepos="10002:1-10004:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">___foo__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8149:1-8151:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_<strong>foo</strong></p></span></code></pre> +<pre data-sourcepos="10006:1-10008:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_<strong>foo</strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-466">Example 466</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8154:1-8156:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">____foo_</span></code></pre> +<pre data-sourcepos="10015:1-10017:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">____foo_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8158:1-8160:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>___<em>foo</em></p></span></code></pre> +<pre data-sourcepos="10019:1-10021:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>___<em>foo</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-467">Example 467</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8163:1-8165:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo___</span></code></pre> +<pre data-sourcepos="10028:1-10030:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo___</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8167:1-8169:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo</strong>_</p></span></code></pre> +<pre data-sourcepos="10032:1-10034:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo</strong>_</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-468">Example 468</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8172:1-8174:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo____</span></code></pre> +<pre data-sourcepos="10041:1-10043:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo____</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8176:1-8178:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo</em>___</p></span></code></pre> +<pre data-sourcepos="10045:1-10047:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo</em>___</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8181:1-8182:44" dir="auto">Rule 13 implies that if you want emphasis nested directly inside +</div> +<p data-sourcepos="10051:1-10052:44" dir="auto">Rule 13 implies that if you want emphasis nested directly inside emphasis, you must use different delimiters:</p> +<div> +<div><a href="#example-469">Example 469</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8184:1-8186:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo**</span></code></pre> +<pre data-sourcepos="10057:1-10059:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8188:1-8190:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo</strong></p></span></code></pre> +<pre data-sourcepos="10061:1-10063:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo</strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-470">Example 470</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8193:1-8195:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*_foo_*</span></code></pre> +<pre data-sourcepos="10070:1-10072:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*_foo_*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8197:1-8199:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em><em>foo</em></em></p></span></code></pre> +<pre data-sourcepos="10074:1-10076:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em><em>foo</em></em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-471">Example 471</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8202:1-8204:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo__</span></code></pre> +<pre data-sourcepos="10083:1-10085:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo__</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8206:1-8208:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo</strong></p></span></code></pre> +<pre data-sourcepos="10087:1-10089:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong>foo</strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-472">Example 472</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8211:1-8213:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_*foo*_</span></code></pre> +<pre data-sourcepos="10096:1-10098:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_*foo*_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8215:1-8217:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em><em>foo</em></em></p></span></code></pre> +<pre data-sourcepos="10100:1-10102:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em><em>foo</em></em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8220:1-8221:21" dir="auto">However, strong emphasis within strong emphasis is possible without +</div> +<p data-sourcepos="10106:1-10107:21" dir="auto">However, strong emphasis within strong emphasis is possible without switching delimiters:</p> +<div> +<div><a href="#example-473">Example 473</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8223:1-8225:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">****foo****</span></code></pre> +<pre data-sourcepos="10112:1-10114:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">****foo****</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8227:1-8229:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong><strong>foo</strong></strong></p></span></code></pre> +<pre data-sourcepos="10116:1-10118:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong><strong>foo</strong></strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-474">Example 474</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8232:1-8234:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">____foo____</span></code></pre> +<pre data-sourcepos="10125:1-10127:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">____foo____</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8236:1-8238:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong><strong>foo</strong></strong></p></span></code></pre> +<pre data-sourcepos="10129:1-10131:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong><strong>foo</strong></strong></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8242:1-8243:11" dir="auto">Rule 13 can be applied to arbitrarily long sequences of +</div> +<p data-sourcepos="10136:1-10137:11" dir="auto">Rule 13 can be applied to arbitrarily long sequences of delimiters:</p> +<div> +<div><a href="#example-475">Example 475</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8245:1-8247:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">******foo******</span></code></pre> +<pre data-sourcepos="10142:1-10144:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">******foo******</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8249:1-8251:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong><strong><strong>foo</strong></strong></strong></p></span></code></pre> +<pre data-sourcepos="10146:1-10148:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong><strong><strong>foo</strong></strong></strong></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8254:1-8254:8" dir="auto">Rule 14:</p> +</div> +<p data-sourcepos="10152:1-10152:8" dir="auto">Rule 14:</p> +<div> +<div><a href="#example-476">Example 476</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8256:1-8258:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***foo***</span></code></pre> +<pre data-sourcepos="10157:1-10159:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***foo***</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8260:1-8262:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em><strong>foo</strong></em></p></span></code></pre> +<pre data-sourcepos="10161:1-10163:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em><strong>foo</strong></em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-477">Example 477</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8265:1-8267:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_____foo_____</span></code></pre> +<pre data-sourcepos="10170:1-10172:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_____foo_____</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8269:1-8271:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em><strong><strong>foo</strong></strong></em></p></span></code></pre> +<pre data-sourcepos="10174:1-10176:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em><strong><strong>foo</strong></strong></em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8274:1-8274:8" dir="auto">Rule 15:</p> +</div> +<p data-sourcepos="10180:1-10180:8" dir="auto">Rule 15:</p> +<div> +<div><a href="#example-478">Example 478</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8276:1-8278:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo _bar* baz_</span></code></pre> +<pre data-sourcepos="10185:1-10187:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo _bar* baz_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8280:1-8282:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo _bar</em> baz_</p></span></code></pre> +<pre data-sourcepos="10189:1-10191:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo _bar</em> baz_</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-479">Example 479</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8285:1-8287:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo __bar *baz bim__ bam*</span></code></pre> +<pre data-sourcepos="10198:1-10200:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo __bar *baz bim__ bam*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8289:1-8291:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <strong>bar *baz bim</strong> bam</em></p></span></code></pre> +<pre data-sourcepos="10202:1-10204:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo <strong>bar *baz bim</strong> bam</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8294:1-8294:8" dir="auto">Rule 16:</p> +</div> +<p data-sourcepos="10208:1-10208:8" dir="auto">Rule 16:</p> +<div> +<div><a href="#example-480">Example 480</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8296:1-8298:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo **bar baz**</span></code></pre> +<pre data-sourcepos="10213:1-10215:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo **bar baz**</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8300:1-8302:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>**foo <strong>bar baz</strong></p></span></code></pre> +<pre data-sourcepos="10217:1-10219:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>**foo <strong>bar baz</strong></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-481">Example 481</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8305:1-8307:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo *bar baz*</span></code></pre> +<pre data-sourcepos="10226:1-10228:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo *bar baz*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8309:1-8311:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*foo <em>bar baz</em></p></span></code></pre> +<pre data-sourcepos="10230:1-10232:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*foo <em>bar baz</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8314:1-8314:8" dir="auto">Rule 17:</p> +</div> +<p data-sourcepos="10236:1-10236:8" dir="auto">Rule 17:</p> +<div> +<div><a href="#example-482">Example 482</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8316:1-8318:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*[bar*](/url)</span></code></pre> +<pre data-sourcepos="10241:1-10243:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*[bar*](/url)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8320:1-8322:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*<a href="/url">bar*</a></p></span></code></pre> +<pre data-sourcepos="10245:1-10247:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*<a href="/url">bar*</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-483">Example 483</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8325:1-8327:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo [bar_](/url)</span></code></pre> +<pre data-sourcepos="10254:1-10256:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo [bar_](/url)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8329:1-8331:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_foo <a href="/url">bar_</a></p></span></code></pre> +<pre data-sourcepos="10258:1-10260:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>_foo <a href="/url">bar_</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-484">Example 484</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8334:1-8336:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*<img src="foo" title="*"/></span></code></pre> +<pre data-sourcepos="10267:1-10269:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*<img src="foo" title="*"/></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8338:1-8340:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*<img src="foo" title="*"/></p></span></code></pre> +<pre data-sourcepos="10271:1-10273:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*<img src="foo" title="*"/></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-485">Example 485</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8343:1-8345:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**<a href="**"></span></code></pre> +<pre data-sourcepos="10280:1-10282:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**<a href="**"></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8347:1-8349:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>**<a href="**"></p></span></code></pre> +<pre data-sourcepos="10284:1-10286:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>**<a href="**"></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-486">Example 486</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8352:1-8354:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__<a href="__"></span></code></pre> +<pre data-sourcepos="10293:1-10295:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__<a href="__"></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8356:1-8358:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__<a href="__"></p></span></code></pre> +<pre data-sourcepos="10297:1-10299:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__<a href="__"></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-487">Example 487</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8361:1-8363:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*a `*`*</span></code></pre> +<pre data-sourcepos="10306:1-10308:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*a `*`*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8365:1-8367:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>a <code>*</code></em></p></span></code></pre> +<pre data-sourcepos="10310:1-10312:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>a <code>*</code></em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-488">Example 488</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8370:1-8372:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_a `_`_</span></code></pre> +<pre data-sourcepos="10319:1-10321:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_a `_`_</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8374:1-8376:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>a <code>_</code></em></p></span></code></pre> +<pre data-sourcepos="10323:1-10325:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>a <code>_</code></em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-489">Example 489</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8379:1-8381:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**a<http://foo.bar/?q=**></span></code></pre> +<pre data-sourcepos="10332:1-10334:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**a<http://foo.bar/?q=**></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8383:1-8385:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>**a<a href="http://foo.bar/?q=**">http://foo.bar/?q=**</a></p></span></code></pre> +<pre data-sourcepos="10336:1-10338:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>**a<a href="http://foo.bar/?q=**">http://foo.bar/?q=**</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-490">Example 490</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8388:1-8390:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__a<http://foo.bar/?q=__></span></code></pre> +<pre data-sourcepos="10345:1-10347:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__a<http://foo.bar/?q=__></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8392:1-8394:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__a<a href="http://foo.bar/?q=__">http://foo.bar/?q=__</a></p></span></code></pre> +<pre data-sourcepos="10349:1-10351:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>__a<a href="http://foo.bar/?q=__">http://foo.bar/?q=__</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> <div> -<h2 data-sourcepos="8399:1-8399:28"> +<h2 data-sourcepos="10357:1-10357:28"> <a id="user-content-strikethrough-extension" class="anchor" href="#strikethrough-extension" aria-hidden="true"></a>Strikethrough (extension)</h2> -<p data-sourcepos="8401:1-8402:10">GFM enables the <code>strikethrough</code> extension, where an additional emphasis type is +<p data-sourcepos="10359:1-10360:10">GFM enables the <code>strikethrough</code> extension, where an additional emphasis type is available.</p> -<p data-sourcepos="8404:1-8404:59">Strikethrough text is any text wrapped in two tildes (<code>~</code>).</p> +<p data-sourcepos="10362:1-10362:59">Strikethrough text is any text wrapped in two tildes (<code>~</code>).</p> +<div> +<div><a href="#example-491">Example 491</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8406:1-8408:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~Hi~~ Hello, world!</span></code></pre> +<pre data-sourcepos="10367:1-10369:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~Hi~~ Hello, world!</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8410:1-8412:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><del>Hi</del> Hello, world!</p></span></code></pre> +<pre data-sourcepos="10371:1-10373:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><del>Hi</del> Hello, world!</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8414:1-8415:17">As with regular emphasis delimiters, a new paragraph will cause strikethrough +</div> +<p data-sourcepos="10376:1-10377:17">As with regular emphasis delimiters, a new paragraph will cause strikethrough parsing to cease:</p> +<div> +<div><a href="#example-492">Example 492</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8417:1-8421:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">This ~~has a</span> +<pre data-sourcepos="10382:1-10386:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">This ~~has a</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">new paragraph~~.</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8423:1-8426:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>This ~~has a</p></span> +<pre data-sourcepos="10388:1-10391:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>This ~~has a</p></span> <span id="LC2" class="line" lang="plaintext"><p>new paragraph~~.</p></span></code></pre> <copy-code></copy-code> </div> </div> -<h2 data-sourcepos="8430:1-8430:8" dir="auto"> +</div> +<h2 data-sourcepos="10396:1-10396:8" dir="auto"> <a id="user-content-links" class="anchor" href="#links" aria-hidden="true"></a>Links</h2> -<p data-sourcepos="8432:1-8437:13" dir="auto">A link contains [link text] (the visible text), a [link destination] +<p data-sourcepos="10398:1-10403:13" dir="auto">A link contains [link text] (the visible text), a [link destination] (the URI that is the link destination), and optionally a [link title]. There are two basic kinds of links in Markdown. In [inline links] the destination and title are given immediately after the link text. In [reference links] the destination and title are defined elsewhere in the document.</p> -<p data-sourcepos="8439:1-8441:22" dir="auto">A <a href="@">link text</a> consists of a sequence of zero or more +<p data-sourcepos="10405:1-10407:22" dir="auto">A <a href="@">link text</a> consists of a sequence of zero or more inline elements enclosed by square brackets (<code>[</code> and <code>]</code>). The following rules apply:</p> -<ul data-sourcepos="8443:1-8459:0" dir="auto"> -<li data-sourcepos="8443:1-8446:0"> -<p data-sourcepos="8443:3-8445:43">Links may not contain other links, at any level of nesting. If +<ul data-sourcepos="10409:1-10425:0" dir="auto"> +<li data-sourcepos="10409:1-10412:0"> +<p data-sourcepos="10409:3-10411:43">Links may not contain other links, at any level of nesting. If multiple otherwise valid link definitions appear nested inside each other, the inner-most definition is used.</p> </li> -<li data-sourcepos="8447:1-8451:0"> -<p data-sourcepos="8447:3-8450:22">Brackets are allowed in the [link text] only if (a) they +<li data-sourcepos="10413:1-10417:0"> +<p data-sourcepos="10413:3-10416:22">Brackets are allowed in the [link text] only if (a) they are backslash-escaped or (b) they appear as a matched pair of brackets, with an open bracket <code>[</code>, a sequence of zero or more inlines, and a close bracket <code>]</code>.</p> </li> -<li data-sourcepos="8452:1-8456:0"> -<p data-sourcepos="8452:3-8455:25">Backtick [code spans], [autolinks], and raw [HTML tags] bind more tightly +<li data-sourcepos="10418:1-10422:0"> +<p data-sourcepos="10418:3-10421:25">Backtick [code spans], [autolinks], and raw [HTML tags] bind more tightly than the brackets in link text. Thus, for example, <code>[foo`]`</code> could not be a link text, since the second <code>]</code> is part of a code span.</p> </li> -<li data-sourcepos="8457:1-8459:0"> -<p data-sourcepos="8457:3-8458:78">The brackets in link text bind more tightly than markers for +<li data-sourcepos="10423:1-10425:0"> +<p data-sourcepos="10423:3-10424:78">The brackets in link text bind more tightly than markers for [emphasis and strong emphasis]. Thus, for example, <code>*[foo*](url)</code> is a link.</p> </li> </ul> -<p data-sourcepos="8460:1-8460:42" dir="auto">A <a href="@">link destination</a> consists of either</p> -<ul data-sourcepos="8462:1-8473:0" dir="auto"> -<li data-sourcepos="8462:1-8465:0"> -<p data-sourcepos="8462:3-8464:27">a sequence of zero or more characters between an opening <code><</code> and a +<p data-sourcepos="10426:1-10426:42" dir="auto">A <a href="@">link destination</a> consists of either</p> +<ul data-sourcepos="10428:1-10439:0" dir="auto"> +<li data-sourcepos="10428:1-10431:0"> +<p data-sourcepos="10428:3-10430:27">a sequence of zero or more characters between an opening <code><</code> and a closing <code>></code> that contains no line breaks or unescaped <code><</code> or <code>></code> characters, or</p> </li> -<li data-sourcepos="8466:1-8473:0"> -<p data-sourcepos="8466:3-8472:23">a nonempty sequence of characters that does not start with +<li data-sourcepos="10432:1-10439:0"> +<p data-sourcepos="10432:3-10438:23">a nonempty sequence of characters that does not start with <code><</code>, does not include ASCII space or control characters, and includes parentheses only if (a) they are backslash-escaped or (b) they are part of a balanced pair of unescaped parentheses. @@ -7618,27 +9458,27 @@ avoid performance issues, but at least three levels of nesting should be supported.)</p> </li> </ul> -<p data-sourcepos="8474:1-8474:37" dir="auto">A <a href="@">link title</a> consists of either</p> -<ul data-sourcepos="8476:1-8487:0" dir="auto"> -<li data-sourcepos="8476:1-8479:0"> -<p data-sourcepos="8476:3-8478:23">a sequence of zero or more characters between straight double-quote +<p data-sourcepos="10440:1-10440:37" dir="auto">A <a href="@">link title</a> consists of either</p> +<ul data-sourcepos="10442:1-10453:0" dir="auto"> +<li data-sourcepos="10442:1-10445:0"> +<p data-sourcepos="10442:3-10444:23">a sequence of zero or more characters between straight double-quote characters (<code>"</code>), including a <code>"</code> character only if it is backslash-escaped, or</p> </li> -<li data-sourcepos="8480:1-8483:0"> -<p data-sourcepos="8480:3-8482:23">a sequence of zero or more characters between straight single-quote +<li data-sourcepos="10446:1-10449:0"> +<p data-sourcepos="10446:3-10448:23">a sequence of zero or more characters between straight single-quote characters (<code>'</code>), including a <code>'</code> character only if it is backslash-escaped, or</p> </li> -<li data-sourcepos="8484:1-8487:0"> -<p data-sourcepos="8484:3-8486:20">a sequence of zero or more characters between matching parentheses +<li data-sourcepos="10450:1-10453:0"> +<p data-sourcepos="10450:3-10452:20">a sequence of zero or more characters between matching parentheses (<code>(...)</code>), including a <code>(</code> or <code>)</code> character only if it is backslash-escaped.</p> </li> </ul> -<p data-sourcepos="8488:1-8489:15" dir="auto">Although [link titles] may span multiple lines, they may not contain +<p data-sourcepos="10454:1-10455:15" dir="auto">Although [link titles] may span multiple lines, they may not contain a [blank line].</p> -<p data-sourcepos="8491:1-8501:6" dir="auto">An <a href="@">inline link</a> consists of a [link text] followed immediately +<p data-sourcepos="10457:1-10467:6" dir="auto">An <a href="@">inline link</a> consists of a [link text] followed immediately by a left parenthesis <code>(</code>, optional [whitespace], an optional [link destination], an optional [link title] separated from the link destination by [whitespace], optional [whitespace], and a right @@ -7649,164 +9489,214 @@ The link's URI consists of the link destination, excluding enclosing above. The link's title consists of the link title, excluding its enclosing delimiters, with backslash-escapes in effect as described above.</p> -<p data-sourcepos="8503:1-8503:29" dir="auto">Here is a simple inline link:</p> +<p data-sourcepos="10469:1-10469:29" dir="auto">Here is a simple inline link:</p> +<div> +<div><a href="#example-493">Example 493</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8505:1-8507:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/uri "title")</span></code></pre> +<pre data-sourcepos="10474:1-10476:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/uri "title")</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8509:1-8511:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri" title="title">link</a></p></span></code></pre> +<pre data-sourcepos="10478:1-10480:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri" title="title">link</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8514:1-8514:25" dir="auto">The title may be omitted:</p> +</div> +<p data-sourcepos="10484:1-10484:25" dir="auto">The title may be omitted:</p> +<div> +<div><a href="#example-494">Example 494</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8516:1-8518:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/uri)</span></code></pre> +<pre data-sourcepos="10489:1-10491:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/uri)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8520:1-8522:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">link</a></p></span></code></pre> +<pre data-sourcepos="10493:1-10495:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">link</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8525:1-8525:50" dir="auto">Both the title and the destination may be omitted:</p> +</div> +<p data-sourcepos="10499:1-10499:50" dir="auto">Both the title and the destination may be omitted:</p> +<div> +<div><a href="#example-495">Example 495</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8527:1-8529:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link]()</span></code></pre> +<pre data-sourcepos="10504:1-10506:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link]()</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8531:1-8533:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="">link</a></p></span></code></pre> +<pre data-sourcepos="10508:1-10510:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="">link</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-496">Example 496</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8536:1-8538:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](<>)</span></code></pre> +<pre data-sourcepos="10517:1-10519:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](<>)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8540:1-8542:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="">link</a></p></span></code></pre> +<pre data-sourcepos="10521:1-10523:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="">link</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8544:1-8545:28" dir="auto">The destination can only contain spaces if it is +</div> +<p data-sourcepos="10526:1-10527:28" dir="auto">The destination can only contain spaces if it is enclosed in pointy brackets:</p> +<div> +<div><a href="#example-497">Example 497</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8547:1-8549:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/my uri)</span></code></pre> +<pre data-sourcepos="10532:1-10534:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/my uri)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8551:1-8553:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[link](/my uri)</p></span></code></pre> +<pre data-sourcepos="10536:1-10538:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[link](/my uri)</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-498">Example 498</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8555:1-8557:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](</my uri>)</span></code></pre> +<pre data-sourcepos="10544:1-10546:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](</my uri>)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8559:1-8561:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/my%20uri">link</a></p></span></code></pre> +<pre data-sourcepos="10548:1-10550:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/my%20uri">link</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8563:1-8564:36" dir="auto">The destination cannot contain line breaks, +</div> +<p data-sourcepos="10553:1-10554:36" dir="auto">The destination cannot contain line breaks, even if enclosed in pointy brackets:</p> +<div> +<div><a href="#example-499">Example 499</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8566:1-8569:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo</span> +<pre data-sourcepos="10559:1-10562:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo</span> <span id="LC2" class="line" lang="plaintext">bar)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8571:1-8574:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[link](foo</span> +<pre data-sourcepos="10564:1-10567:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[link](foo</span> <span id="LC2" class="line" lang="plaintext">bar)</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-500">Example 500</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8576:1-8579:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](<foo</span> +<pre data-sourcepos="10573:1-10576:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](<foo</span> <span id="LC2" class="line" lang="plaintext">bar>)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8581:1-8584:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[link](<foo</span> +<pre data-sourcepos="10578:1-10581:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[link](<foo</span> <span id="LC2" class="line" lang="plaintext">bar>)</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8586:1-8587:19" dir="auto">The destination can contain <code>)</code> if it is enclosed +</div> +<p data-sourcepos="10584:1-10585:19" dir="auto">The destination can contain <code>)</code> if it is enclosed in pointy brackets:</p> +<div> +<div><a href="#example-501">Example 501</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8589:1-8591:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[a](<b)c>)</span></code></pre> +<pre data-sourcepos="10590:1-10592:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[a](<b)c>)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8593:1-8595:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="b)c">a</a></p></span></code></pre> +<pre data-sourcepos="10594:1-10596:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="b)c">a</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8597:1-8597:53" dir="auto">Pointy brackets that enclose links must be unescaped:</p> +</div> +<p data-sourcepos="10599:1-10599:53" dir="auto">Pointy brackets that enclose links must be unescaped:</p> +<div> +<div><a href="#example-502">Example 502</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8599:1-8601:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](<foo\>)</span></code></pre> +<pre data-sourcepos="10604:1-10606:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](<foo\>)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8603:1-8605:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[link](&lt;foo&gt;)</p></span></code></pre> +<pre data-sourcepos="10608:1-10610:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[link](&lt;foo&gt;)</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8607:1-8608:24" dir="auto">These are not links, because the opening pointy bracket +</div> +<p data-sourcepos="10613:1-10614:24" dir="auto">These are not links, because the opening pointy bracket is not matched properly:</p> +<div> +<div><a href="#example-503">Example 503</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8610:1-8614:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[a](<b)c</span> +<pre data-sourcepos="10619:1-10623:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[a](<b)c</span> <span id="LC2" class="line" lang="plaintext">[a](<b)c></span> <span id="LC3" class="line" lang="plaintext">[a](<b>c)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8616:1-8620:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[a](&lt;b)c</span> +<pre data-sourcepos="10625:1-10629:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[a](&lt;b)c</span> <span id="LC2" class="line" lang="plaintext">[a](&lt;b)c&gt;</span> <span id="LC3" class="line" lang="plaintext">[a](<b>c)</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8622:1-8622:55" dir="auto">Parentheses inside the link destination may be escaped:</p> +</div> +<p data-sourcepos="10632:1-10632:55" dir="auto">Parentheses inside the link destination may be escaped:</p> +<div> +<div><a href="#example-504">Example 504</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8624:1-8626:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](\(foo\))</span></code></pre> +<pre data-sourcepos="10637:1-10639:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](\(foo\))</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8628:1-8630:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="(foo)">link</a></p></span></code></pre> +<pre data-sourcepos="10641:1-10643:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="(foo)">link</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8632:1-8633:9" dir="auto">Any number of parentheses are allowed without escaping, as long as they are +</div> +<p data-sourcepos="10646:1-10647:9" dir="auto">Any number of parentheses are allowed without escaping, as long as they are balanced:</p> +<div> +<div><a href="#example-505">Example 505</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8635:1-8637:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo(and(bar)))</span></code></pre> +<pre data-sourcepos="10652:1-10654:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo(and(bar)))</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8639:1-8641:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="foo(and(bar))">link</a></p></span></code></pre> +<pre data-sourcepos="10656:1-10658:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="foo(and(bar))">link</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8643:1-8644:13" dir="auto">However, if you have unbalanced parentheses, you need to escape or use the +</div> +<p data-sourcepos="10661:1-10662:13" dir="auto">However, if you have unbalanced parentheses, you need to escape or use the <code><...></code> form:</p> +<div> +<div><a href="#example-506">Example 506</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8646:1-8648:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo\(and\(bar\))</span></code></pre> +<pre data-sourcepos="10667:1-10669:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo\(and\(bar\))</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8650:1-8652:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="foo(and(bar)">link</a></p></span></code></pre> +<pre data-sourcepos="10671:1-10673:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="foo(and(bar)">link</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-507">Example 507</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8655:1-8657:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](<foo(and(bar)>)</span></code></pre> +<pre data-sourcepos="10680:1-10682:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](<foo(and(bar)>)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8659:1-8661:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="foo(and(bar)">link</a></p></span></code></pre> +<pre data-sourcepos="10684:1-10686:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="foo(and(bar)">link</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8664:1-8665:12" dir="auto">Parentheses and other symbols can also be escaped, as usual +</div> +<p data-sourcepos="10690:1-10691:12" dir="auto">Parentheses and other symbols can also be escaped, as usual in Markdown:</p> +<div> +<div><a href="#example-508">Example 508</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8667:1-8669:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo\)\:)</span></code></pre> +<pre data-sourcepos="10696:1-10698:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo\)\:)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8671:1-8673:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="foo):">link</a></p></span></code></pre> +<pre data-sourcepos="10700:1-10702:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="foo):">link</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8676:1-8676:52" dir="auto">A link can contain fragment identifiers and queries:</p> +</div> +<p data-sourcepos="10706:1-10706:52" dir="auto">A link can contain fragment identifiers and queries:</p> +<div> +<div><a href="#example-509">Example 509</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8678:1-8684:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](#fragment)</span> +<pre data-sourcepos="10711:1-10717:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](#fragment)</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[link](http://example.com#fragment)</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -7814,22 +9704,26 @@ in Markdown:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8686:1-8690:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="#fragment">link</a></p></span> +<pre data-sourcepos="10719:1-10723:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="#fragment">link</a></p></span> <span id="LC2" class="line" lang="plaintext"><p><a href="http://example.com#fragment">link</a></p></span> <span id="LC3" class="line" lang="plaintext"><p><a href="http://example.com?foo=3#frag">link</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8693:1-8694:17" dir="auto">Note that a backslash before a non-escapable character is +</div> +<p data-sourcepos="10727:1-10728:17" dir="auto">Note that a backslash before a non-escapable character is just a backslash:</p> +<div> +<div><a href="#example-510">Example 510</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8696:1-8698:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo\bar)</span></code></pre> +<pre data-sourcepos="10733:1-10735:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo\bar)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8700:1-8702:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="foo%5Cbar">link</a></p></span></code></pre> +<pre data-sourcepos="10737:1-10739:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="foo%5Cbar">link</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8705:1-8712:52" dir="auto">URL-escaping should be left alone inside the destination, as all +</div> +<p data-sourcepos="10743:1-10750:52" dir="auto">URL-escaping should be left alone inside the destination, as all URL-escaped characters are also valid URL characters. Entity and numerical character references in the destination will be parsed into the corresponding Unicode code points, as usual. These may @@ -7837,77 +9731,98 @@ be optionally URL-escaped when written as HTML, but this spec does not enforce any particular policy for rendering URLs in HTML or other formats. Renderers may make different decisions about how to escape or normalize URLs in the output.</p> +<div> +<div><a href="#example-511">Example 511</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8714:1-8716:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo%20b&auml;)</span></code></pre> +<pre data-sourcepos="10755:1-10757:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo%20b&auml;)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8718:1-8720:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="foo%20b%C3%A4">link</a></p></span></code></pre> +<pre data-sourcepos="10759:1-10761:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="foo%20b%C3%A4">link</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8723:1-8725:23" dir="auto">Note that, because titles can often be parsed as destinations, +</div> +<p data-sourcepos="10765:1-10767:23" dir="auto">Note that, because titles can often be parsed as destinations, if you try to omit the destination and keep the title, you'll get unexpected results:</p> +<div> +<div><a href="#example-512">Example 512</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8727:1-8729:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link]("title")</span></code></pre> +<pre data-sourcepos="10772:1-10774:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link]("title")</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8731:1-8733:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="%22title%22">link</a></p></span></code></pre> +<pre data-sourcepos="10776:1-10778:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="%22title%22">link</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8736:1-8736:62" dir="auto">Titles may be in single quotes, double quotes, or parentheses:</p> +</div> +<p data-sourcepos="10782:1-10782:62" dir="auto">Titles may be in single quotes, double quotes, or parentheses:</p> +<div> +<div><a href="#example-513">Example 513</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8738:1-8742:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url "title")</span> +<pre data-sourcepos="10787:1-10791:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url "title")</span> <span id="LC2" class="line" lang="plaintext">[link](/url 'title')</span> <span id="LC3" class="line" lang="plaintext">[link](/url (title))</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8744:1-8748:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">link</a></span> +<pre data-sourcepos="10793:1-10797:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">link</a></span> <span id="LC2" class="line" lang="plaintext"><a href="/url" title="title">link</a></span> <span id="LC3" class="line" lang="plaintext"><a href="/url" title="title">link</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8751:1-8752:22" dir="auto">Backslash escapes and entity and numeric character references +</div> +<p data-sourcepos="10801:1-10802:22" dir="auto">Backslash escapes and entity and numeric character references may be used in titles:</p> +<div> +<div><a href="#example-514">Example 514</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8754:1-8756:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url "title \"&quot;")</span></code></pre> +<pre data-sourcepos="10807:1-10809:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url "title \"&quot;")</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8758:1-8760:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title &quot;&quot;">link</a></p></span></code></pre> +<pre data-sourcepos="10811:1-10813:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title &quot;&quot;">link</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8763:1-8764:64" dir="auto">Titles must be separated from the link using a [whitespace]. +</div> +<p data-sourcepos="10817:1-10818:64" dir="auto">Titles must be separated from the link using a [whitespace]. Other [Unicode whitespace] like non-breaking space doesn't work.</p> +<div> +<div><a href="#example-515">Example 515</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8766:1-8768:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url "title")</span></code></pre> +<pre data-sourcepos="10823:1-10825:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url "title")</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8770:1-8772:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url%C2%A0%22title%22">link</a></p></span></code></pre> +<pre data-sourcepos="10827:1-10829:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url%C2%A0%22title%22">link</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8775:1-8775:56" dir="auto">Nested balanced quotes are not allowed without escaping:</p> +</div> +<p data-sourcepos="10833:1-10833:56" dir="auto">Nested balanced quotes are not allowed without escaping:</p> +<div> +<div><a href="#example-516">Example 516</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8777:1-8779:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url "title "and" title")</span></code></pre> +<pre data-sourcepos="10838:1-10840:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url "title "and" title")</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8781:1-8783:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[link](/url &quot;title &quot;and&quot; title&quot;)</p></span></code></pre> +<pre data-sourcepos="10842:1-10844:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[link](/url &quot;title &quot;and&quot; title&quot;)</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8786:1-8786:67" dir="auto">But it is easy to work around this by using a different quote type:</p> +</div> +<p data-sourcepos="10848:1-10848:67" dir="auto">But it is easy to work around this by using a different quote type:</p> +<div> +<div><a href="#example-517">Example 517</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8788:1-8790:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url 'title "and" title')</span></code></pre> +<pre data-sourcepos="10853:1-10855:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url 'title "and" title')</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8792:1-8794:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title &quot;and&quot; title">link</a></p></span></code></pre> +<pre data-sourcepos="10857:1-10859:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title &quot;and&quot; title">link</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8797:1-8810:61" dir="auto">(Note: <code>Markdown.pl</code> did allow double quotes inside a double-quoted +</div> +<p data-sourcepos="10863:1-10876:61" dir="auto">(Note: <code>Markdown.pl</code> did allow double quotes inside a double-quoted title, and its test suite included a test demonstrating this. But it is hard to see a good rationale for the extra complexity this brings, since there are already many ways---backslash escaping, @@ -7921,170 +9836,221 @@ with <code>"</code> and end with <code>)</code>. <code>Markdown.pl</code> 1.0.1 titles with no closing quotation mark, though 1.0.2b8 does not. It seems preferable to adopt a simple, rational rule that works the same way in inline links and link reference definitions.)</p> -<p data-sourcepos="8812:1-8812:57" dir="auto">[Whitespace] is allowed around the destination and title:</p> +<p data-sourcepos="10878:1-10878:57" dir="auto">[Whitespace] is allowed around the destination and title:</p> +<div> +<div><a href="#example-518">Example 518</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8814:1-8817:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link]( /uri</span> +<pre data-sourcepos="10883:1-10886:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link]( /uri</span> <span id="LC2" class="line" lang="plaintext"> "title" )</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8819:1-8821:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri" title="title">link</a></p></span></code></pre> +<pre data-sourcepos="10888:1-10890:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri" title="title">link</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8824:1-8825:22" dir="auto">But it is not allowed between the link text and the +</div> +<p data-sourcepos="10894:1-10895:22" dir="auto">But it is not allowed between the link text and the following parenthesis:</p> +<div> +<div><a href="#example-519">Example 519</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8827:1-8829:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link] (/uri)</span></code></pre> +<pre data-sourcepos="10900:1-10902:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link] (/uri)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8831:1-8833:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[link] (/uri)</p></span></code></pre> +<pre data-sourcepos="10904:1-10906:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[link] (/uri)</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8836:1-8837:24" dir="auto">The link text may contain balanced brackets, but not unbalanced ones, +</div> +<p data-sourcepos="10910:1-10911:24" dir="auto">The link text may contain balanced brackets, but not unbalanced ones, unless they are escaped:</p> +<div> +<div><a href="#example-520">Example 520</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8839:1-8841:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link [foo [bar]]](/uri)</span></code></pre> +<pre data-sourcepos="10916:1-10918:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link [foo [bar]]](/uri)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8843:1-8845:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">link [foo [bar]]</a></p></span></code></pre> +<pre data-sourcepos="10920:1-10922:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">link [foo [bar]]</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-521">Example 521</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8848:1-8850:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link] bar](/uri)</span></code></pre> +<pre data-sourcepos="10929:1-10931:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link] bar](/uri)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8852:1-8854:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[link] bar](/uri)</p></span></code></pre> +<pre data-sourcepos="10933:1-10935:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[link] bar](/uri)</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-522">Example 522</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8857:1-8859:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link [bar](/uri)</span></code></pre> +<pre data-sourcepos="10942:1-10944:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link [bar](/uri)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8861:1-8863:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[link <a href="/uri">bar</a></p></span></code></pre> +<pre data-sourcepos="10946:1-10948:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[link <a href="/uri">bar</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-523">Example 523</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8866:1-8868:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link \[bar](/uri)</span></code></pre> +<pre data-sourcepos="10955:1-10957:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link \[bar](/uri)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8870:1-8872:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">link [bar</a></p></span></code></pre> +<pre data-sourcepos="10959:1-10961:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">link [bar</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8875:1-8875:41" dir="auto">The link text may contain inline content:</p> +</div> +<p data-sourcepos="10965:1-10965:41" dir="auto">The link text may contain inline content:</p> +<div> +<div><a href="#example-524">Example 524</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8877:1-8879:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link *foo **bar** `#`*](/uri)</span></code></pre> +<pre data-sourcepos="10970:1-10972:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link *foo **bar** `#`*](/uri)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8881:1-8883:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">link <em>foo <strong>bar</strong> <code>#</code></em></a></p></span></code></pre> +<pre data-sourcepos="10974:1-10976:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">link <em>foo <strong>bar</strong> <code>#</code></em></a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-525">Example 525</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8886:1-8888:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[![moon](moon.jpg)](/uri)</span></code></pre> +<pre data-sourcepos="10983:1-10985:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[![moon](moon.jpg)](/uri)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8890:1-8892:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri"><img src="moon.jpg" alt="moon" /></a></p></span></code></pre> +<pre data-sourcepos="10987:1-10989:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri"><img src="moon.jpg" alt="moon" /></a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8895:1-8895:68" dir="auto">However, links may not contain other links, at any level of nesting.</p> +</div> +<p data-sourcepos="10993:1-10993:68" dir="auto">However, links may not contain other links, at any level of nesting.</p> +<div> +<div><a href="#example-526">Example 526</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8897:1-8899:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo [bar](/uri)](/uri)</span></code></pre> +<pre data-sourcepos="10998:1-11000:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo [bar](/uri)](/uri)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8901:1-8903:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo <a href="/uri">bar</a>](/uri)</p></span></code></pre> +<pre data-sourcepos="11002:1-11004:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo <a href="/uri">bar</a>](/uri)</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-527">Example 527</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8906:1-8908:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo *[bar [baz](/uri)](/uri)*](/uri)</span></code></pre> +<pre data-sourcepos="11011:1-11013:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo *[bar [baz](/uri)](/uri)*](/uri)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8910:1-8912:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo <em>[bar <a href="/uri">baz</a>](/uri)</em>](/uri)</p></span></code></pre> +<pre data-sourcepos="11015:1-11017:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo <em>[bar <a href="/uri">baz</a>](/uri)</em>](/uri)</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-528">Example 528</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8915:1-8917:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![[[foo](uri1)](uri2)](uri3)</span></code></pre> +<pre data-sourcepos="11024:1-11026:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![[[foo](uri1)](uri2)](uri3)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8919:1-8921:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="uri3" alt="[foo](uri2)" /></p></span></code></pre> +<pre data-sourcepos="11028:1-11030:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="uri3" alt="[foo](uri2)" /></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8924:1-8925:18" dir="auto">These cases illustrate the precedence of link text grouping over +</div> +<p data-sourcepos="11034:1-11035:18" dir="auto">These cases illustrate the precedence of link text grouping over emphasis grouping:</p> +<div> +<div><a href="#example-529">Example 529</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8927:1-8929:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*[foo*](/uri)</span></code></pre> +<pre data-sourcepos="11040:1-11042:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*[foo*](/uri)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8931:1-8933:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*<a href="/uri">foo*</a></p></span></code></pre> +<pre data-sourcepos="11044:1-11046:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*<a href="/uri">foo*</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-530">Example 530</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8936:1-8938:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo *bar](baz*)</span></code></pre> +<pre data-sourcepos="11053:1-11055:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo *bar](baz*)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8940:1-8942:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="baz*">foo *bar</a></p></span></code></pre> +<pre data-sourcepos="11057:1-11059:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="baz*">foo *bar</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8945:1-8946:11" dir="auto">Note that brackets that <em>aren't</em> part of links do not take +</div> +<p data-sourcepos="11063:1-11064:11" dir="auto">Note that brackets that <em>aren't</em> part of links do not take precedence:</p> +<div> +<div><a href="#example-531">Example 531</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8948:1-8950:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo [bar* baz]</span></code></pre> +<pre data-sourcepos="11069:1-11071:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo [bar* baz]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8952:1-8954:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo [bar</em> baz]</p></span></code></pre> +<pre data-sourcepos="11073:1-11075:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo [bar</em> baz]</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8957:1-8958:33" dir="auto">These cases illustrate the precedence of HTML tags, code spans, +</div> +<p data-sourcepos="11079:1-11080:33" dir="auto">These cases illustrate the precedence of HTML tags, code spans, and autolinks over link grouping:</p> +<div> +<div><a href="#example-532">Example 532</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8960:1-8962:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo <bar attr="](baz)"></span></code></pre> +<pre data-sourcepos="11085:1-11087:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo <bar attr="](baz)"></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8964:1-8966:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo <bar attr="](baz)"></p></span></code></pre> +<pre data-sourcepos="11089:1-11091:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo <bar attr="](baz)"></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-533">Example 533</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8969:1-8971:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo`](/uri)`</span></code></pre> +<pre data-sourcepos="11098:1-11100:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo`](/uri)`</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8973:1-8975:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo<code>](/uri)</code></p></span></code></pre> +<pre data-sourcepos="11102:1-11104:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo<code>](/uri)</code></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-534">Example 534</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8978:1-8980:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo<http://example.com/?search=](uri)></span></code></pre> +<pre data-sourcepos="11111:1-11113:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo<http://example.com/?search=](uri)></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="8982:1-8984:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo<a href="http://example.com/?search=%5D(uri)">http://example.com/?search=](uri)</a></p></span></code></pre> +<pre data-sourcepos="11115:1-11117:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo<a href="http://example.com/?search=%5D(uri)">http://example.com/?search=](uri)</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="8987:1-8989:41" dir="auto">There are three kinds of <a href="@">reference link</a>s: +</div> +<p data-sourcepos="11121:1-11123:41" dir="auto">There are three kinds of <a href="@">reference link</a>s: <a href="#full-reference-link">full</a>, <a href="#collapsed-reference-link">collapsed</a>, and <a href="#shortcut-reference-link">shortcut</a>.</p> -<p data-sourcepos="8991:1-8993:71" dir="auto">A <a href="@">full reference link</a> +<p data-sourcepos="11125:1-11127:71" dir="auto">A <a href="@">full reference link</a> consists of a [link text] immediately followed by a [link label] that [matches] a [link reference definition] elsewhere in the document.</p> -<p data-sourcepos="8995:1-9001:9" dir="auto">A <a href="@">link label</a> begins with a left bracket (<code>[</code>) and ends +<p data-sourcepos="11129:1-11135:9" dir="auto">A <a href="@">link label</a> begins with a left bracket (<code>[</code>) and ends with the first right bracket (<code>]</code>) that is not backslash-escaped. Between these brackets there must be at least one [non-whitespace character]. Unescaped square bracket characters are not allowed inside the opening and closing square brackets of [link labels]. A link label can have at most 999 characters inside the square brackets.</p> -<p data-sourcepos="9003:1-9010:69" dir="auto">One label <a href="@">matches</a> +<p data-sourcepos="11137:1-11144:69" dir="auto">One label <a href="@">matches</a> another just in case their normalized forms are equal. To normalize a label, strip off the opening and closing brackets, perform the <em>Unicode case fold</em>, strip leading and trailing @@ -8092,202 +10058,253 @@ perform the <em>Unicode case fold</em>, strip leading and trailing [whitespace] to a single space. If there are multiple matching reference link definitions, the one that comes first in the document is used. (It is desirable in such cases to emit a warning.)</p> -<p data-sourcepos="9012:1-9014:37" dir="auto">The contents of the first link label are parsed as inlines, which are +<p data-sourcepos="11146:1-11148:37" dir="auto">The contents of the first link label are parsed as inlines, which are used as the link's text. The link's URI and title are provided by the matching [link reference definition].</p> -<p data-sourcepos="9016:1-9016:25" dir="auto">Here is a simple example:</p> +<p data-sourcepos="11150:1-11150:25" dir="auto">Here is a simple example:</p> +<div> +<div><a href="#example-535">Example 535</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9018:1-9022:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][bar]</span> +<pre data-sourcepos="11155:1-11159:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][bar]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[bar]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9024:1-9026:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">foo</a></p></span></code></pre> +<pre data-sourcepos="11161:1-11163:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">foo</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9029:1-9030:22" dir="auto">The rules for the [link text] are the same as with +</div> +<p data-sourcepos="11167:1-11168:22" dir="auto">The rules for the [link text] are the same as with [inline links]. Thus:</p> -<p data-sourcepos="9032:1-9033:24" dir="auto">The link text may contain balanced brackets, but not unbalanced ones, +<p data-sourcepos="11170:1-11171:24" dir="auto">The link text may contain balanced brackets, but not unbalanced ones, unless they are escaped:</p> +<div> +<div><a href="#example-536">Example 536</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9035:1-9039:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link [foo [bar]]][ref]</span> +<pre data-sourcepos="11176:1-11180:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link [foo [bar]]][ref]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[ref]: /uri</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9041:1-9043:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">link [foo [bar]]</a></p></span></code></pre> +<pre data-sourcepos="11182:1-11184:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">link [foo [bar]]</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-537">Example 537</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9046:1-9050:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link \[bar][ref]</span> +<pre data-sourcepos="11191:1-11195:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link \[bar][ref]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[ref]: /uri</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9052:1-9054:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">link [bar</a></p></span></code></pre> +<pre data-sourcepos="11197:1-11199:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">link [bar</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9057:1-9057:41" dir="auto">The link text may contain inline content:</p> +</div> +<p data-sourcepos="11203:1-11203:41" dir="auto">The link text may contain inline content:</p> +<div> +<div><a href="#example-538">Example 538</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9059:1-9063:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link *foo **bar** `#`*][ref]</span> +<pre data-sourcepos="11208:1-11212:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link *foo **bar** `#`*][ref]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[ref]: /uri</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9065:1-9067:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">link <em>foo <strong>bar</strong> <code>#</code></em></a></p></span></code></pre> +<pre data-sourcepos="11214:1-11216:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">link <em>foo <strong>bar</strong> <code>#</code></em></a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-539">Example 539</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9070:1-9074:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[![moon](moon.jpg)][ref]</span> +<pre data-sourcepos="11223:1-11227:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[![moon](moon.jpg)][ref]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[ref]: /uri</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9076:1-9078:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri"><img src="moon.jpg" alt="moon" /></a></p></span></code></pre> +<pre data-sourcepos="11229:1-11231:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri"><img src="moon.jpg" alt="moon" /></a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9081:1-9081:68" dir="auto">However, links may not contain other links, at any level of nesting.</p> +</div> +<p data-sourcepos="11235:1-11235:68" dir="auto">However, links may not contain other links, at any level of nesting.</p> +<div> +<div><a href="#example-540">Example 540</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9083:1-9087:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo [bar](/uri)][ref]</span> +<pre data-sourcepos="11240:1-11244:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo [bar](/uri)][ref]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[ref]: /uri</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9089:1-9091:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo <a href="/uri">bar</a>]<a href="/uri">ref</a></p></span></code></pre> +<pre data-sourcepos="11246:1-11248:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo <a href="/uri">bar</a>]<a href="/uri">ref</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-541">Example 541</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9094:1-9098:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo *bar [baz][ref]*][ref]</span> +<pre data-sourcepos="11255:1-11259:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo *bar [baz][ref]*][ref]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[ref]: /uri</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9100:1-9102:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo <em>bar <a href="/uri">baz</a></em>]<a href="/uri">ref</a></p></span></code></pre> +<pre data-sourcepos="11261:1-11263:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo <em>bar <a href="/uri">baz</a></em>]<a href="/uri">ref</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9105:1-9106:38" dir="auto">(In the examples above, we have two [shortcut reference links] +</div> +<p data-sourcepos="11267:1-11268:38" dir="auto">(In the examples above, we have two [shortcut reference links] instead of one [full reference link].)</p> -<p data-sourcepos="9108:1-9109:18" dir="auto">The following cases illustrate the precedence of link text grouping over +<p data-sourcepos="11270:1-11271:18" dir="auto">The following cases illustrate the precedence of link text grouping over emphasis grouping:</p> +<div> +<div><a href="#example-542">Example 542</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9111:1-9115:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*[foo*][ref]</span> +<pre data-sourcepos="11276:1-11280:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*[foo*][ref]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[ref]: /uri</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9117:1-9119:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*<a href="/uri">foo*</a></p></span></code></pre> +<pre data-sourcepos="11282:1-11284:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*<a href="/uri">foo*</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-543">Example 543</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9122:1-9126:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo *bar][ref]</span> +<pre data-sourcepos="11291:1-11295:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo *bar][ref]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[ref]: /uri</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9128:1-9130:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">foo *bar</a></p></span></code></pre> +<pre data-sourcepos="11297:1-11299:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">foo *bar</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9133:1-9134:33" dir="auto">These cases illustrate the precedence of HTML tags, code spans, +</div> +<p data-sourcepos="11303:1-11304:33" dir="auto">These cases illustrate the precedence of HTML tags, code spans, and autolinks over link grouping:</p> +<div> +<div><a href="#example-544">Example 544</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9136:1-9140:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo <bar attr="][ref]"></span> +<pre data-sourcepos="11309:1-11313:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo <bar attr="][ref]"></span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[ref]: /uri</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9142:1-9144:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo <bar attr="][ref]"></p></span></code></pre> +<pre data-sourcepos="11315:1-11317:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo <bar attr="][ref]"></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-545">Example 545</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9147:1-9151:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo`][ref]`</span> +<pre data-sourcepos="11324:1-11328:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo`][ref]`</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[ref]: /uri</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9153:1-9155:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo<code>][ref]</code></p></span></code></pre> +<pre data-sourcepos="11330:1-11332:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo<code>][ref]</code></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-546">Example 546</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9158:1-9162:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo<http://example.com/?search=][ref]></span> +<pre data-sourcepos="11339:1-11343:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo<http://example.com/?search=][ref]></span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[ref]: /uri</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9164:1-9166:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo<a href="http://example.com/?search=%5D%5Bref%5D">http://example.com/?search=][ref]</a></p></span></code></pre> +<pre data-sourcepos="11345:1-11347:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo<a href="http://example.com/?search=%5D%5Bref%5D">http://example.com/?search=][ref]</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9169:1-9169:29" dir="auto">Matching is case-insensitive:</p> +</div> +<p data-sourcepos="11351:1-11351:29" dir="auto">Matching is case-insensitive:</p> +<div> +<div><a href="#example-547">Example 547</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9171:1-9175:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][BaR]</span> +<pre data-sourcepos="11356:1-11360:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][BaR]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[bar]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9177:1-9179:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">foo</a></p></span></code></pre> +<pre data-sourcepos="11362:1-11364:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">foo</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9182:1-9182:26" dir="auto">Unicode case fold is used:</p> +</div> +<p data-sourcepos="11368:1-11368:26" dir="auto">Unicode case fold is used:</p> +<div> +<div><a href="#example-548">Example 548</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9184:1-9188:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[Толпой][Толпой] is a Russian word.</span> +<pre data-sourcepos="11373:1-11377:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[Толпой][Толпой] is a Russian word.</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[ТОЛПОЙ]: /url</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9190:1-9192:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url">Толпой</a> is a Russian word.</p></span></code></pre> +<pre data-sourcepos="11379:1-11381:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url">Толпой</a> is a Russian word.</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9195:1-9196:33" dir="auto">Consecutive internal [whitespace] is treated as one space for +</div> +<p data-sourcepos="11385:1-11386:33" dir="auto">Consecutive internal [whitespace] is treated as one space for purposes of determining matching:</p> +<div> +<div><a href="#example-549">Example 549</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9198:1-9203:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[Foo</span> +<pre data-sourcepos="11391:1-11396:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[Foo</span> <span id="LC2" class="line" lang="plaintext"> bar]: /url</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">[Baz][Foo bar]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9205:1-9207:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url">Baz</a></p></span></code></pre> +<pre data-sourcepos="11398:1-11400:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url">Baz</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9210:1-9211:13" dir="auto">No [whitespace] is allowed between the [link text] and the +</div> +<p data-sourcepos="11404:1-11405:13" dir="auto">No [whitespace] is allowed between the [link text] and the [link label]:</p> +<div> +<div><a href="#example-550">Example 550</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9213:1-9217:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo] [bar]</span> +<pre data-sourcepos="11410:1-11414:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo] [bar]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[bar]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9219:1-9221:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo] <a href="/url" title="title">bar</a></p></span></code></pre> +<pre data-sourcepos="11416:1-11418:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo] <a href="/url" title="title">bar</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-551">Example 551</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9224:1-9229:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span> +<pre data-sourcepos="11425:1-11430:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span> <span id="LC2" class="line" lang="plaintext">[bar]</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">[bar]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9231:1-9234:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo]</span> +<pre data-sourcepos="11432:1-11435:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo]</span> <span id="LC2" class="line" lang="plaintext"><a href="/url" title="title">bar</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9237:1-9246:9" dir="auto">This is a departure from John Gruber's original Markdown syntax +</div> +<p data-sourcepos="11439:1-11448:9" dir="auto">This is a departure from John Gruber's original Markdown syntax description, which explicitly allows whitespace between the link text and the link label. It brings reference links in line with [inline links], which (according to both original Markdown and @@ -8298,24 +10315,26 @@ link text and the link label, then in the following we will have a single reference link, not two shortcut reference links, as intended:</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9248:1-9254:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">[foo]</span> +<pre data-sourcepos="11450:1-11456:3" lang="markdown" class="code highlight js-syntax-highlight language-markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">[foo]</span> <span id="LC2" class="line" lang="markdown">[bar]</span> <span id="LC3" class="line" lang="markdown"></span> <span id="LC4" class="line" lang="markdown"><span class="p">[</span><span class="ss">foo</span><span class="p">]:</span> <span class="sx">/url1</span></span> <span id="LC5" class="line" lang="markdown"><span class="p">[</span><span class="ss">bar</span><span class="p">]:</span> <span class="sx">/url2</span></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9256:1-9262:20" dir="auto">(Note that [shortcut reference links] were introduced by Gruber +<p data-sourcepos="11458:1-11464:20" dir="auto">(Note that [shortcut reference links] were introduced by Gruber himself in a beta version of <code>Markdown.pl</code>, but never included in the official syntax description. Without shortcut reference links, it is harmless to allow space between the link text and link label; but once shortcut references are introduced, it is too dangerous to allow this, as it frequently leads to unintended results.)</p> -<p data-sourcepos="9264:1-9265:18" dir="auto">When there are multiple matching [link reference definitions], +<p data-sourcepos="11466:1-11467:18" dir="auto">When there are multiple matching [link reference definitions], the first is used:</p> +<div> +<div><a href="#example-552">Example 552</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9267:1-9273:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url1</span> +<pre data-sourcepos="11472:1-11478:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url1</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url2</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -8323,92 +10342,116 @@ the first is used:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9275:1-9277:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url1">bar</a></p></span></code></pre> +<pre data-sourcepos="11480:1-11482:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url1">bar</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9280:1-9282:40" dir="auto">Note that matching is performed on normalized strings, not parsed +</div> +<p data-sourcepos="11486:1-11488:40" dir="auto">Note that matching is performed on normalized strings, not parsed inline content. So the following does not match, even though the labels define equivalent inline content:</p> +<div> +<div><a href="#example-553">Example 553</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9284:1-9288:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[bar][foo\!]</span> +<pre data-sourcepos="11493:1-11497:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[bar][foo\!]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo!]: /url</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9290:1-9292:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[bar][foo!]</p></span></code></pre> +<pre data-sourcepos="11499:1-11501:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[bar][foo!]</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9295:1-9296:18" dir="auto">[Link labels] cannot contain brackets, unless they are +</div> +<p data-sourcepos="11505:1-11506:18" dir="auto">[Link labels] cannot contain brackets, unless they are backslash-escaped:</p> +<div> +<div><a href="#example-554">Example 554</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9298:1-9302:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][ref[]</span> +<pre data-sourcepos="11511:1-11515:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][ref[]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[ref[]: /uri</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9304:1-9307:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo][ref[]</p></span> +<pre data-sourcepos="11517:1-11520:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo][ref[]</p></span> <span id="LC2" class="line" lang="plaintext"><p>[ref[]: /uri</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-555">Example 555</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9310:1-9314:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][ref[bar]]</span> +<pre data-sourcepos="11527:1-11531:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][ref[bar]]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[ref[bar]]: /uri</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9316:1-9319:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo][ref[bar]]</p></span> +<pre data-sourcepos="11533:1-11536:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo][ref[bar]]</p></span> <span id="LC2" class="line" lang="plaintext"><p>[ref[bar]]: /uri</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-556">Example 556</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9322:1-9326:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[[[foo]]]</span> +<pre data-sourcepos="11543:1-11547:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[[[foo]]]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[[[foo]]]: /url</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9328:1-9331:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[[[foo]]]</p></span> +<pre data-sourcepos="11549:1-11552:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[[[foo]]]</p></span> <span id="LC2" class="line" lang="plaintext"><p>[[[foo]]]: /url</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-557">Example 557</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9334:1-9338:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][ref\[]</span> +<pre data-sourcepos="11559:1-11563:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][ref\[]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[ref\[]: /uri</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9340:1-9342:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">foo</a></p></span></code></pre> +<pre data-sourcepos="11565:1-11567:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">foo</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9345:1-9345:55" dir="auto">Note that in this example <code>]</code> is not backslash-escaped:</p> +</div> +<p data-sourcepos="11571:1-11571:55" dir="auto">Note that in this example <code>]</code> is not backslash-escaped:</p> +<div> +<div><a href="#example-558">Example 558</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9347:1-9351:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[bar\\]: /uri</span> +<pre data-sourcepos="11576:1-11580:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[bar\\]: /uri</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[bar\\]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9353:1-9355:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">bar\</a></p></span></code></pre> +<pre data-sourcepos="11582:1-11584:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/uri">bar\</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9358:1-9358:68" dir="auto">A [link label] must contain at least one [non-whitespace character]:</p> +</div> +<p data-sourcepos="11588:1-11588:68" dir="auto">A [link label] must contain at least one [non-whitespace character]:</p> +<div> +<div><a href="#example-559">Example 559</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9360:1-9364:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[]</span> +<pre data-sourcepos="11593:1-11597:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[]: /uri</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9366:1-9369:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[]</p></span> +<pre data-sourcepos="11599:1-11602:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[]</p></span> <span id="LC2" class="line" lang="plaintext"><p>[]: /uri</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-560">Example 560</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9372:1-9378:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[</span> +<pre data-sourcepos="11609:1-11615:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[</span> <span id="LC2" class="line" lang="plaintext"> ]</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">[</span> @@ -8416,13 +10459,14 @@ backslash-escaped:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9380:1-9385:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[</span> +<pre data-sourcepos="11617:1-11622:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[</span> <span id="LC2" class="line" lang="plaintext">]</p></span> <span id="LC3" class="line" lang="plaintext"><p>[</span> <span id="LC4" class="line" lang="plaintext">]: /uri</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9388:1-9395:40" dir="auto">A <a href="@">collapsed reference link</a> +</div> +<p data-sourcepos="11626:1-11633:40" dir="auto">A <a href="@">collapsed reference link</a> consists of a [link label] that [matches] a [link reference definition] elsewhere in the document, followed by the string <code>[]</code>. @@ -8430,52 +10474,64 @@ The contents of the first link label are parsed as inlines, which are used as the link's text. The link's URI and title are provided by the matching reference link definition. Thus, <code>[foo][]</code> is equivalent to <code>[foo][foo]</code>.</p> +<div> +<div><a href="#example-561">Example 561</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9397:1-9401:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][]</span> +<pre data-sourcepos="11638:1-11642:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9403:1-9405:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">foo</a></p></span></code></pre> +<pre data-sourcepos="11644:1-11646:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">foo</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-562">Example 562</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9408:1-9412:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[*foo* bar][]</span> +<pre data-sourcepos="11653:1-11657:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[*foo* bar][]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[*foo* bar]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9414:1-9416:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title"><em>foo</em> bar</a></p></span></code></pre> +<pre data-sourcepos="11659:1-11661:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title"><em>foo</em> bar</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9419:1-9419:37" dir="auto">The link labels are case-insensitive:</p> +</div> +<p data-sourcepos="11665:1-11665:37" dir="auto">The link labels are case-insensitive:</p> +<div> +<div><a href="#example-563">Example 563</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9421:1-9425:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[Foo][]</span> +<pre data-sourcepos="11670:1-11674:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[Foo][]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9427:1-9429:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">Foo</a></p></span></code></pre> +<pre data-sourcepos="11676:1-11678:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">Foo</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9433:1-9434:41" dir="auto">As with full reference links, [whitespace] is not +</div> +<p data-sourcepos="11683:1-11684:41" dir="auto">As with full reference links, [whitespace] is not allowed between the two sets of brackets:</p> +<div> +<div><a href="#example-564">Example 564</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9436:1-9441:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo] </span> +<pre data-sourcepos="11689:1-11694:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo] </span> <span id="LC2" class="line" lang="plaintext">[]</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">[foo]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9443:1-9446:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">foo</a></span> +<pre data-sourcepos="11696:1-11699:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">foo</a></span> <span id="LC2" class="line" lang="plaintext">[]</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9449:1-9456:41" dir="auto">A <a href="@">shortcut reference link</a> +</div> +<p data-sourcepos="11703:1-11710:41" dir="auto">A <a href="@">shortcut reference link</a> consists of a [link label] that [matches] a [link reference definition] elsewhere in the document and is not followed by <code>[]</code> or a link label. @@ -8483,177 +10539,222 @@ The contents of the first link label are parsed as inlines, which are used as the link's text. The link's URI and title are provided by the matching link reference definition. Thus, <code>[foo]</code> is equivalent to <code>[foo][]</code>.</p> +<div> +<div><a href="#example-565">Example 565</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9458:1-9462:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span> +<pre data-sourcepos="11715:1-11719:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9464:1-9466:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">foo</a></p></span></code></pre> +<pre data-sourcepos="11721:1-11723:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">foo</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-566">Example 566</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9469:1-9473:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[*foo* bar]</span> +<pre data-sourcepos="11730:1-11734:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[*foo* bar]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[*foo* bar]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9475:1-9477:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title"><em>foo</em> bar</a></p></span></code></pre> +<pre data-sourcepos="11736:1-11738:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title"><em>foo</em> bar</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-567">Example 567</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9480:1-9484:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[[*foo* bar]]</span> +<pre data-sourcepos="11745:1-11749:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[[*foo* bar]]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[*foo* bar]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9486:1-9488:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[<a href="/url" title="title"><em>foo</em> bar</a>]</p></span></code></pre> +<pre data-sourcepos="11751:1-11753:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[<a href="/url" title="title"><em>foo</em> bar</a>]</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-568">Example 568</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9491:1-9495:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[[bar [foo]</span> +<pre data-sourcepos="11760:1-11764:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[[bar [foo]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9497:1-9499:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[[bar <a href="/url">foo</a></p></span></code></pre> +<pre data-sourcepos="11766:1-11768:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[[bar <a href="/url">foo</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9502:1-9502:37" dir="auto">The link labels are case-insensitive:</p> +</div> +<p data-sourcepos="11772:1-11772:37" dir="auto">The link labels are case-insensitive:</p> +<div> +<div><a href="#example-569">Example 569</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9504:1-9508:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[Foo]</span> +<pre data-sourcepos="11777:1-11781:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[Foo]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9510:1-9512:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">Foo</a></p></span></code></pre> +<pre data-sourcepos="11783:1-11785:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url" title="title">Foo</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9515:1-9515:48" dir="auto">A space after the link text should be preserved:</p> +</div> +<p data-sourcepos="11789:1-11789:48" dir="auto">A space after the link text should be preserved:</p> +<div> +<div><a href="#example-570">Example 570</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9517:1-9521:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo] bar</span> +<pre data-sourcepos="11794:1-11798:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo] bar</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9523:1-9525:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url">foo</a> bar</p></span></code></pre> +<pre data-sourcepos="11800:1-11802:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url">foo</a> bar</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9528:1-9529:31" dir="auto">If you just want bracketed text, you can backslash-escape the +</div> +<p data-sourcepos="11806:1-11807:31" dir="auto">If you just want bracketed text, you can backslash-escape the opening bracket to avoid links:</p> +<div> +<div><a href="#example-571">Example 571</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9531:1-9535:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\[foo]</span> +<pre data-sourcepos="11812:1-11816:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\[foo]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9537:1-9539:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo]</p></span></code></pre> +<pre data-sourcepos="11818:1-11820:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo]</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9542:1-9543:26" dir="auto">Note that this is a link, because a link label ends with the first +</div> +<p data-sourcepos="11824:1-11825:26" dir="auto">Note that this is a link, because a link label ends with the first following closing bracket:</p> +<div> +<div><a href="#example-572">Example 572</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9545:1-9549:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo*]: /url</span> +<pre data-sourcepos="11830:1-11834:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo*]: /url</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">*[foo*]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9551:1-9553:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*<a href="/url">foo*</a></p></span></code></pre> +<pre data-sourcepos="11836:1-11838:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>*<a href="/url">foo*</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9556:1-9557:11" dir="auto">Full and compact references take precedence over shortcut +</div> +<p data-sourcepos="11842:1-11843:11" dir="auto">Full and compact references take precedence over shortcut references:</p> +<div> +<div><a href="#example-573">Example 573</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9559:1-9564:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][bar]</span> +<pre data-sourcepos="11848:1-11853:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][bar]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url1</span> <span id="LC4" class="line" lang="plaintext">[bar]: /url2</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9566:1-9568:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url2">foo</a></p></span></code></pre> +<pre data-sourcepos="11855:1-11857:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url2">foo</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-574">Example 574</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9570:1-9574:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][]</span> +<pre data-sourcepos="11863:1-11867:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url1</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9576:1-9578:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url1">foo</a></p></span></code></pre> +<pre data-sourcepos="11869:1-11871:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url1">foo</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9580:1-9580:34" dir="auto">Inline links also take precedence:</p> +</div> +<p data-sourcepos="11874:1-11874:34" dir="auto">Inline links also take precedence:</p> +<div> +<div><a href="#example-575">Example 575</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9582:1-9586:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]()</span> +<pre data-sourcepos="11879:1-11883:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]()</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url1</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9588:1-9590:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="">foo</a></p></span></code></pre> +<pre data-sourcepos="11885:1-11887:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="">foo</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-576">Example 576</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9592:1-9596:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo](not a link)</span> +<pre data-sourcepos="11893:1-11897:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo](not a link)</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url1</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9598:1-9600:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url1">foo</a>(not a link)</p></span></code></pre> +<pre data-sourcepos="11899:1-11901:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url1">foo</a>(not a link)</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9602:1-9603:23" dir="auto">In the following case <code>[bar][baz]</code> is parsed as a reference, +</div> +<p data-sourcepos="11904:1-11905:23" dir="auto">In the following case <code>[bar][baz]</code> is parsed as a reference, <code>[foo]</code> as normal text:</p> +<div> +<div><a href="#example-577">Example 577</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9605:1-9609:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][bar][baz]</span> +<pre data-sourcepos="11910:1-11914:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][bar][baz]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[baz]: /url</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9611:1-9613:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo]<a href="/url">bar</a></p></span></code></pre> +<pre data-sourcepos="11916:1-11918:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo]<a href="/url">bar</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9616:1-9617:19" dir="auto">Here, though, <code>[foo][bar]</code> is parsed as a reference, since +</div> +<p data-sourcepos="11922:1-11923:19" dir="auto">Here, though, <code>[foo][bar]</code> is parsed as a reference, since <code>[bar]</code> is defined:</p> +<div> +<div><a href="#example-578">Example 578</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9619:1-9624:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][bar][baz]</span> +<pre data-sourcepos="11928:1-11933:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][bar][baz]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[baz]: /url1</span> <span id="LC4" class="line" lang="plaintext">[bar]: /url2</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9626:1-9628:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url2">foo</a><a href="/url1">baz</a></p></span></code></pre> +<pre data-sourcepos="11935:1-11937:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="/url2">foo</a><a href="/url1">baz</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9631:1-9632:65" dir="auto">Here <code>[foo]</code> is not parsed as a shortcut reference, because it +</div> +<p data-sourcepos="11941:1-11942:65" dir="auto">Here <code>[foo]</code> is not parsed as a shortcut reference, because it is followed by a link label (even though <code>[bar]</code> is not defined):</p> +<div> +<div><a href="#example-579">Example 579</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9634:1-9639:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][bar][baz]</span> +<pre data-sourcepos="11947:1-11952:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][bar][baz]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[baz]: /url1</span> <span id="LC4" class="line" lang="plaintext">[foo]: /url2</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9641:1-9643:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo]<a href="/url1">bar</a></p></span></code></pre> +<pre data-sourcepos="11954:1-11956:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[foo]<a href="/url1">bar</a></p></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="9647:1-9647:9" dir="auto"> +</div> +<h2 data-sourcepos="11961:1-11961:9" dir="auto"> <a id="user-content-images" class="anchor" href="#images" aria-hidden="true"></a>Images</h2> -<p data-sourcepos="9649:1-9657:55" dir="auto">Syntax for images is like the syntax for links, with one +<p data-sourcepos="11963:1-11971:55" dir="auto">Syntax for images is like the syntax for links, with one difference. Instead of [link text], we have an <a href="@">image description</a>. The rules for this are the same as for [link text], except that (a) an @@ -8662,482 +10763,616 @@ image description starts with <code>![</code> rather than <code>[</code>, and An image description has inline elements as its contents. When an image is rendered to HTML, this is standardly used as the image's <code>alt</code> attribute.</p> +<div> +<div><a href="#example-580">Example 580</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9659:1-9661:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo](/url "title")</span></code></pre> +<pre data-sourcepos="11976:1-11978:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo](/url "title")</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9663:1-9665:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="foo" title="title" /></p></span></code></pre> +<pre data-sourcepos="11980:1-11982:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="foo" title="title" /></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-581">Example 581</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9668:1-9672:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo *bar*]</span> +<pre data-sourcepos="11989:1-11993:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo *bar*]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo *bar*]: train.jpg "train & tracks"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9674:1-9676:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="train.jpg" alt="foo bar" title="train &amp; tracks" /></p></span></code></pre> +<pre data-sourcepos="11995:1-11997:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="train.jpg" alt="foo bar" title="train &amp; tracks" /></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-582">Example 582</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9679:1-9681:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo ![bar](/url)](/url2)</span></code></pre> +<pre data-sourcepos="12004:1-12006:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo ![bar](/url)](/url2)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9683:1-9685:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url2" alt="foo bar" /></p></span></code></pre> +<pre data-sourcepos="12008:1-12010:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url2" alt="foo bar" /></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-583">Example 583</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9688:1-9690:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo [bar](/url)](/url2)</span></code></pre> +<pre data-sourcepos="12017:1-12019:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo [bar](/url)](/url2)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9692:1-9694:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url2" alt="foo bar" /></p></span></code></pre> +<pre data-sourcepos="12021:1-12023:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url2" alt="foo bar" /></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9697:1-9702:40" dir="auto">Though this spec is concerned with parsing, not rendering, it is +</div> +<p data-sourcepos="12027:1-12032:40" dir="auto">Though this spec is concerned with parsing, not rendering, it is recommended that in rendering to HTML, only the plain string content of the [image description] be used. Note that in the above example, the alt attribute's value is <code>foo bar</code>, not <code>foo [bar](/url)</code> or <code>foo <a href="/url">bar</a></code>. Only the plain string content is rendered, without formatting.</p> +<div> +<div><a href="#example-584">Example 584</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9704:1-9708:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo *bar*][]</span> +<pre data-sourcepos="12037:1-12041:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo *bar*][]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo *bar*]: train.jpg "train & tracks"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9710:1-9712:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="train.jpg" alt="foo bar" title="train &amp; tracks" /></p></span></code></pre> +<pre data-sourcepos="12043:1-12045:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="train.jpg" alt="foo bar" title="train &amp; tracks" /></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-585">Example 585</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9715:1-9719:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo *bar*][foobar]</span> +<pre data-sourcepos="12052:1-12056:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo *bar*][foobar]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[FOOBAR]: train.jpg "train & tracks"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9721:1-9723:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="train.jpg" alt="foo bar" title="train &amp; tracks" /></p></span></code></pre> +<pre data-sourcepos="12058:1-12060:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="train.jpg" alt="foo bar" title="train &amp; tracks" /></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-586">Example 586</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9726:1-9728:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo](train.jpg)</span></code></pre> +<pre data-sourcepos="12067:1-12069:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo](train.jpg)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9730:1-9732:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="train.jpg" alt="foo" /></p></span></code></pre> +<pre data-sourcepos="12071:1-12073:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="train.jpg" alt="foo" /></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-587">Example 587</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9735:1-9737:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">My ![foo bar](/path/to/train.jpg "title" )</span></code></pre> +<pre data-sourcepos="12080:1-12082:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">My ![foo bar](/path/to/train.jpg "title" )</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9739:1-9741:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>My <img src="/path/to/train.jpg" alt="foo bar" title="title" /></p></span></code></pre> +<pre data-sourcepos="12084:1-12086:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>My <img src="/path/to/train.jpg" alt="foo bar" title="title" /></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-588">Example 588</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9744:1-9746:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo](<url>)</span></code></pre> +<pre data-sourcepos="12093:1-12095:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo](<url>)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9748:1-9750:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="url" alt="foo" /></p></span></code></pre> +<pre data-sourcepos="12097:1-12099:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="url" alt="foo" /></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-589">Example 589</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9753:1-9755:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![](/url)</span></code></pre> +<pre data-sourcepos="12106:1-12108:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![](/url)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9757:1-9759:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="" /></p></span></code></pre> +<pre data-sourcepos="12110:1-12112:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="" /></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9762:1-9762:16" dir="auto">Reference-style:</p> +</div> +<p data-sourcepos="12116:1-12116:16" dir="auto">Reference-style:</p> +<div> +<div><a href="#example-590">Example 590</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9764:1-9768:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo][bar]</span> +<pre data-sourcepos="12121:1-12125:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo][bar]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[bar]: /url</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9770:1-9772:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="foo" /></p></span></code></pre> +<pre data-sourcepos="12127:1-12129:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="foo" /></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-591">Example 591</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9775:1-9779:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo][bar]</span> +<pre data-sourcepos="12136:1-12140:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo][bar]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[BAR]: /url</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9781:1-9783:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="foo" /></p></span></code></pre> +<pre data-sourcepos="12142:1-12144:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="foo" /></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9786:1-9786:10" dir="auto">Collapsed:</p> +</div> +<p data-sourcepos="12148:1-12148:10" dir="auto">Collapsed:</p> +<div> +<div><a href="#example-592">Example 592</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9788:1-9792:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo][]</span> +<pre data-sourcepos="12153:1-12157:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo][]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9794:1-9796:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="foo" title="title" /></p></span></code></pre> +<pre data-sourcepos="12159:1-12161:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="foo" title="title" /></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-593">Example 593</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9799:1-9803:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![*foo* bar][]</span> +<pre data-sourcepos="12168:1-12172:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![*foo* bar][]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[*foo* bar]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9805:1-9807:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="foo bar" title="title" /></p></span></code></pre> +<pre data-sourcepos="12174:1-12176:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="foo bar" title="title" /></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9810:1-9810:32" dir="auto">The labels are case-insensitive:</p> +</div> +<p data-sourcepos="12180:1-12180:32" dir="auto">The labels are case-insensitive:</p> +<div> +<div><a href="#example-594">Example 594</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9812:1-9816:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![Foo][]</span> +<pre data-sourcepos="12185:1-12189:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![Foo][]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9818:1-9820:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="Foo" title="title" /></p></span></code></pre> +<pre data-sourcepos="12191:1-12193:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="Foo" title="title" /></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9823:1-9824:33" dir="auto">As with reference links, [whitespace] is not allowed +</div> +<p data-sourcepos="12197:1-12198:33" dir="auto">As with reference links, [whitespace] is not allowed between the two sets of brackets:</p> +<div> +<div><a href="#example-595">Example 595</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9826:1-9831:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo] </span> +<pre data-sourcepos="12203:1-12208:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo] </span> <span id="LC2" class="line" lang="plaintext">[]</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">[foo]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9833:1-9836:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="foo" title="title" /></span> +<pre data-sourcepos="12210:1-12213:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="foo" title="title" /></span> <span id="LC2" class="line" lang="plaintext">[]</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9839:1-9839:9" dir="auto">Shortcut:</p> +</div> +<p data-sourcepos="12217:1-12217:9" dir="auto">Shortcut:</p> +<div> +<div><a href="#example-596">Example 596</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9841:1-9845:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo]</span> +<pre data-sourcepos="12222:1-12226:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9847:1-9849:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="foo" title="title" /></p></span></code></pre> +<pre data-sourcepos="12228:1-12230:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="foo" title="title" /></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-597">Example 597</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9852:1-9856:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![*foo* bar]</span> +<pre data-sourcepos="12237:1-12241:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![*foo* bar]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[*foo* bar]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9858:1-9860:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="foo bar" title="title" /></p></span></code></pre> +<pre data-sourcepos="12243:1-12245:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="foo bar" title="title" /></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9863:1-9863:56" dir="auto">Note that link labels cannot contain unescaped brackets:</p> +</div> +<p data-sourcepos="12249:1-12249:56" dir="auto">Note that link labels cannot contain unescaped brackets:</p> +<div> +<div><a href="#example-598">Example 598</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9865:1-9869:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![[foo]]</span> +<pre data-sourcepos="12254:1-12258:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![[foo]]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[[foo]]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9871:1-9874:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>![[foo]]</p></span> +<pre data-sourcepos="12260:1-12263:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>![[foo]]</p></span> <span id="LC2" class="line" lang="plaintext"><p>[[foo]]: /url &quot;title&quot;</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9877:1-9877:37" dir="auto">The link labels are case-insensitive:</p> +</div> +<p data-sourcepos="12267:1-12267:37" dir="auto">The link labels are case-insensitive:</p> +<div> +<div><a href="#example-599">Example 599</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9879:1-9883:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![Foo]</span> +<pre data-sourcepos="12272:1-12276:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![Foo]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9885:1-9887:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="Foo" title="title" /></p></span></code></pre> +<pre data-sourcepos="12278:1-12280:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="/url" alt="Foo" title="title" /></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9890:1-9891:33" dir="auto">If you just want a literal <code>!</code> followed by bracketed text, you can +</div> +<p data-sourcepos="12284:1-12285:33" dir="auto">If you just want a literal <code>!</code> followed by bracketed text, you can backslash-escape the opening <code>[</code>:</p> +<div> +<div><a href="#example-600">Example 600</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9893:1-9897:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">!\[foo]</span> +<pre data-sourcepos="12290:1-12294:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">!\[foo]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9899:1-9901:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>![foo]</p></span></code></pre> +<pre data-sourcepos="12296:1-12298:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>![foo]</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9904:1-9905:4" dir="auto">If you want a link after a literal <code>!</code>, backslash-escape the +</div> +<p data-sourcepos="12302:1-12303:4" dir="auto">If you want a link after a literal <code>!</code>, backslash-escape the <code>!</code>:</p> +<div> +<div><a href="#example-601">Example 601</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9907:1-9911:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\![foo]</span> +<pre data-sourcepos="12308:1-12312:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\![foo]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[foo]: /url "title"</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9913:1-9915:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>!<a href="/url" title="title">foo</a></p></span></code></pre> +<pre data-sourcepos="12314:1-12316:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>!<a href="/url" title="title">foo</a></p></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="9918:1-9918:12" dir="auto"> +</div> +<h2 data-sourcepos="12320:1-12320:12" dir="auto"> <a id="user-content-autolinks" class="anchor" href="#autolinks" aria-hidden="true"></a>Autolinks</h2> -<p data-sourcepos="9920:1-9922:18" dir="auto"><a href="@">Autolink</a>s are absolute URIs and email addresses inside +<p data-sourcepos="12322:1-12324:18" dir="auto"><a href="@">Autolink</a>s are absolute URIs and email addresses inside <code><</code> and <code>></code>. They are parsed as links, with the URL or email address as the link label.</p> -<p data-sourcepos="9924:1-9926:52" dir="auto">A <a href="@">URI autolink</a> consists of <code><</code>, followed by an +<p data-sourcepos="12326:1-12328:52" dir="auto">A <a href="@">URI autolink</a> consists of <code><</code>, followed by an [absolute URI] followed by <code>></code>. It is parsed as a link to the URI, with the URI as the link's label.</p> -<p data-sourcepos="9928:1-9933:25" dir="auto">An <a href="@">absolute URI</a>, +<p data-sourcepos="12330:1-12335:25" dir="auto">An <a href="@">absolute URI</a>, for these purposes, consists of a [scheme] followed by a colon (<code>:</code>) followed by zero or more characters other than ASCII [whitespace] and control characters, <code><</code>, and <code>></code>. If the URI includes these characters, they must be percent-encoded (e.g. <code>%20</code> for a space).</p> -<p data-sourcepos="9935:1-9938:37" dir="auto">For purposes of this spec, a <a href="@">scheme</a> is any sequence +<p data-sourcepos="12337:1-12340:37" dir="auto">For purposes of this spec, a <a href="@">scheme</a> is any sequence of 2--32 characters beginning with an ASCII letter and followed by any combination of ASCII letters, digits, or the symbols plus ("+"), period ("."), or hyphen ("-").</p> -<p data-sourcepos="9940:1-9940:30" dir="auto">Here are some valid autolinks:</p> +<p data-sourcepos="12342:1-12342:30" dir="auto">Here are some valid autolinks:</p> +<div> +<div><a href="#example-602">Example 602</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9942:1-9944:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><http://foo.bar.baz></span></code></pre> +<pre data-sourcepos="12347:1-12349:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><http://foo.bar.baz></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9946:1-9948:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://foo.bar.baz">http://foo.bar.baz</a></p></span></code></pre> +<pre data-sourcepos="12351:1-12353:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://foo.bar.baz">http://foo.bar.baz</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-603">Example 603</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9951:1-9953:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><http://foo.bar.baz/test?q=hello&id=22&boolean></span></code></pre> +<pre data-sourcepos="12360:1-12362:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><http://foo.bar.baz/test?q=hello&id=22&boolean></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9955:1-9957:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://foo.bar.baz/test?q=hello&amp;id=22&amp;boolean">http://foo.bar.baz/test?q=hello&amp;id=22&amp;boolean</a></p></span></code></pre> +<pre data-sourcepos="12364:1-12366:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://foo.bar.baz/test?q=hello&amp;id=22&amp;boolean">http://foo.bar.baz/test?q=hello&amp;id=22&amp;boolean</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-604">Example 604</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9960:1-9962:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><irc://foo.bar:2233/baz></span></code></pre> +<pre data-sourcepos="12373:1-12375:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><irc://foo.bar:2233/baz></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9964:1-9966:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="irc://foo.bar:2233/baz">irc://foo.bar:2233/baz</a></p></span></code></pre> +<pre data-sourcepos="12377:1-12379:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="irc://foo.bar:2233/baz">irc://foo.bar:2233/baz</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9969:1-9969:23" dir="auto">Uppercase is also fine:</p> +</div> +<p data-sourcepos="12383:1-12383:23" dir="auto">Uppercase is also fine:</p> +<div> +<div><a href="#example-605">Example 605</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9971:1-9973:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><MAILTO:FOO@BAR.BAZ></span></code></pre> +<pre data-sourcepos="12388:1-12390:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><MAILTO:FOO@BAR.BAZ></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9975:1-9977:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="MAILTO:FOO@BAR.BAZ">MAILTO:FOO@BAR.BAZ</a></p></span></code></pre> +<pre data-sourcepos="12392:1-12394:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="MAILTO:FOO@BAR.BAZ">MAILTO:FOO@BAR.BAZ</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="9980:1-9983:18" dir="auto">Note that many strings that count as [absolute URIs] for +</div> +<p data-sourcepos="12398:1-12401:18" dir="auto">Note that many strings that count as [absolute URIs] for purposes of this spec are not valid URIs, because their schemes are not registered or because of other problems with their syntax:</p> +<div> +<div><a href="#example-606">Example 606</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9985:1-9987:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a+b+c:d></span></code></pre> +<pre data-sourcepos="12406:1-12408:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a+b+c:d></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9989:1-9991:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="a+b+c:d">a+b+c:d</a></p></span></code></pre> +<pre data-sourcepos="12410:1-12412:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="a+b+c:d">a+b+c:d</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-607">Example 607</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9994:1-9996:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><made-up-scheme://foo,bar></span></code></pre> +<pre data-sourcepos="12419:1-12421:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><made-up-scheme://foo,bar></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="9998:1-10000:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="made-up-scheme://foo,bar">made-up-scheme://foo,bar</a></p></span></code></pre> +<pre data-sourcepos="12423:1-12425:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="made-up-scheme://foo,bar">made-up-scheme://foo,bar</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-608">Example 608</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10003:1-10005:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><http://../></span></code></pre> +<pre data-sourcepos="12432:1-12434:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><http://../></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10007:1-10009:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://../">http://../</a></p></span></code></pre> +<pre data-sourcepos="12436:1-12438:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://../">http://../</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-609">Example 609</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10012:1-10014:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><localhost:5001/foo></span></code></pre> +<pre data-sourcepos="12445:1-12447:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><localhost:5001/foo></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10016:1-10018:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="localhost:5001/foo">localhost:5001/foo</a></p></span></code></pre> +<pre data-sourcepos="12449:1-12451:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="localhost:5001/foo">localhost:5001/foo</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10021:1-10021:36" dir="auto">Spaces are not allowed in autolinks:</p> +</div> +<p data-sourcepos="12455:1-12455:36" dir="auto">Spaces are not allowed in autolinks:</p> +<div> +<div><a href="#example-610">Example 610</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10023:1-10025:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><http://foo.bar/baz bim></span></code></pre> +<pre data-sourcepos="12460:1-12462:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><http://foo.bar/baz bim></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10027:1-10029:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;http://foo.bar/baz bim&gt;</p></span></code></pre> +<pre data-sourcepos="12464:1-12466:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;http://foo.bar/baz bim&gt;</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10032:1-10032:47" dir="auto">Backslash-escapes do not work inside autolinks:</p> +</div> +<p data-sourcepos="12470:1-12470:47" dir="auto">Backslash-escapes do not work inside autolinks:</p> +<div> +<div><a href="#example-611">Example 611</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10034:1-10036:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><http://example.com/\[\></span></code></pre> +<pre data-sourcepos="12475:1-12477:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><http://example.com/\[\></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10038:1-10040:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://example.com/%5C%5B%5C">http://example.com/\[\</a></p></span></code></pre> +<pre data-sourcepos="12479:1-12481:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://example.com/%5C%5B%5C">http://example.com/\[\</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10043:1-10046:55" dir="auto">An <a href="@">email autolink</a> +</div> +<p data-sourcepos="12485:1-12488:55" dir="auto">An <a href="@">email autolink</a> consists of <code><</code>, followed by an [email address], followed by <code>></code>. The link's label is the email address, and the URL is <code>mailto:</code> followed by the email address.</p> -<p data-sourcepos="10048:1-10051:83" dir="auto">An <a href="@">email address</a>, +<p data-sourcepos="12490:1-12493:83" dir="auto">An <a href="@">email address</a>, for these purposes, is anything that matches the <a href="https://html.spec.whatwg.org/multipage/forms.html#e-mail-state-(type=email)" rel="nofollow noreferrer noopener" target="_blank">non-normative regex from the HTML5 spec</a>:</p> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10053:5-10055:0" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?</span> +<pre data-sourcepos="12495:5-12497:0" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?</span> <span id="LC2" class="line" lang="plaintext">(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/</span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10056:1-10056:28" dir="auto">Examples of email autolinks:</p> +<p data-sourcepos="12498:1-12498:28" dir="auto">Examples of email autolinks:</p> +<div> +<div><a href="#example-612">Example 612</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10058:1-10060:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><foo@bar.example.com></span></code></pre> +<pre data-sourcepos="12503:1-12505:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><foo@bar.example.com></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10062:1-10064:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="mailto:foo@bar.example.com">foo@bar.example.com</a></p></span></code></pre> +<pre data-sourcepos="12507:1-12509:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="mailto:foo@bar.example.com">foo@bar.example.com</a></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-613">Example 613</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10067:1-10069:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><foo+special@Bar.baz-bar0.com></span></code></pre> +<pre data-sourcepos="12516:1-12518:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><foo+special@Bar.baz-bar0.com></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10071:1-10073:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="mailto:foo+special@Bar.baz-bar0.com">foo+special@Bar.baz-bar0.com</a></p></span></code></pre> +<pre data-sourcepos="12520:1-12522:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="mailto:foo+special@Bar.baz-bar0.com">foo+special@Bar.baz-bar0.com</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10076:1-10076:53" dir="auto">Backslash-escapes do not work inside email autolinks:</p> +</div> +<p data-sourcepos="12526:1-12526:53" dir="auto">Backslash-escapes do not work inside email autolinks:</p> +<div> +<div><a href="#example-614">Example 614</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10078:1-10080:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><foo\+@bar.example.com></span></code></pre> +<pre data-sourcepos="12531:1-12533:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><foo\+@bar.example.com></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10082:1-10084:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;foo+@bar.example.com&gt;</p></span></code></pre> +<pre data-sourcepos="12535:1-12537:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;foo+@bar.example.com&gt;</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10087:1-10087:24" dir="auto">These are not autolinks:</p> +</div> +<p data-sourcepos="12541:1-12541:24" dir="auto">These are not autolinks:</p> +<div> +<div><a href="#example-615">Example 615</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10089:1-10091:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><></span></code></pre> +<pre data-sourcepos="12546:1-12548:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10093:1-10095:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;&gt;</p></span></code></pre> +<pre data-sourcepos="12550:1-12552:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;&gt;</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-616">Example 616</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10098:1-10100:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">< http://foo.bar ></span></code></pre> +<pre data-sourcepos="12559:1-12561:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">< http://foo.bar ></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10102:1-10104:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt; http://foo.bar &gt;</p></span></code></pre> +<pre data-sourcepos="12563:1-12565:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt; http://foo.bar &gt;</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-617">Example 617</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10107:1-10109:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><m:abc></span></code></pre> +<pre data-sourcepos="12572:1-12574:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><m:abc></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10111:1-10113:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;m:abc&gt;</p></span></code></pre> +<pre data-sourcepos="12576:1-12578:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;m:abc&gt;</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-618">Example 618</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10116:1-10118:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><foo.bar.baz></span></code></pre> +<pre data-sourcepos="12585:1-12587:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><foo.bar.baz></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10120:1-10122:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;foo.bar.baz&gt;</p></span></code></pre> +<pre data-sourcepos="12589:1-12591:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;foo.bar.baz&gt;</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-619">Example 619</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10125:1-10127:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">http://example.com</span></code></pre> +<pre data-sourcepos="12598:1-12600:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">http://example.com</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10129:1-10131:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>http://example.com</p></span></code></pre> +<pre data-sourcepos="12602:1-12604:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>http://example.com</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-620">Example 620</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10134:1-10136:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo@bar.example.com</span></code></pre> +<pre data-sourcepos="12611:1-12613:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo@bar.example.com</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10138:1-10140:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo@bar.example.com</p></span></code></pre> +<pre data-sourcepos="12615:1-12617:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo@bar.example.com</p></span></code></pre> <copy-code></copy-code> </div> +</div> <div> -<h2 data-sourcepos="10144:1-10144:24"> +<h2 data-sourcepos="12622:1-12622:24"> <a id="user-content-autolinks-extension" class="anchor" href="#autolinks-extension" aria-hidden="true"></a>Autolinks (extension)</h2> -<p data-sourcepos="10146:1-10147:29">GFM enables the <code>autolink</code> extension, where autolinks will be recognised in a +<p data-sourcepos="12624:1-12625:29">GFM enables the <code>autolink</code> extension, where autolinks will be recognised in a greater number of conditions.</p> -<p data-sourcepos="10149:1-10153:8">[Autolink]s can also be constructed without requiring the use of <code><</code> and to <code>></code> +<p data-sourcepos="12627:1-12631:8">[Autolink]s can also be constructed without requiring the use of <code><</code> and to <code>></code> to delimit them, although they will be recognized under a smaller set of circumstances. All such recognized autolinks can only come at the beginning of a line, after whitespace, or any of the delimiting characters <code>*</code>, <code>_</code>, <code>~</code>, and <code>(</code>.</p> -<p data-sourcepos="10155:1-10161:73">An <a href="@">extended www autolink</a> will be recognized +<p data-sourcepos="12633:1-12639:73">An <a href="@">extended www autolink</a> will be recognized when the text <code>www.</code> is found followed by a [valid domain]. A <a href="@">valid domain</a> consists of segments of alphanumeric characters, underscores (<code>_</code>) and hyphens (<code>-</code>) separated by periods (<code>.</code>). There must be at least one period, and no underscores may be present in the last two segments of the domain.</p> -<p data-sourcepos="10163:1-10163:49">The scheme <code>http</code> will be inserted automatically:</p> +<p data-sourcepos="12641:1-12641:49">The scheme <code>http</code> will be inserted automatically:</p> +<div> +<div><a href="#example-621">Example 621</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10165:1-10167:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.commonmark.org</span></code></pre> +<pre data-sourcepos="12646:1-12648:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.commonmark.org</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10169:1-10171:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://www.commonmark.org">www.commonmark.org</a></p></span></code></pre> +<pre data-sourcepos="12650:1-12652:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://www.commonmark.org">www.commonmark.org</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10173:1-10173:77">After a [valid domain], zero or more non-space non-<code><</code> characters may follow:</p> +</div> +<p data-sourcepos="12655:1-12655:77">After a [valid domain], zero or more non-space non-<code><</code> characters may follow:</p> +<div> +<div><a href="#example-622">Example 622</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10175:1-10177:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Visit www.commonmark.org/help for more information.</span></code></pre> +<pre data-sourcepos="12660:1-12662:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Visit www.commonmark.org/help for more information.</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10179:1-10181:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Visit <a href="http://www.commonmark.org/help">www.commonmark.org/help</a> for more information.</p></span></code></pre> +<pre data-sourcepos="12664:1-12666:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Visit <a href="http://www.commonmark.org/help">www.commonmark.org/help</a> for more information.</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10183:1-10183:64">We then apply <a href="@">extended autolink path validation</a> as follows:</p> -<p data-sourcepos="10185:1-10187:21">Trailing punctuation (specifically, <code>?</code>, <code>!</code>, <code>.</code>, <code>,</code>, <code>:</code>, <code>*</code>, <code>_</code>, and <code>~</code>) +</div> +<p data-sourcepos="12669:1-12669:64">We then apply <a href="@">extended autolink path validation</a> as follows:</p> +<p data-sourcepos="12671:1-12673:21">Trailing punctuation (specifically, <code>?</code>, <code>!</code>, <code>.</code>, <code>,</code>, <code>:</code>, <code>*</code>, <code>_</code>, and <code>~</code>) will not be considered part of the autolink, though they may be included in the interior of the link:</p> +<div> +<div><a href="#example-623">Example 623</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10189:1-10193:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Visit www.commonmark.org.</span> +<pre data-sourcepos="12678:1-12682:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Visit www.commonmark.org.</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">Visit www.commonmark.org/a.b.</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10195:1-10198:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Visit <a href="http://www.commonmark.org">www.commonmark.org</a>.</p></span> +<pre data-sourcepos="12684:1-12687:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Visit <a href="http://www.commonmark.org">www.commonmark.org</a>.</p></span> <span id="LC2" class="line" lang="plaintext"><p>Visit <a href="http://www.commonmark.org/a.b">www.commonmark.org/a.b</a>.</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10200:1-10203:76">When an autolink ends in <code>)</code>, we scan the entire autolink for the total number +</div> +<p data-sourcepos="12690:1-12693:76">When an autolink ends in <code>)</code>, we scan the entire autolink for the total number of parentheses. If there is a greater number of closing parentheses than opening ones, we don't consider the unmatched trailing parentheses part of the autolink, in order to facilitate including an autolink inside a parenthesis:</p> +<div> +<div><a href="#example-624">Example 624</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10205:1-10213:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.google.com/search?q=Markup+(business)</span> +<pre data-sourcepos="12698:1-12706:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.google.com/search?q=Markup+(business)</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">www.google.com/search?q=Markup+(business)))</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -9147,53 +11382,65 @@ autolink, in order to facilitate including an autolink inside a parenthesis:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10215:1-10220:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://www.google.com/search?q=Markup+(business)">www.google.com/search?q=Markup+(business)</a></p></span> +<pre data-sourcepos="12708:1-12713:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://www.google.com/search?q=Markup+(business)">www.google.com/search?q=Markup+(business)</a></p></span> <span id="LC2" class="line" lang="plaintext"><p><a href="http://www.google.com/search?q=Markup+(business)">www.google.com/search?q=Markup+(business)</a>))</p></span> <span id="LC3" class="line" lang="plaintext"><p>(<a href="http://www.google.com/search?q=Markup+(business)">www.google.com/search?q=Markup+(business)</a>)</p></span> <span id="LC4" class="line" lang="plaintext"><p>(<a href="http://www.google.com/search?q=Markup+(business)">www.google.com/search?q=Markup+(business)</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10222:1-10224:8">This check is only done when the link ends in a closing parentheses <code>)</code>, so if +</div> +<p data-sourcepos="12716:1-12718:8">This check is only done when the link ends in a closing parentheses <code>)</code>, so if the only parentheses are in the interior of the autolink, no special rules are applied:</p> +<div> +<div><a href="#example-625">Example 625</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10226:1-10228:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.google.com/search?q=(business))+ok</span></code></pre> +<pre data-sourcepos="12723:1-12725:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.google.com/search?q=(business))+ok</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10230:1-10232:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://www.google.com/search?q=(business))+ok">www.google.com/search?q=(business))+ok</a></p></span></code></pre> +<pre data-sourcepos="12727:1-12729:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://www.google.com/search?q=(business))+ok">www.google.com/search?q=(business))+ok</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10234:1-10237:13">If an autolink ends in a semicolon (<code>;</code>), we check to see if it appears to +</div> +<p data-sourcepos="12732:1-12735:13">If an autolink ends in a semicolon (<code>;</code>), we check to see if it appears to resemble an [entity reference][entity references]; if the preceding text is <code>&</code> followed by one or more alphanumeric characters. If so, it is excluded from the autolink:</p> +<div> +<div><a href="#example-626">Example 626</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10239:1-10243:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.google.com/search?q=commonmark&hl=en</span> +<pre data-sourcepos="12740:1-12744:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.google.com/search?q=commonmark&hl=en</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">www.google.com/search?q=commonmark&hl;</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10245:1-10248:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://www.google.com/search?q=commonmark&amp;hl=en">www.google.com/search?q=commonmark&amp;hl=en</a></p></span> +<pre data-sourcepos="12746:1-12749:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://www.google.com/search?q=commonmark&amp;hl=en">www.google.com/search?q=commonmark&amp;hl=en</a></p></span> <span id="LC2" class="line" lang="plaintext"><p><a href="http://www.google.com/search?q=commonmark">www.google.com/search?q=commonmark</a>&amp;hl;</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10250:1-10250:33"><code><</code> immediately ends an autolink.</p> +</div> +<p data-sourcepos="12752:1-12752:33"><code><</code> immediately ends an autolink.</p> +<div> +<div><a href="#example-627">Example 627</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10252:1-10254:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.commonmark.org/he<lp</span></code></pre> +<pre data-sourcepos="12757:1-12759:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.commonmark.org/he<lp</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10256:1-10258:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://www.commonmark.org/he">www.commonmark.org/he</a>&lt;lp</p></span></code></pre> +<pre data-sourcepos="12761:1-12763:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://www.commonmark.org/he">www.commonmark.org/he</a>&lt;lp</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10260:1-10263:36">An <a href="@">extended url autolink</a> will be recognised when one of the schemes +</div> +<p data-sourcepos="12766:1-12769:36">An <a href="@">extended url autolink</a> will be recognised when one of the schemes <code>http://</code>, <code>https://</code>, or <code>ftp://</code>, followed by a [valid domain], then zero or more non-space non-<code><</code> characters according to [extended autolink path validation]:</p> +<div> +<div><a href="#example-628">Example 628</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10265:1-10271:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">http://commonmark.org</span> +<pre data-sourcepos="12774:1-12780:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">http://commonmark.org</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">(Visit https://encrypted.google.com/search?q=Markup+(business))</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -9201,45 +11448,54 @@ more non-space non-<code><</code> characters according to <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10273:1-10277:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://commonmark.org">http://commonmark.org</a></p></span> +<pre data-sourcepos="12782:1-12786:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="http://commonmark.org">http://commonmark.org</a></p></span> <span id="LC2" class="line" lang="plaintext"><p>(Visit <a href="https://encrypted.google.com/search?q=Markup+(business)">https://encrypted.google.com/search?q=Markup+(business)</a>)</p></span> <span id="LC3" class="line" lang="plaintext"><p>Anonymous FTP is available at <a href="ftp://foo.bar.baz">ftp://foo.bar.baz</a>.</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10280:1-10282:20">An <a href="@">extended email autolink</a> will be recognised when an email address is +</div> +<p data-sourcepos="12790:1-12792:20">An <a href="@">extended email autolink</a> will be recognised when an email address is recognised within any text node. Email addresses are recognised according to the following rules:</p> -<ul data-sourcepos="10284:1-10290:0"> -<li data-sourcepos="10284:1-10284:75">One ore more characters which are alphanumeric, or <code>.</code>, <code>-</code>, <code>_</code>, or <code>+</code>.</li> -<li data-sourcepos="10285:1-10285:16">An <code>@</code> symbol.</li> -<li data-sourcepos="10286:1-10290:0">One or more characters which are alphanumeric, or <code>-</code> or <code>_</code>, +<ul data-sourcepos="12794:1-12800:0"> +<li data-sourcepos="12794:1-12794:75">One ore more characters which are alphanumeric, or <code>.</code>, <code>-</code>, <code>_</code>, or <code>+</code>.</li> +<li data-sourcepos="12795:1-12795:16">An <code>@</code> symbol.</li> +<li data-sourcepos="12796:1-12800:0">One or more characters which are alphanumeric, or <code>-</code> or <code>_</code>, separated by periods (<code>.</code>). There must be at least one period. The last character must not be one of <code>-</code> or <code>_</code>.</li> </ul> -<p data-sourcepos="10291:1-10291:71">The scheme <code>mailto:</code> will automatically be added to the generated link:</p> +<p data-sourcepos="12801:1-12801:71">The scheme <code>mailto:</code> will automatically be added to the generated link:</p> +<div> +<div><a href="#example-629">Example 629</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10293:1-10295:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo@bar.baz</span></code></pre> +<pre data-sourcepos="12806:1-12808:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo@bar.baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10297:1-10299:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="mailto:foo@bar.baz">foo@bar.baz</a></p></span></code></pre> +<pre data-sourcepos="12810:1-12812:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="mailto:foo@bar.baz">foo@bar.baz</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10301:1-10301:44"><code>+</code> can occur before the <code>@</code>, but not after.</p> +</div> +<p data-sourcepos="12815:1-12815:44"><code>+</code> can occur before the <code>@</code>, but not after.</p> +<div> +<div><a href="#example-630">Example 630</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10303:1-10305:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">hello@mail+xyz.example isn't valid, but hello+xyz@mail.example is.</span></code></pre> +<pre data-sourcepos="12820:1-12822:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">hello@mail+xyz.example isn't valid, but hello+xyz@mail.example is.</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10307:1-10309:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>hello@mail+xyz.example isn't valid, but <a href="mailto:hello+xyz@mail.example">hello+xyz@mail.example</a> is.</p></span></code></pre> +<pre data-sourcepos="12824:1-12826:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>hello@mail+xyz.example isn't valid, but <a href="mailto:hello+xyz@mail.example">hello+xyz@mail.example</a> is.</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10311:1-10313:12"><code>.</code>, <code>-</code>, and <code>_</code> can occur on both sides of the <code>@</code>, but only <code>.</code> may occur at +</div> +<p data-sourcepos="12829:1-12831:12"><code>.</code>, <code>-</code>, and <code>_</code> can occur on both sides of the <code>@</code>, but only <code>.</code> may occur at the end of the email address, in which case it will not be considered part of the address:</p> +<div> +<div><a href="#example-631">Example 631</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10315:1-10323:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a.b-c_d@a.b</span> +<pre data-sourcepos="12836:1-12844:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a.b-c_d@a.b</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">a.b-c_d@a.b.</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -9249,295 +11505,361 @@ the address:</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10325:1-10330:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="mailto:a.b-c_d@a.b">a.b-c_d@a.b</a></p></span> +<pre data-sourcepos="12846:1-12851:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="mailto:a.b-c_d@a.b">a.b-c_d@a.b</a></p></span> <span id="LC2" class="line" lang="plaintext"><p><a href="mailto:a.b-c_d@a.b">a.b-c_d@a.b</a>.</p></span> <span id="LC3" class="line" lang="plaintext"><p>a.b-c_d@a.b-</p></span> <span id="LC4" class="line" lang="plaintext"><p>a.b-c_d@a.b_</p></span></code></pre> <copy-code></copy-code> </div> </div> -<h2 data-sourcepos="10334:1-10334:11" dir="auto"> +</div> +<h2 data-sourcepos="12856:1-12856:11" dir="auto"> <a id="user-content-raw-html" class="anchor" href="#raw-html" aria-hidden="true"></a>Raw HTML</h2> -<p data-sourcepos="10336:1-10339:57" dir="auto">Text between <code><</code> and <code>></code> that looks like an HTML tag is parsed as a +<p data-sourcepos="12858:1-12861:57" dir="auto">Text between <code><</code> and <code>></code> that looks like an HTML tag is parsed as a raw HTML tag and will be rendered in HTML without escaping. Tag and attribute names are not limited to current HTML tags, so custom tags (and even, say, DocBook tags) may be used.</p> -<p data-sourcepos="10341:1-10341:29" dir="auto">Here is the grammar for tags:</p> -<p data-sourcepos="10343:1-10345:14" dir="auto">A <a href="@">tag name</a> consists of an ASCII letter +<p data-sourcepos="12863:1-12863:29" dir="auto">Here is the grammar for tags:</p> +<p data-sourcepos="12865:1-12867:14" dir="auto">A <a href="@">tag name</a> consists of an ASCII letter followed by zero or more ASCII letters, digits, or hyphens (<code>-</code>).</p> -<p data-sourcepos="10347:1-10349:32" dir="auto">An <a href="@">attribute</a> consists of [whitespace], +<p data-sourcepos="12869:1-12871:32" dir="auto">An <a href="@">attribute</a> consists of [whitespace], an [attribute name], and an optional [attribute value specification].</p> -<p data-sourcepos="10351:1-10354:52" dir="auto">An <a href="@">attribute name</a> +<p data-sourcepos="12873:1-12876:52" dir="auto">An <a href="@">attribute name</a> consists of an ASCII letter, <code>_</code>, or <code>:</code>, followed by zero or more ASCII letters, digits, <code>_</code>, <code>.</code>, <code>:</code>, or <code>-</code>. (Note: This is the XML specification restricted to ASCII. HTML5 is laxer.)</p> -<p data-sourcepos="10356:1-10359:7" dir="auto">An <a href="@">attribute value specification</a> +<p data-sourcepos="12878:1-12881:7" dir="auto">An <a href="@">attribute value specification</a> consists of optional [whitespace], a <code>=</code> character, optional [whitespace], and an [attribute value].</p> -<p data-sourcepos="10361:1-10363:72" dir="auto">An <a href="@">attribute value</a> +<p data-sourcepos="12883:1-12885:72" dir="auto">An <a href="@">attribute value</a> consists of an [unquoted attribute value], a [single-quoted attribute value], or a [double-quoted attribute value].</p> -<p data-sourcepos="10365:1-10367:60" dir="auto">An <a href="@">unquoted attribute value</a> +<p data-sourcepos="12887:1-12889:60" dir="auto">An <a href="@">unquoted attribute value</a> is a nonempty string of characters not including [whitespace], <code>"</code>, <code>'</code>, <code>=</code>, <code><</code>, <code>></code>, or <code>`</code>.</p> -<p data-sourcepos="10369:1-10371:46" dir="auto">A <a href="@">single-quoted attribute value</a> +<p data-sourcepos="12891:1-12893:46" dir="auto">A <a href="@">single-quoted attribute value</a> consists of <code>'</code>, zero or more characters not including <code>'</code>, and a final <code>'</code>.</p> -<p data-sourcepos="10373:1-10375:46" dir="auto">A <a href="@">double-quoted attribute value</a> +<p data-sourcepos="12895:1-12897:46" dir="auto">A <a href="@">double-quoted attribute value</a> consists of <code>"</code>, zero or more characters not including <code>"</code>, and a final <code>"</code>.</p> -<p data-sourcepos="10377:1-10379:31" dir="auto">An <a href="@">open tag</a> consists of a <code><</code> character, a [tag name], +<p data-sourcepos="12899:1-12901:31" dir="auto">An <a href="@">open tag</a> consists of a <code><</code> character, a [tag name], zero or more [attributes], optional [whitespace], an optional <code>/</code> character, and a <code>></code> character.</p> -<p data-sourcepos="10381:1-10382:57" dir="auto">A <a href="@">closing tag</a> consists of the string <code></</code>, a +<p data-sourcepos="12903:1-12904:57" dir="auto">A <a href="@">closing tag</a> consists of the string <code></</code>, a [tag name], optional [whitespace], and the character <code>></code>.</p> -<p data-sourcepos="10384:1-10387:63" dir="auto">An <a href="@">HTML comment</a> consists of <code><!--</code> + <em>text</em> + <code>--></code>, +<p data-sourcepos="12906:1-12909:63" dir="auto">An <a href="@">HTML comment</a> consists of <code><!--</code> + <em>text</em> + <code>--></code>, where <em>text</em> does not start with <code>></code> or <code>-></code>, does not end with <code>-</code>, and does not contain <code>--</code>. (See the <a href="http://www.w3.org/TR/html5/syntax.html#comments" rel="nofollow noreferrer noopener" target="_blank">HTML5 spec</a>.)</p> -<p data-sourcepos="10389:1-10392:5" dir="auto">A <a href="@">processing instruction</a> +<p data-sourcepos="12911:1-12914:5" dir="auto">A <a href="@">processing instruction</a> consists of the string <code><?</code>, a string of characters not including the string <code>?></code>, and the string <code>?></code>.</p> -<p data-sourcepos="10394:1-10397:37" dir="auto">A <a href="@">declaration</a> consists of the +<p data-sourcepos="12916:1-12919:37" dir="auto">A <a href="@">declaration</a> consists of the string <code><!</code>, a name consisting of one or more uppercase ASCII letters, [whitespace], a string of characters not including the character <code>></code>, and the character <code>></code>.</p> -<p data-sourcepos="10399:1-10401:28" dir="auto">A <a href="@">CDATA section</a> consists of +<p data-sourcepos="12921:1-12923:28" dir="auto">A <a href="@">CDATA section</a> consists of the string <code><![CDATA[</code>, a string of characters not including the string <code>]]></code>, and the string <code>]]></code>.</p> -<p data-sourcepos="10403:1-10405:21" dir="auto">An <a href="@">HTML tag</a> consists of an [open tag], a [closing tag], +<p data-sourcepos="12925:1-12927:21" dir="auto">An <a href="@">HTML tag</a> consists of an [open tag], a [closing tag], an [HTML comment], a [processing instruction], a [declaration], or a [CDATA section].</p> -<p data-sourcepos="10407:1-10407:31" dir="auto">Here are some simple open tags:</p> +<p data-sourcepos="12929:1-12929:31" dir="auto">Here are some simple open tags:</p> +<div> +<div><a href="#example-632">Example 632</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10409:1-10411:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a><bab><c2c></span></code></pre> +<pre data-sourcepos="12934:1-12936:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a><bab><c2c></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10413:1-10415:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a><bab><c2c></p></span></code></pre> +<pre data-sourcepos="12938:1-12940:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a><bab><c2c></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10418:1-10418:15" dir="auto">Empty elements:</p> +</div> +<p data-sourcepos="12944:1-12944:15" dir="auto">Empty elements:</p> +<div> +<div><a href="#example-633">Example 633</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10420:1-10422:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a/><b2/></span></code></pre> +<pre data-sourcepos="12949:1-12951:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a/><b2/></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10424:1-10426:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a/><b2/></p></span></code></pre> +<pre data-sourcepos="12953:1-12955:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a/><b2/></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10429:1-10429:24" dir="auto">[Whitespace] is allowed:</p> +</div> +<p data-sourcepos="12959:1-12959:24" dir="auto">[Whitespace] is allowed:</p> +<div> +<div><a href="#example-634">Example 634</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10431:1-10434:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a /><b2</span> +<pre data-sourcepos="12964:1-12967:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a /><b2</span> <span id="LC2" class="line" lang="plaintext">data="foo" ></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10436:1-10439:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a /><b2</span> +<pre data-sourcepos="12969:1-12972:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a /><b2</span> <span id="LC2" class="line" lang="plaintext">data="foo" ></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10442:1-10442:16" dir="auto">With attributes:</p> +</div> +<p data-sourcepos="12976:1-12976:16" dir="auto">With attributes:</p> +<div> +<div><a href="#example-635">Example 635</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10444:1-10447:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a foo="bar" bam = 'baz <em>"</em>'</span> +<pre data-sourcepos="12981:1-12984:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a foo="bar" bam = 'baz <em>"</em>'</span> <span id="LC2" class="line" lang="plaintext">_boolean zoop:33=zoop:33 /></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10449:1-10452:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a foo="bar" bam = 'baz <em>"</em>'</span> +<pre data-sourcepos="12986:1-12989:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a foo="bar" bam = 'baz <em>"</em>'</span> <span id="LC2" class="line" lang="plaintext">_boolean zoop:33=zoop:33 /></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10455:1-10455:29" dir="auto">Custom tag names can be used:</p> +</div> +<p data-sourcepos="12993:1-12993:29" dir="auto">Custom tag names can be used:</p> +<div> +<div><a href="#example-636">Example 636</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10457:1-10459:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo <responsive-image src="foo.jpg" /></span></code></pre> +<pre data-sourcepos="12998:1-13000:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo <responsive-image src="foo.jpg" /></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10461:1-10463:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo <responsive-image src="foo.jpg" /></p></span></code></pre> +<pre data-sourcepos="13002:1-13004:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo <responsive-image src="foo.jpg" /></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10466:1-10466:38" dir="auto">Illegal tag names, not parsed as HTML:</p> +</div> +<p data-sourcepos="13008:1-13008:38" dir="auto">Illegal tag names, not parsed as HTML:</p> +<div> +<div><a href="#example-637">Example 637</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10468:1-10470:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><33> <__></span></code></pre> +<pre data-sourcepos="13013:1-13015:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><33> <__></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10472:1-10474:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;33&gt; &lt;__&gt;</p></span></code></pre> +<pre data-sourcepos="13017:1-13019:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;33&gt; &lt;__&gt;</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10477:1-10477:24" dir="auto">Illegal attribute names:</p> +</div> +<p data-sourcepos="13023:1-13023:24" dir="auto">Illegal attribute names:</p> +<div> +<div><a href="#example-638">Example 638</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10479:1-10481:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a h*#ref="hi"></span></code></pre> +<pre data-sourcepos="13028:1-13030:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a h*#ref="hi"></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10483:1-10485:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;a h*#ref=&quot;hi&quot;&gt;</p></span></code></pre> +<pre data-sourcepos="13032:1-13034:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;a h*#ref=&quot;hi&quot;&gt;</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10488:1-10488:25" dir="auto">Illegal attribute values:</p> +</div> +<p data-sourcepos="13038:1-13038:25" dir="auto">Illegal attribute values:</p> +<div> +<div><a href="#example-639">Example 639</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10490:1-10492:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="hi'> <a href=hi'></span></code></pre> +<pre data-sourcepos="13043:1-13045:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="hi'> <a href=hi'></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10494:1-10496:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;a href=&quot;hi'&gt; &lt;a href=hi'&gt;</p></span></code></pre> +<pre data-sourcepos="13047:1-13049:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;a href=&quot;hi'&gt; &lt;a href=hi'&gt;</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10499:1-10499:21" dir="auto">Illegal [whitespace]:</p> +</div> +<p data-sourcepos="13053:1-13053:21" dir="auto">Illegal [whitespace]:</p> +<div> +<div><a href="#example-640">Example 640</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10501:1-10506:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">< a><</span> +<pre data-sourcepos="13058:1-13063:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">< a><</span> <span id="LC2" class="line" lang="plaintext">foo><bar/ ></span> <span id="LC3" class="line" lang="plaintext"><foo bar=baz</span> <span id="LC4" class="line" lang="plaintext">bim!bop /></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10508:1-10513:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt; a&gt;&lt;</span> +<pre data-sourcepos="13065:1-13070:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt; a&gt;&lt;</span> <span id="LC2" class="line" lang="plaintext">foo&gt;&lt;bar/ &gt;</span> <span id="LC3" class="line" lang="plaintext">&lt;foo bar=baz</span> <span id="LC4" class="line" lang="plaintext">bim!bop /&gt;</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10516:1-10516:21" dir="auto">Missing [whitespace]:</p> +</div> +<p data-sourcepos="13074:1-13074:21" dir="auto">Missing [whitespace]:</p> +<div> +<div><a href="#example-641">Example 641</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10518:1-10520:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href='bar'title=title></span></code></pre> +<pre data-sourcepos="13079:1-13081:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href='bar'title=title></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10522:1-10524:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;a href='bar'title=title&gt;</p></span></code></pre> +<pre data-sourcepos="13083:1-13085:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;a href='bar'title=title&gt;</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10527:1-10527:13" dir="auto">Closing tags:</p> +</div> +<p data-sourcepos="13089:1-13089:13" dir="auto">Closing tags:</p> +<div> +<div><a href="#example-642">Example 642</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10529:1-10531:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></a></foo ></span></code></pre> +<pre data-sourcepos="13094:1-13096:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></a></foo ></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10533:1-10535:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p></a></foo ></p></span></code></pre> +<pre data-sourcepos="13098:1-13100:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p></a></foo ></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10538:1-10538:34" dir="auto">Illegal attributes in closing tag:</p> +</div> +<p data-sourcepos="13104:1-13104:34" dir="auto">Illegal attributes in closing tag:</p> +<div> +<div><a href="#example-643">Example 643</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10540:1-10542:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></a href="foo"></span></code></pre> +<pre data-sourcepos="13109:1-13111:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></a href="foo"></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10544:1-10546:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;/a href=&quot;foo&quot;&gt;</p></span></code></pre> +<pre data-sourcepos="13113:1-13115:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;/a href=&quot;foo&quot;&gt;</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10549:1-10549:9" dir="auto">Comments:</p> +</div> +<p data-sourcepos="13119:1-13119:9" dir="auto">Comments:</p> +<div> +<div><a href="#example-644">Example 644</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10551:1-10554:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo <!-- this is a</span> +<pre data-sourcepos="13124:1-13127:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo <!-- this is a</span> <span id="LC2" class="line" lang="plaintext">comment - with hyphen --></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10556:1-10559:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <!-- this is a</span> +<pre data-sourcepos="13129:1-13132:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <!-- this is a</span> <span id="LC2" class="line" lang="plaintext">comment - with hyphen --></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-645">Example 645</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10562:1-10564:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo <!-- not a comment -- two hyphens --></span></code></pre> +<pre data-sourcepos="13139:1-13141:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo <!-- not a comment -- two hyphens --></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10566:1-10568:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo &lt;!-- not a comment -- two hyphens --&gt;</p></span></code></pre> +<pre data-sourcepos="13143:1-13145:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo &lt;!-- not a comment -- two hyphens --&gt;</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10571:1-10571:13" dir="auto">Not comments:</p> +</div> +<p data-sourcepos="13149:1-13149:13" dir="auto">Not comments:</p> +<div> +<div><a href="#example-646">Example 646</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10573:1-10577:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo <!--> foo --></span> +<pre data-sourcepos="13154:1-13158:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo <!--> foo --></span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">foo <!-- foo---></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10579:1-10582:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo &lt;!--&gt; foo --&gt;</p></span> +<pre data-sourcepos="13160:1-13163:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo &lt;!--&gt; foo --&gt;</p></span> <span id="LC2" class="line" lang="plaintext"><p>foo &lt;!-- foo---&gt;</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10585:1-10585:24" dir="auto">Processing instructions:</p> +</div> +<p data-sourcepos="13167:1-13167:24" dir="auto">Processing instructions:</p> +<div> +<div><a href="#example-647">Example 647</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10587:1-10589:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo <?php echo $a; ?></span></code></pre> +<pre data-sourcepos="13172:1-13174:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo <?php echo $a; ?></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10591:1-10593:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <?php echo $a; ?></p></span></code></pre> +<pre data-sourcepos="13176:1-13178:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <?php echo $a; ?></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10596:1-10596:13" dir="auto">Declarations:</p> +</div> +<p data-sourcepos="13182:1-13182:13" dir="auto">Declarations:</p> +<div> +<div><a href="#example-648">Example 648</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10598:1-10600:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo <!ELEMENT br EMPTY></span></code></pre> +<pre data-sourcepos="13187:1-13189:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo <!ELEMENT br EMPTY></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10602:1-10604:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <!ELEMENT br EMPTY></p></span></code></pre> +<pre data-sourcepos="13191:1-13193:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <!ELEMENT br EMPTY></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10607:1-10607:15" dir="auto">CDATA sections:</p> +</div> +<p data-sourcepos="13197:1-13197:15" dir="auto">CDATA sections:</p> +<div> +<div><a href="#example-649">Example 649</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10609:1-10611:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo <![CDATA[>&<]]></span></code></pre> +<pre data-sourcepos="13202:1-13204:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo <![CDATA[>&<]]></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10613:1-10615:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <![CDATA[>&<]]></p></span></code></pre> +<pre data-sourcepos="13206:1-13208:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <![CDATA[>&<]]></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10618:1-10619:11" dir="auto">Entity and numeric character references are preserved in HTML +</div> +<p data-sourcepos="13212:1-13213:11" dir="auto">Entity and numeric character references are preserved in HTML attributes:</p> +<div> +<div><a href="#example-650">Example 650</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10621:1-10623:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo <a href="&ouml;"></span></code></pre> +<pre data-sourcepos="13218:1-13220:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo <a href="&ouml;"></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10625:1-10627:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <a href="&ouml;"></p></span></code></pre> +<pre data-sourcepos="13222:1-13224:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <a href="&ouml;"></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10630:1-10630:49" dir="auto">Backslash escapes do not work in HTML attributes:</p> +</div> +<p data-sourcepos="13228:1-13228:49" dir="auto">Backslash escapes do not work in HTML attributes:</p> +<div> +<div><a href="#example-651">Example 651</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10632:1-10634:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo <a href="\*"></span></code></pre> +<pre data-sourcepos="13233:1-13235:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo <a href="\*"></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10636:1-10638:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <a href="\*"></p></span></code></pre> +<pre data-sourcepos="13237:1-13239:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo <a href="\*"></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-652">Example 652</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10641:1-10643:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="\""></span></code></pre> +<pre data-sourcepos="13246:1-13248:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="\""></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10645:1-10647:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;a href=&quot;&quot;&quot;&gt;</p></span></code></pre> +<pre data-sourcepos="13250:1-13252:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>&lt;a href=&quot;&quot;&quot;&gt;</p></span></code></pre> <copy-code></copy-code> </div> +</div> <div> -<h2 data-sourcepos="10652:1-10652:34"> +<h2 data-sourcepos="13258:1-13258:34"> <a id="user-content-disallowed-raw-html-extension" class="anchor" href="#disallowed-raw-html-extension" aria-hidden="true"></a>Disallowed Raw HTML (extension)</h2> -<p data-sourcepos="10654:1-10655:36">GFM enables the <code>tagfilter</code> extension, where the following HTML tags will be +<p data-sourcepos="13260:1-13261:36">GFM enables the <code>tagfilter</code> extension, where the following HTML tags will be filtered when rendering HTML output:</p> -<ul data-sourcepos="10657:1-10666:0"> -<li data-sourcepos="10657:1-10657:11"><code><title></code></li> -<li data-sourcepos="10658:1-10658:14"><code><textarea></code></li> -<li data-sourcepos="10659:1-10659:11"><code><style></code></li> -<li data-sourcepos="10660:1-10660:9"><code><xmp></code></li> -<li data-sourcepos="10661:1-10661:12"><code><iframe></code></li> -<li data-sourcepos="10662:1-10662:13"><code><noembed></code></li> -<li data-sourcepos="10663:1-10663:14"><code><noframes></code></li> -<li data-sourcepos="10664:1-10664:12"><code><script></code></li> -<li data-sourcepos="10665:1-10666:0"><code><plaintext></code></li> +<ul data-sourcepos="13263:1-13272:0"> +<li data-sourcepos="13263:1-13263:11"><code><title></code></li> +<li data-sourcepos="13264:1-13264:14"><code><textarea></code></li> +<li data-sourcepos="13265:1-13265:11"><code><style></code></li> +<li data-sourcepos="13266:1-13266:9"><code><xmp></code></li> +<li data-sourcepos="13267:1-13267:12"><code><iframe></code></li> +<li data-sourcepos="13268:1-13268:13"><code><noembed></code></li> +<li data-sourcepos="13269:1-13269:14"><code><noframes></code></li> +<li data-sourcepos="13270:1-13270:12"><code><script></code></li> +<li data-sourcepos="13271:1-13272:0"><code><plaintext></code></li> </ul> -<p data-sourcepos="10667:1-10670:71">Filtering is done by replacing the leading <code><</code> with the entity <code>&lt;</code>. These +<p data-sourcepos="13273:1-13276:71">Filtering is done by replacing the leading <code><</code> with the entity <code>&lt;</code>. These tags are chosen in particular as they change how HTML is interpreted in a way unique to them (i.e. nested HTML is interpreted differently), and this is usually undesireable in the context of other rendered Markdown content.</p> -<p data-sourcepos="10672:1-10672:39">All other HTML tags are left untouched.</p> +<p data-sourcepos="13278:1-13278:39">All other HTML tags are left untouched.</p> +<div> +<div><a href="#example-653">Example 653</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10674:1-10680:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><strong> <title> <style> <em></span> +<pre data-sourcepos="13283:1-13289:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><strong> <title> <style> <em></span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"><blockquote></span> <span id="LC4" class="line" lang="plaintext"> <xmp> is disallowed. <XMP> is also disallowed.</span> @@ -9545,252 +11867,315 @@ usually undesireable in the context of other rendered Markdown content.</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10682:1-10687:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong> &lt;title> &lt;style> <em></p></span> +<pre data-sourcepos="13291:1-13296:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><strong> &lt;title> &lt;style> <em></p></span> <span id="LC2" class="line" lang="plaintext"><blockquote></span> <span id="LC3" class="line" lang="plaintext"> &lt;xmp> is disallowed. &lt;XMP> is also disallowed.</span> <span id="LC4" class="line" lang="plaintext"></blockquote></span></code></pre> <copy-code></copy-code> </div> </div> -<h2 data-sourcepos="10691:1-10691:19" dir="auto"> +</div> +<h2 data-sourcepos="13301:1-13301:19" dir="auto"> <a id="user-content-hard-line-breaks" class="anchor" href="#hard-line-breaks" aria-hidden="true"></a>Hard line breaks</h2> -<p data-sourcepos="10693:1-10696:27" dir="auto">A line break (not in a code span or HTML tag) that is preceded +<p data-sourcepos="13303:1-13306:27" dir="auto">A line break (not in a code span or HTML tag) that is preceded by two or more spaces and does not occur at the end of a block is parsed as a <a href="@">hard line break</a> (rendered in HTML as a <code><br /></code> tag):</p> +<div> +<div><a href="#example-654">Example 654</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10698:1-10701:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo </span> +<pre data-sourcepos="13311:1-13314:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo </span> <span id="LC2" class="line" lang="plaintext">baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10703:1-10706:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<br /></span> +<pre data-sourcepos="13316:1-13319:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<br /></span> <span id="LC2" class="line" lang="plaintext">baz</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10709:1-10710:48" dir="auto">For a more visible alternative, a backslash before the +</div> +<p data-sourcepos="13323:1-13324:48" dir="auto">For a more visible alternative, a backslash before the [line ending] may be used instead of two spaces:</p> +<div> +<div><a href="#example-655">Example 655</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10712:1-10715:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo\</span> +<pre data-sourcepos="13329:1-13332:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo\</span> <span id="LC2" class="line" lang="plaintext">baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10717:1-10720:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<br /></span> +<pre data-sourcepos="13334:1-13337:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<br /></span> <span id="LC2" class="line" lang="plaintext">baz</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10723:1-10723:33" dir="auto">More than two spaces can be used:</p> +</div> +<p data-sourcepos="13341:1-13341:33" dir="auto">More than two spaces can be used:</p> +<div> +<div><a href="#example-656">Example 656</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10725:1-10728:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo </span> +<pre data-sourcepos="13346:1-13349:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo </span> <span id="LC2" class="line" lang="plaintext">baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10730:1-10733:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<br /></span> +<pre data-sourcepos="13351:1-13354:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<br /></span> <span id="LC2" class="line" lang="plaintext">baz</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10736:1-10736:61" dir="auto">Leading spaces at the beginning of the next line are ignored:</p> +</div> +<p data-sourcepos="13358:1-13358:61" dir="auto">Leading spaces at the beginning of the next line are ignored:</p> +<div> +<div><a href="#example-657">Example 657</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10738:1-10741:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo </span> +<pre data-sourcepos="13363:1-13366:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo </span> <span id="LC2" class="line" lang="plaintext"> bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10743:1-10746:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<br /></span> +<pre data-sourcepos="13368:1-13371:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<br /></span> <span id="LC2" class="line" lang="plaintext">bar</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-658">Example 658</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10749:1-10752:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo\</span> +<pre data-sourcepos="13378:1-13381:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo\</span> <span id="LC2" class="line" lang="plaintext"> bar</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10754:1-10757:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<br /></span> +<pre data-sourcepos="13383:1-13386:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo<br /></span> <span id="LC2" class="line" lang="plaintext">bar</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10760:1-10761:26" dir="auto">Line breaks can occur inside emphasis, links, and other constructs +</div> +<p data-sourcepos="13390:1-13391:26" dir="auto">Line breaks can occur inside emphasis, links, and other constructs that allow inline content:</p> +<div> +<div><a href="#example-659">Example 659</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10763:1-10766:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo </span> +<pre data-sourcepos="13396:1-13399:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo </span> <span id="LC2" class="line" lang="plaintext">bar*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10768:1-10771:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo<br /></span> +<pre data-sourcepos="13401:1-13404:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo<br /></span> <span id="LC2" class="line" lang="plaintext">bar</em></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-660">Example 660</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10774:1-10777:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo\</span> +<pre data-sourcepos="13411:1-13414:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo\</span> <span id="LC2" class="line" lang="plaintext">bar*</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10779:1-10782:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo<br /></span> +<pre data-sourcepos="13416:1-13419:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><em>foo<br /></span> <span id="LC2" class="line" lang="plaintext">bar</em></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10785:1-10785:42" dir="auto">Line breaks do not occur inside code spans</p> +</div> +<p data-sourcepos="13423:1-13423:42" dir="auto">Line breaks do not occur inside code spans</p> +<div> +<div><a href="#example-661">Example 661</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10787:1-10790:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`code </span> +<pre data-sourcepos="13428:1-13431:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`code </span> <span id="LC2" class="line" lang="plaintext">span`</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10792:1-10794:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>code span</code></p></span></code></pre> +<pre data-sourcepos="13433:1-13435:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>code span</code></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-662">Example 662</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10797:1-10800:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`code\</span> +<pre data-sourcepos="13442:1-13445:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`code\</span> <span id="LC2" class="line" lang="plaintext">span`</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10802:1-10804:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>code\ span</code></p></span></code></pre> +<pre data-sourcepos="13447:1-13449:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><code>code\ span</code></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10807:1-10807:13" dir="auto">or HTML tags:</p> +</div> +<p data-sourcepos="13453:1-13453:13" dir="auto">or HTML tags:</p> +<div> +<div><a href="#example-663">Example 663</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10809:1-10812:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="foo </span> +<pre data-sourcepos="13458:1-13461:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="foo </span> <span id="LC2" class="line" lang="plaintext">bar"></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10814:1-10817:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="foo </span> +<pre data-sourcepos="13463:1-13466:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="foo </span> <span id="LC2" class="line" lang="plaintext">bar"></p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-664">Example 664</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10820:1-10823:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="foo\</span> +<pre data-sourcepos="13473:1-13476:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><a href="foo\</span> <span id="LC2" class="line" lang="plaintext">bar"></span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10825:1-10828:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="foo\</span> +<pre data-sourcepos="13478:1-13481:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="foo\</span> <span id="LC2" class="line" lang="plaintext">bar"></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10831:1-10833:20" dir="auto">Hard line breaks are for separating inline content within a block. +</div> +<p data-sourcepos="13485:1-13487:20" dir="auto">Hard line breaks are for separating inline content within a block. Neither syntax for hard line breaks works at the end of a paragraph or other block element:</p> +<div> +<div><a href="#example-665">Example 665</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10835:1-10837:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo\</span></code></pre> +<pre data-sourcepos="13492:1-13494:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo\</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10839:1-10841:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo\</p></span></code></pre> +<pre data-sourcepos="13496:1-13498:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo\</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-666">Example 666</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10844:1-10846:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo </span></code></pre> +<pre data-sourcepos="13505:1-13507:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo </span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10848:1-10850:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</p></span></code></pre> +<pre data-sourcepos="13509:1-13511:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-667">Example 667</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10853:1-10855:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">### foo\</span></code></pre> +<pre data-sourcepos="13518:1-13520:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">### foo\</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10857:1-10859:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h3>foo\</h3></span></code></pre> +<pre data-sourcepos="13522:1-13524:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h3>foo\</h3></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-668">Example 668</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10862:1-10864:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">### foo </span></code></pre> +<pre data-sourcepos="13531:1-13533:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">### foo </span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10866:1-10868:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h3>foo</h3></span></code></pre> +<pre data-sourcepos="13535:1-13537:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><h3>foo</h3></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="10871:1-10871:19" dir="auto"> +</div> +<h2 data-sourcepos="13541:1-13541:19" dir="auto"> <a id="user-content-soft-line-breaks" class="anchor" href="#soft-line-breaks" aria-hidden="true"></a>Soft line breaks</h2> -<p data-sourcepos="10873:1-10877:62" dir="auto">A regular line break (not in a code span or HTML tag) that is not +<p data-sourcepos="13543:1-13547:62" dir="auto">A regular line break (not in a code span or HTML tag) that is not preceded by two or more spaces or a backslash is parsed as a <a href="@">softbreak</a>. (A softbreak may be rendered in HTML either as a [line ending] or as a space. The result will be the same in browsers. In the examples here, a [line ending] will be used.)</p> +<div> +<div><a href="#example-669">Example 669</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10879:1-10882:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span> +<pre data-sourcepos="13552:1-13555:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span> <span id="LC2" class="line" lang="plaintext">baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10884:1-10887:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</span> +<pre data-sourcepos="13557:1-13560:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</span> <span id="LC2" class="line" lang="plaintext">baz</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10890:1-10891:8" dir="auto">Spaces at the end of the line and beginning of the next line are +</div> +<p data-sourcepos="13564:1-13565:8" dir="auto">Spaces at the end of the line and beginning of the next line are removed:</p> +<div> +<div><a href="#example-670">Example 670</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10893:1-10896:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo </span> +<pre data-sourcepos="13570:1-13573:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo </span> <span id="LC2" class="line" lang="plaintext"> baz</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10898:1-10901:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</span> +<pre data-sourcepos="13575:1-13578:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>foo</span> <span id="LC2" class="line" lang="plaintext">baz</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10904:1-10905:25" dir="auto">A conforming parser may render a soft line break in HTML either as a +</div> +<p data-sourcepos="13582:1-13583:25" dir="auto">A conforming parser may render a soft line break in HTML either as a line break or as a space.</p> -<p data-sourcepos="10907:1-10908:20" dir="auto">A renderer may also provide an option to render soft line breaks +<p data-sourcepos="13585:1-13586:20" dir="auto">A renderer may also provide an option to render soft line breaks as hard line breaks.</p> -<h2 data-sourcepos="10910:1-10910:18" dir="auto"> +<h2 data-sourcepos="13588:1-13588:18" dir="auto"> <a id="user-content-textual-content" class="anchor" href="#textual-content" aria-hidden="true"></a>Textual content</h2> -<p data-sourcepos="10912:1-10913:35" dir="auto">Any characters not given an interpretation by the above rules will +<p data-sourcepos="13590:1-13591:35" dir="auto">Any characters not given an interpretation by the above rules will be parsed as plain textual content.</p> +<div> +<div><a href="#example-671">Example 671</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10915:1-10917:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">hello $.;'there</span></code></pre> +<pre data-sourcepos="13596:1-13598:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">hello $.;'there</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10919:1-10921:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>hello $.;'there</p></span></code></pre> +<pre data-sourcepos="13600:1-13602:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>hello $.;'there</p></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-672">Example 672</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10924:1-10926:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo χρῆν</span></code></pre> +<pre data-sourcepos="13609:1-13611:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo χρῆν</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10928:1-10930:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo χρῆν</p></span></code></pre> +<pre data-sourcepos="13613:1-13615:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Foo χρῆν</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="10933:1-10933:39" dir="auto">Internal spaces are preserved verbatim:</p> +</div> +<p data-sourcepos="13619:1-13619:39" dir="auto">Internal spaces are preserved verbatim:</p> +<div> +<div><a href="#example-673">Example 673</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10935:1-10937:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Multiple spaces</span></code></pre> +<pre data-sourcepos="13624:1-13626:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Multiple spaces</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10939:1-10941:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Multiple spaces</p></span></code></pre> +<pre data-sourcepos="13628:1-13630:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>Multiple spaces</p></span></code></pre> <copy-code></copy-code> </div> -<h1 data-sourcepos="10944:1-10944:40" dir="auto"> +</div> +<h1 data-sourcepos="13634:1-13634:40" dir="auto"> <a id="user-content-gitlab-official-specification-markdown" class="anchor" href="#gitlab-official-specification-markdown" aria-hidden="true"></a>GitLab Official Specification Markdown</h1> -<p data-sourcepos="10946:1-10949:104" dir="auto">Currently, only some of the GitLab-specific markdown features are +<p data-sourcepos="13636:1-13639:104" dir="auto">Currently, only some of the GitLab-specific markdown features are listed in this section. We may eventually add all GitLab-specific features currently listed as supported in the <a href="https://docs.gitlab.com/ee/user/markdown.html" rel="nofollow noreferrer noopener" target="_blank">user-facing documentation for GitLab Flavored Markdown</a>.</p> -<p data-sourcepos="10951:1-10952:69" dir="auto">There is currently only this single top-level heading, but the +<p data-sourcepos="13641:1-13642:69" dir="auto">There is currently only this single top-level heading, but the examples may be split into multiple top-level headings in the future.</p> -<h2 data-sourcepos="10954:1-10954:12" dir="auto"> +<h2 data-sourcepos="13644:1-13644:12" dir="auto"> <a id="user-content-footnotes" class="anchor" href="#footnotes" aria-hidden="true"></a>Footnotes</h2> -<p data-sourcepos="10956:1-10957:143" dir="auto">See +<p data-sourcepos="13646:1-13647:143" dir="auto">See <a href="https://docs.gitlab.com/ee/user/markdown.html#footnotes" rel="nofollow noreferrer noopener" target="_blank">the footnotes section of the user-facing documentation for GitLab Flavored Markdown</a>.</p> +<div> +<div><a href="#example-674">Example 674</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10959:1-10963:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">footnote reference tag [^fortytwo]</span> +<pre data-sourcepos="13652:1-13656:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">footnote reference tag [^fortytwo]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">[^fortytwo]: footnote text</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="10965:1-10985:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p></span> +<pre data-sourcepos="13658:1-13678:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p></span> <span id="LC2" class="line" lang="plaintext">footnote reference tag</span> <span id="LC3" class="line" lang="plaintext"><sup></span> <span id="LC4" class="line" lang="plaintext"><a href="#fn-fortytwo-42" id="fnref-fortytwo-42" data-footnote-ref></span> @@ -9811,23 +12196,26 @@ examples may be split into multiple top-level headings in the future.</p> <span id="LC19" class="line" lang="plaintext"></section></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="10987:1-10987:18" dir="auto"> +</div> +<h2 data-sourcepos="13681:1-13681:18" dir="auto"> <a id="user-content-task-list-items" class="anchor" href="#task-list-items" aria-hidden="true"></a>Task list items</h2> -<p data-sourcepos="10989:1-10990:117" dir="auto">See +<p data-sourcepos="13683:1-13684:117" dir="auto">See <a href="https://docs.gitlab.com/ee/user/markdown.html#task-lists" rel="nofollow noreferrer noopener" target="_blank">Task lists</a> in the GitLab Flavored Markdown documentation.</p> -<p data-sourcepos="10992:1-10995:39" dir="auto">Task list items (checkboxes) are defined as a GitHub Flavored Markdown extension in a section above. +<p data-sourcepos="13686:1-13689:39" dir="auto">Task list items (checkboxes) are defined as a GitHub Flavored Markdown extension in a section above. GitLab extends the behavior of task list items to support additional features. Some of these features are in-progress, and should not yet be considered part of the official GitLab Flavored Markdown specification.</p> -<p data-sourcepos="10997:1-10997:85" dir="auto">Some of the behavior of task list items is implemented as client-side JavaScript/CSS.</p> -<p data-sourcepos="10999:1-10999:80" dir="auto">The following are some basic examples; more examples may be added in the future.</p> -<p data-sourcepos="11001:1-11001:16" dir="auto">Incomplete task:</p> +<p data-sourcepos="13691:1-13691:85" dir="auto">Some of the behavior of task list items is implemented as client-side JavaScript/CSS.</p> +<p data-sourcepos="13693:1-13693:80" dir="auto">The following are some basic examples; more examples may be added in the future.</p> +<p data-sourcepos="13695:1-13695:16" dir="auto">Incomplete task:</p> +<div> +<div><a href="#example-675">Example 675</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11003:1-11005:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [ ] incomplete</span></code></pre> +<pre data-sourcepos="13700:1-13702:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [ ] incomplete</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11007:1-11015:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="13704:1-13712:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><task-button/></span> <span id="LC4" class="line" lang="plaintext"><input type="checkbox" disabled/></span> @@ -9836,13 +12224,16 @@ GitLab Flavored Markdown specification.</p> <span id="LC7" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="11017:1-11017:15" dir="auto">Completed task:</p> +</div> +<p data-sourcepos="13715:1-13715:15" dir="auto">Completed task:</p> +<div> +<div><a href="#example-676">Example 676</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11019:1-11021:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [x] completed</span></code></pre> +<pre data-sourcepos="13720:1-13722:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [x] completed</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11023:1-11031:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="13724:1-13732:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><task-button/></span> <span id="LC4" class="line" lang="plaintext"><input type="checkbox" checked disabled/></span> @@ -9851,13 +12242,16 @@ GitLab Flavored Markdown specification.</p> <span id="LC7" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="11033:1-11033:18" dir="auto">Inapplicable task:</p> +</div> +<p data-sourcepos="13735:1-13735:18" dir="auto">Inapplicable task:</p> +<div> +<div><a href="#example-677">Example 677</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11035:1-11037:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [~] inapplicable</span></code></pre> +<pre data-sourcepos="13740:1-13742:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [~] inapplicable</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11039:1-11049:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="13744:1-13754:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><task-button/></span> <span id="LC4" class="line" lang="plaintext"><input type="checkbox" data-inapplicable disabled></span> @@ -9868,16 +12262,19 @@ GitLab Flavored Markdown specification.</p> <span id="LC9" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="11051:1-11052:50" dir="auto">Inapplicable task in a "loose" list. Note that the <code><del></code> tag is not applied to the +</div> +<p data-sourcepos="13757:1-13758:50" dir="auto">Inapplicable task in a "loose" list. Note that the <code><del></code> tag is not applied to the loose text; it has strikethrough applied with CSS.</p> +<div> +<div><a href="#example-678">Example 678</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11054:1-11058:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [~] inapplicable</span> +<pre data-sourcepos="13763:1-13767:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [~] inapplicable</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"> text in loose list</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11060:1-11075:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> +<pre data-sourcepos="13769:1-13784:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><ul></span> <span id="LC2" class="line" lang="plaintext"><li></span> <span id="LC3" class="line" lang="plaintext"><p></span> <span id="LC4" class="line" lang="plaintext"><task-button/></span> @@ -9893,45 +12290,54 @@ loose text; it has strikethrough applied with CSS.</p> <span id="LC14" class="line" lang="plaintext"></ul></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="11077:1-11077:15" dir="auto"> +</div> +<h2 data-sourcepos="13787:1-13787:15" dir="auto"> <a id="user-content-front-matter" class="anchor" href="#front-matter" aria-hidden="true"></a>Front matter</h2> -<p data-sourcepos="11079:1-11080:121" dir="auto">See +<p data-sourcepos="13789:1-13790:121" dir="auto">See <a href="https://docs.gitlab.com/ee/user/markdown.html#front-matter" rel="nofollow noreferrer noopener" target="_blank">Front matter</a> in the GitLab Flavored Markdown documentation.</p> -<p data-sourcepos="11082:1-11083:95" dir="auto">Front matter is metadata included at the beginning of a Markdown document, preceding the content. +<p data-sourcepos="13792:1-13793:95" dir="auto">Front matter is metadata included at the beginning of a Markdown document, preceding the content. This data can be used by static site generators like Jekyll, Hugo, and many other applications.</p> -<p data-sourcepos="11085:1-11085:18" dir="auto">YAML front matter:</p> +<p data-sourcepos="13795:1-13795:18" dir="auto">YAML front matter:</p> +<div> +<div><a href="#example-679">Example 679</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11087:1-11091:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">---</span> +<pre data-sourcepos="13800:1-13804:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">---</span> <span id="LC2" class="line" lang="plaintext">title: YAML front matter</span> <span id="LC3" class="line" lang="plaintext">---</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11093:1-11099:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre></span> +<pre data-sourcepos="13806:1-13812:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre></span> <span id="LC2" class="line" lang="plaintext"><code></span> <span id="LC3" class="line" lang="plaintext">title: YAML front matter</span> <span id="LC4" class="line" lang="plaintext"></code></span> <span id="LC5" class="line" lang="plaintext"></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="11101:1-11101:18" dir="auto">TOML front matter:</p> +</div> +<p data-sourcepos="13815:1-13815:18" dir="auto">TOML front matter:</p> +<div> +<div><a href="#example-680">Example 680</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11103:1-11107:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">+++</span> +<pre data-sourcepos="13820:1-13824:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">+++</span> <span id="LC2" class="line" lang="plaintext">title: TOML front matter</span> <span id="LC3" class="line" lang="plaintext">+++</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11109:1-11115:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre></span> +<pre data-sourcepos="13826:1-13832:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre></span> <span id="LC2" class="line" lang="plaintext"><code></span> <span id="LC3" class="line" lang="plaintext">title: TOML front matter</span> <span id="LC4" class="line" lang="plaintext"></code></span> <span id="LC5" class="line" lang="plaintext"></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="11117:1-11117:18" dir="auto">JSON front matter:</p> +</div> +<p data-sourcepos="13835:1-13835:18" dir="auto">JSON front matter:</p> +<div> +<div><a href="#example-681">Example 681</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11119:1-11125:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">;;;</span> +<pre data-sourcepos="13840:1-13846:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">;;;</span> <span id="LC2" class="line" lang="plaintext">{</span> <span id="LC3" class="line" lang="plaintext"> "title": "JSON front matter"</span> <span id="LC4" class="line" lang="plaintext">}</span> @@ -9939,7 +12345,7 @@ This data can be used by static site generators like Jekyll, Hugo, and many othe <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11127:1-11135:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre></span> +<pre data-sourcepos="13848:1-13856:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><pre></span> <span id="LC2" class="line" lang="plaintext"><code></span> <span id="LC3" class="line" lang="plaintext">{</span> <span id="LC4" class="line" lang="plaintext"> "title": "JSON front matter"</span> @@ -9948,9 +12354,12 @@ This data can be used by static site generators like Jekyll, Hugo, and many othe <span id="LC7" class="line" lang="plaintext"></pre></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="11137:1-11137:66" dir="auto">Front matter blocks should be inserted at the top of the document:</p> +</div> +<p data-sourcepos="13859:1-13859:66" dir="auto">Front matter blocks should be inserted at the top of the document:</p> +<div> +<div><a href="#example-682">Example 682</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11139:1-11145:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">text</span> +<pre data-sourcepos="13864:1-13870:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">text</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">---</span> <span id="LC4" class="line" lang="plaintext">title: YAML front matter</span> @@ -9958,103 +12367,43 @@ This data can be used by static site generators like Jekyll, Hugo, and many othe <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11147:1-11151:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>text</p></span> +<pre data-sourcepos="13872:1-13876:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>text</p></span> <span id="LC2" class="line" lang="plaintext"><hr></span> <span id="LC3" class="line" lang="plaintext"><h2>title: YAML front matter</h2></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="11153:1-11153:74" dir="auto">Front matter block delimiters shouldn’t be preceded by space characters:</p> +</div> +<p data-sourcepos="13879:1-13879:74" dir="auto">Front matter block delimiters shouldn’t be preceded by space characters:</p> +<div> +<div><a href="#example-683">Example 683</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11155:1-11159:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ---</span> +<pre data-sourcepos="13884:1-13888:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ---</span> <span id="LC2" class="line" lang="plaintext">title: YAML front matter</span> <span id="LC3" class="line" lang="plaintext">---</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11161:1-11164:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr></span> +<pre data-sourcepos="13890:1-13893:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><hr></span> <span id="LC2" class="line" lang="plaintext"><h2>title: YAML front matter</h2></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="11166:1-11166:20" dir="auto"> +</div> +<h2 data-sourcepos="13896:1-13896:20" dir="auto"> <a id="user-content-table-of-contents" class="anchor" href="#table-of-contents" aria-hidden="true"></a>Table of contents</h2> -<p data-sourcepos="11168:1-11170:46" dir="auto">See +<p data-sourcepos="13898:1-13900:46" dir="auto">See <a href="https://docs.gitlab.com/ee/user/markdown.html#table-of-contents" rel="nofollow noreferrer noopener" target="_blank">table of contents</a> in the GitLab Flavored Markdown documentation.</p> -<p data-sourcepos="11172:1-11173:58" dir="auto">A table of contents is an unordered list that links to subheadings in the document. -Add either the <code>[[_TOC_]]</code> or </p><ul class="section-nav"> -<li> -<a href="#preliminaries">Preliminaries</a><ul> -<li><a href="#characters-and-lines">Characters and lines</a></li> -<li><a href="#tabs">Tabs</a></li> -<li><a href="#insecure-characters">Insecure characters</a></li> -</ul> -</li> -<li> -<a href="#blocks-and-inlines">Blocks and inlines</a><ul> -<li><a href="#precedence">Precedence</a></li> -<li><a href="#container-blocks-and-leaf-blocks">Container blocks and leaf blocks</a></li> -</ul> -</li> -<li> -<a href="#leaf-blocks">Leaf blocks</a><ul> -<li><a href="#thematic-breaks">Thematic breaks</a></li> -<li><a href="#atx-headings">ATX headings</a></li> -<li><a href="#setext-headings">Setext headings</a></li> -<li><a href="#indented-code-blocks">Indented code blocks</a></li> -<li><a href="#fenced-code-blocks">Fenced code blocks</a></li> -<li><a href="#html-blocks">HTML blocks</a></li> -<li><a href="#link-reference-definitions">Link reference definitions</a></li> -<li><a href="#paragraphs">Paragraphs</a></li> -<li><a href="#blank-lines">Blank lines</a></li> -<li><a href="#tables-extension">Tables (extension)</a></li> -</ul> -</li> -<li> -<a href="#container-blocks">Container blocks</a><ul> -<li><a href="#block-quotes">Block quotes</a></li> -<li> -<a href="#list-items">List items</a><ul><li><a href="#motivation">Motivation</a></li></ul> -</li> -<li><a href="#task-list-items-extension">Task list items (extension)</a></li> -<li><a href="#lists">Lists</a></li> -</ul> -</li> -<li> -<a href="#inlines">Inlines</a><ul> -<li><a href="#backslash-escapes">Backslash escapes</a></li> -<li><a href="#entity-and-numeric-character-references">Entity and numeric character references</a></li> -<li><a href="#code-spans">Code spans</a></li> -<li><a href="#emphasis-and-strong-emphasis">Emphasis and strong emphasis</a></li> -<li><a href="#strikethrough-extension">Strikethrough (extension)</a></li> -<li><a href="#links">Links</a></li> -<li><a href="#images">Images</a></li> -<li><a href="#autolinks">Autolinks</a></li> -<li><a href="#autolinks-extension">Autolinks (extension)</a></li> -<li><a href="#raw-html">Raw HTML</a></li> -<li><a href="#disallowed-raw-html-extension">Disallowed Raw HTML (extension)</a></li> -<li><a href="#hard-line-breaks">Hard line breaks</a></li> -<li><a href="#soft-line-breaks">Soft line breaks</a></li> -<li><a href="#textual-content">Textual content</a></li> -</ul> -</li> -<li> -<a href="#gitlab-official-specification-markdown">GitLab Official Specification Markdown</a><ul> -<li><a href="#footnotes">Footnotes</a></li> -<li><a href="#task-list-items">Task list items</a></li> -<li><a href="#front-matter">Front matter</a></li> -<li><a href="#table-of-contents">Table of contents</a></li> -</ul> -</li> -<li> -<a href="#gitlab-internal-extension-markdown">GitLab Internal Extension Markdown</a><ul> -<li><a href="#audio">Audio</a></li> -<li><a href="#video">Video</a></li> -<li><a href="#markdown-preview-api-request-overrides">Markdown Preview API Request Overrides</a></li> -</ul> -</li> -</ul> tag on its own line. +<p data-sourcepos="13902:1-13906:23" dir="auto">NOTE: Because of this bug (<a href="https://gitlab.com/gitlab-org/gitlab/-/issues/359077" rel="nofollow noreferrer noopener" target="_blank">https://gitlab.com/gitlab-org/gitlab/-/issues/359077</a>), +we cannot actually include the <code>TOC</code> tag with single brackets in backticks +in this Markdown document, otherwise it would render a table of contents inline +right here. So, it's been switched to <code>[</code> + <code>TOC</code> + <code>]</code> instead. This can be reverted +once that bug is fixed.</p> +<p data-sourcepos="13908:1-13909:76" dir="auto">A table of contents is an unordered list that links to subheadings in the document. +Add either the <code>[[_TOC_]]</code> tag or the <code>[</code> + <code>TOC</code> + <code>]</code> tag on its own line.</p> +<div> +<div><a href="#example-684">Example 684</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11175:1-11181:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[TOC]</span> +<pre data-sourcepos="13914:1-13920:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[TOC]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"># Heading 1</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -10062,7 +12411,7 @@ Add either the <code>[[_TOC_]]</code> or </p><ul class="section-nav"> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11183:1-11194:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><nav></span> +<pre data-sourcepos="13922:1-13933:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><nav></span> <span id="LC2" class="line" lang="plaintext"> <ul></span> <span id="LC3" class="line" lang="plaintext"> <li><a href="#heading-1">Heading 1</a></li></span> <span id="LC4" class="line" lang="plaintext"> <ul></span> @@ -10074,8 +12423,11 @@ Add either the <code>[[_TOC_]]</code> or </p><ul class="section-nav"> <span id="LC10" class="line" lang="plaintext"><h2>Heading 2</h2></span></code></pre> <copy-code></copy-code> </div> +</div> +<div> +<div><a href="#example-685">Example 685</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11196:1-11202:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[[_TOC_]]</span> +<pre data-sourcepos="13939:1-13945:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[[_TOC_]]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"># Heading 1</span> <span id="LC4" class="line" lang="plaintext"></span> @@ -10083,7 +12435,7 @@ Add either the <code>[[_TOC_]]</code> or </p><ul class="section-nav"> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11204:1-11215:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><nav></span> +<pre data-sourcepos="13947:1-13958:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><nav></span> <span id="LC2" class="line" lang="plaintext"> <ul></span> <span id="LC3" class="line" lang="plaintext"> <li><a href="#heading-1">Heading 1</a></li></span> <span id="LC4" class="line" lang="plaintext"> <ul></span> @@ -10095,10 +12447,13 @@ Add either the <code>[[_TOC_]]</code> or </p><ul class="section-nav"> <span id="LC10" class="line" lang="plaintext"><h2>Heading 2</h2></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="11217:1-11218:5" dir="auto">A table of contents is a block element. It should preceded and followed by a blank +</div> +<p data-sourcepos="13961:1-13962:5" dir="auto">A table of contents is a block element. It should preceded and followed by a blank line.</p> +<div> +<div><a href="#example-686">Example 686</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11220:1-11226:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[[_TOC_]]</span> +<pre data-sourcepos="13967:1-13973:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[[_TOC_]]</span> <span id="LC2" class="line" lang="plaintext">text</span> <span id="LC3" class="line" lang="plaintext"></span> <span id="LC4" class="line" lang="plaintext">text</span> @@ -10106,19 +12461,22 @@ line.</p> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11228:1-11231:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[[<em>TOC</em>]]text</p></span> +<pre data-sourcepos="13975:1-13978:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>[[<em>TOC</em>]]text</p></span> <span id="LC2" class="line" lang="plaintext"><p>text[TOC]</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="11233:1-11233:60" dir="auto">A table of contents can be indented with up to three spaces.</p> +</div> +<p data-sourcepos="13981:1-13981:60" dir="auto">A table of contents can be indented with up to three spaces.</p> +<div> +<div><a href="#example-687">Example 687</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11235:1-11239:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> [[_TOC_]]</span> +<pre data-sourcepos="13986:1-13990:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> [[_TOC_]]</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext"># Heading 1</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11241:1-11248:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><nav></span> +<pre data-sourcepos="13992:1-13999:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><nav></span> <span id="LC2" class="line" lang="plaintext"> <ul></span> <span id="LC3" class="line" lang="plaintext"> <li><a href="#heading-1">Heading 1</a></li></span> <span id="LC4" class="line" lang="plaintext"> </ul></span> @@ -10126,120 +12484,1069 @@ line.</p> <span id="LC6" class="line" lang="plaintext"><h1>Heading 1</h1></span></code></pre> <copy-code></copy-code> </div> -<h1 data-sourcepos="11250:1-11250:36" dir="auto"> +</div> +<h1 data-sourcepos="14002:1-14002:36" dir="auto"> <a id="user-content-gitlab-internal-extension-markdown" class="anchor" href="#gitlab-internal-extension-markdown" aria-hidden="true"></a>GitLab Internal Extension Markdown</h1> -<h2 data-sourcepos="11252:1-11252:8" dir="auto"> +<h2 data-sourcepos="14004:1-14004:8" dir="auto"> <a id="user-content-audio" class="anchor" href="#audio" aria-hidden="true"></a>Audio</h2> -<p data-sourcepos="11254:1-11255:107" dir="auto">See +<p data-sourcepos="14006:1-14007:107" dir="auto">See <a href="https://docs.gitlab.com/ee/user/markdown.html#audio" rel="nofollow noreferrer noopener" target="_blank">audio</a> in the GitLab Flavored Markdown documentation.</p> -<p data-sourcepos="11257:1-11259:63" dir="auto">GLFM renders image elements as an audio player as long as the resource’s file extension is +<p data-sourcepos="14009:1-14011:63" dir="auto">GLFM renders image elements as an audio player as long as the resource’s file extension is one of the following supported audio extensions <code>.mp3</code>, <code>.oga</code>, <code>.ogg</code>, <code>.spx</code>, and <code>.wav</code>. Audio ignore the alternative text part of an image declaration.</p> +<div> +<div><a href="#example-688">Example 688</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11261:1-11263:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![audio](audio.oga "audio title")</span></code></pre> +<pre data-sourcepos="14016:1-14018:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![audio](audio.oga "audio title")</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11265:1-11267:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><audio src="audio.oga" title="audio title"></audio></p></span></code></pre> +<pre data-sourcepos="14020:1-14022:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><audio src="audio.oga" title="audio title"></audio></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="11269:1-11269:41" dir="auto">Reference definitions work audio as well:</p> +</div> +<p data-sourcepos="14025:1-14025:41" dir="auto">Reference definitions work audio as well:</p> +<div> +<div><a href="#example-689">Example 689</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11271:1-11275:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[audio]: audio.oga "audio title"</span> +<pre data-sourcepos="14030:1-14034:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[audio]: audio.oga "audio title"</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">![audio][audio]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11277:1-11279:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><audio src="audio.oga" title="audio title"></audio></p></span></code></pre> +<pre data-sourcepos="14036:1-14038:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><audio src="audio.oga" title="audio title"></audio></p></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="11281:1-11281:8" dir="auto"> +</div> +<h2 data-sourcepos="14041:1-14041:8" dir="auto"> <a id="user-content-video" class="anchor" href="#video" aria-hidden="true"></a>Video</h2> -<p data-sourcepos="11283:1-11284:109" dir="auto">See +<p data-sourcepos="14043:1-14044:109" dir="auto">See <a href="https://docs.gitlab.com/ee/user/markdown.html#videos" rel="nofollow noreferrer noopener" target="_blank">videos</a> in the GitLab Flavored Markdown documentation.</p> -<p data-sourcepos="11286:1-11288:64" dir="auto">GLFM renders image elements as a video player as long as the resource’s file extension is +<p data-sourcepos="14046:1-14048:64" dir="auto">GLFM renders image elements as a video player as long as the resource’s file extension is one of the following supported video extensions <code>.mp4</code>, <code>.m4v</code>, <code>.mov</code>, <code>.webm</code>, and <code>.ogv</code>. Videos ignore the alternative text part of an image declaration.</p> +<div> +<div><a href="#example-690">Example 690</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11291:1-11293:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![video](video.m4v "video title")</span></code></pre> +<pre data-sourcepos="14054:1-14056:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![video](video.m4v "video title")</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11295:1-11297:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><video src="video.m4v" title="video title"></video></p></span></code></pre> +<pre data-sourcepos="14058:1-14060:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><video src="video.m4v" title="video title"></video></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="11299:1-11299:41" dir="auto">Reference definitions work video as well:</p> +</div> +<p data-sourcepos="14063:1-14063:41" dir="auto">Reference definitions work video as well:</p> +<div> +<div><a href="#example-691">Example 691</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11301:1-11305:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[video]: video.mov "video title"</span> +<pre data-sourcepos="14068:1-14072:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[video]: video.mov "video title"</span> <span id="LC2" class="line" lang="plaintext"></span> <span id="LC3" class="line" lang="plaintext">![video][video]</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11307:1-11309:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><video src="video.mov" title="video title"></video></p></span></code></pre> +<pre data-sourcepos="14074:1-14076:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><video src="video.mov" title="video title"></video></p></span></code></pre> <copy-code></copy-code> </div> -<h2 data-sourcepos="11311:1-11311:41" dir="auto"> +</div> +<h2 data-sourcepos="14079:1-14079:41" dir="auto"> <a id="user-content-markdown-preview-api-request-overrides" class="anchor" href="#markdown-preview-api-request-overrides" aria-hidden="true"></a>Markdown Preview API Request Overrides</h2> -<p data-sourcepos="11313:1-11315:42" dir="auto">This section contains examples of all controllers which use <code>PreviewMarkdown</code> module +<p data-sourcepos="14081:1-14083:42" dir="auto">This section contains examples of all controllers which use <code>PreviewMarkdown</code> module and use different <code>markdown_context_params</code>. They exercise the various <code>preview_markdown</code> endpoints via <code>glfm_example_metadata.yml</code>.</p> -<p data-sourcepos="11318:1-11318:75" dir="auto"><code>preview_markdown</code> exercising <code>groups</code> API endpoint and <code>UploadLinkFilter</code>:</p> +<p data-sourcepos="14086:1-14086:75" dir="auto"><code>preview_markdown</code> exercising <code>groups</code> API endpoint and <code>UploadLinkFilter</code>:</p> +<div> +<div><a href="#example-692">Example 692</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11320:1-11322:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[groups-test-file](/uploads/groups-test-file)</span></code></pre> +<pre data-sourcepos="14091:1-14093:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[groups-test-file](/uploads/groups-test-file)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11324:1-11326:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="groups-test-file">groups-test-file</a></p></span></code></pre> +<pre data-sourcepos="14095:1-14097:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="groups-test-file">groups-test-file</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="11328:1-11328:81" dir="auto"><code>preview_markdown</code> exercising <code>projects</code> API endpoint and <code>RepositoryLinkFilter</code>:</p> +</div> +<p data-sourcepos="14100:1-14100:81" dir="auto"><code>preview_markdown</code> exercising <code>projects</code> API endpoint and <code>RepositoryLinkFilter</code>:</p> +<div> +<div><a href="#example-693">Example 693</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11330:1-11332:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[projects-test-file](projects-test-file)</span></code></pre> +<pre data-sourcepos="14105:1-14107:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[projects-test-file](projects-test-file)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11334:1-11336:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="projects-test-file">projects-test-file</a></p></span></code></pre> +<pre data-sourcepos="14109:1-14111:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="projects-test-file">projects-test-file</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="11338:1-11338:83" dir="auto"><code>preview_markdown</code> exercising <code>projects</code> API endpoint and <code>SnippetReferenceFilter</code>:</p> +</div> +<p data-sourcepos="14114:1-14114:83" dir="auto"><code>preview_markdown</code> exercising <code>projects</code> API endpoint and <code>SnippetReferenceFilter</code>:</p> +<div> +<div><a href="#example-694">Example 694</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11340:1-11342:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">This project snippet ID reference IS filtered: $88888</span></code></pre> +<pre data-sourcepos="14119:1-14121:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">This project snippet ID reference IS filtered: $88888</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11344:1-11346:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>This project snippet ID reference IS filtered: $88888</p></span></code></pre> +<pre data-sourcepos="14123:1-14125:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>This project snippet ID reference IS filtered: $88888</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="11348:1-11351:50" dir="auto"><code>preview_markdown</code> exercising personal (non-project) <code>snippets</code> API endpoint. This is +</div> +<p data-sourcepos="14128:1-14131:50" dir="auto"><code>preview_markdown</code> exercising personal (non-project) <code>snippets</code> API endpoint. This is only used by the comment field on personal snippets. It has no unique custom markdown extension behavior, and specifically does not render snippet references via <code>SnippetReferenceFilter</code>, even if the ID is valid.</p> +<div> +<div><a href="#example-695">Example 695</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11353:1-11355:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">This personal snippet ID reference is not filtered: $99999</span></code></pre> +<pre data-sourcepos="14136:1-14138:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">This personal snippet ID reference is not filtered: $99999</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11357:1-11359:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>This personal snippet ID reference is not filtered: $99999</p></span></code></pre> +<pre data-sourcepos="14140:1-14142:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p>This personal snippet ID reference is not filtered: $99999</p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="11361:1-11361:80" dir="auto"><code>preview_markdown</code> exercising project <code>wikis</code> API endpoint and <code>WikiLinkFilter</code>:</p> +</div> +<p data-sourcepos="14145:1-14145:80" dir="auto"><code>preview_markdown</code> exercising project <code>wikis</code> API endpoint and <code>WikiLinkFilter</code>:</p> +<div> +<div><a href="#example-696">Example 696</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11363:1-11365:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[project-wikis-test-file](project-wikis-test-file)</span></code></pre> +<pre data-sourcepos="14150:1-14152:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[project-wikis-test-file](project-wikis-test-file)</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11367:1-11369:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="project-wikis-test-file">project-wikis-test-file</a></p></span></code></pre> +<pre data-sourcepos="14154:1-14156:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="project-wikis-test-file">project-wikis-test-file</a></p></span></code></pre> <copy-code></copy-code> </div> -<p data-sourcepos="11371:1-11372:63" dir="auto"><code>preview_markdown</code> exercising group <code>wikis</code> API endpoint and <code>WikiLinkFilter</code>. This example +</div> +<p data-sourcepos="14159:1-14160:63" dir="auto"><code>preview_markdown</code> exercising group <code>wikis</code> API endpoint and <code>WikiLinkFilter</code>. This example also requires an EE license enabling the <code>group_wikis</code> feature:</p> +<div> +<div><a href="#example-697">Example 697</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14165:1-14167:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[group-wikis-test-file](group-wikis-test-file)</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14169:1-14171:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="group-wikis-test-file">group-wikis-test-file</a></p></span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h2 data-sourcepos="14174:1-14174:34" dir="auto"> +<a id="user-content-migrated-golden-master-examples" class="anchor" href="#migrated-golden-master-examples" aria-hidden="true"></a>Migrated golden master examples</h2> +<h3 data-sourcepos="14176:1-14176:30" dir="auto"> +<a id="user-content-attachment_image_for_group" class="anchor" href="#attachment_image_for_group" aria-hidden="true"></a>attachment_image_for_group</h3> +<div> +<div><a href="#example-698">Example 698</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14181:1-14183:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png)</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14185:1-14187:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14190:1-14190:32" dir="auto"> +<a id="user-content-attachment_image_for_project" class="anchor" href="#attachment_image_for_project" aria-hidden="true"></a>attachment_image_for_project</h3> +<div> +<div><a href="#example-699">Example 699</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14195:1-14197:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png)</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14199:1-14201:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14204:1-14204:37" dir="auto"> +<a id="user-content-attachment_image_for_project_wiki" class="anchor" href="#attachment_image_for_project_wiki" aria-hidden="true"></a>attachment_image_for_project_wiki</h3> +<div> +<div><a href="#example-700">Example 700</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14209:1-14211:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![test-file](test-file.png)</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14213:1-14215:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14218:1-14218:29" dir="auto"> +<a id="user-content-attachment_link_for_group" class="anchor" href="#attachment_link_for_group" aria-hidden="true"></a>attachment_link_for_group</h3> +<div> +<div><a href="#example-701">Example 701</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14223:1-14225:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip)</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14227:1-14229:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14232:1-14232:31" dir="auto"> +<a id="user-content-attachment_link_for_project" class="anchor" href="#attachment_link_for_project" aria-hidden="true"></a>attachment_link_for_project</h3> +<div> +<div><a href="#example-702">Example 702</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14237:1-14239:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip)</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14241:1-14243:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14246:1-14246:36" dir="auto"> +<a id="user-content-attachment_link_for_project_wiki" class="anchor" href="#attachment_link_for_project_wiki" aria-hidden="true"></a>attachment_link_for_project_wiki</h3> +<div> +<div><a href="#example-703">Example 703</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14251:1-14253:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[test-file](test-file.zip)</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14255:1-14257:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14260:1-14260:34" dir="auto"> +<a id="user-content-attachment_link_for_group_wiki" class="anchor" href="#attachment_link_for_group_wiki" aria-hidden="true"></a>attachment_link_for_group_wiki</h3> +<div> +<div><a href="#example-704">Example 704</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14265:1-14267:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[test-file](test-file.zip)</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14269:1-14271:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14274:1-14274:9" dir="auto"> +<a id="user-content-audio-1" class="anchor" href="#audio-1" aria-hidden="true"></a>audio</h3> +<div> +<div><a href="#example-705">Example 705</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14279:1-14281:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![Sample Audio](https://gitlab.com/gitlab.mp3)</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14283:1-14285:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14288:1-14288:28" dir="auto"> +<a id="user-content-audio_and_video_in_lists" class="anchor" href="#audio_and_video_in_lists" aria-hidden="true"></a>audio_and_video_in_lists</h3> +<div> +<div><a href="#example-706">Example 706</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14293:1-14303:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* ![Sample Audio](https://gitlab.com/1.mp3)</span> +<span id="LC2" class="line" lang="plaintext">* ![Sample Video](https://gitlab.com/2.mp4)</span> +<span id="LC3" class="line" lang="plaintext"></span> +<span id="LC4" class="line" lang="plaintext">1. ![Sample Video](https://gitlab.com/1.mp4)</span> +<span id="LC5" class="line" lang="plaintext">2. ![Sample Audio](https://gitlab.com/2.mp3)</span> +<span id="LC6" class="line" lang="plaintext"></span> +<span id="LC7" class="line" lang="plaintext">* [x] ![Sample Audio](https://gitlab.com/1.mp3)</span> +<span id="LC8" class="line" lang="plaintext">* [x] ![Sample Audio](https://gitlab.com/2.mp3)</span> +<span id="LC9" class="line" lang="plaintext">* [x] ![Sample Video](https://gitlab.com/3.mp4)</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14305:1-14307:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14310:1-14310:14" dir="auto"> +<a id="user-content-blockquote" class="anchor" href="#blockquote" aria-hidden="true"></a>blockquote</h3> +<div> +<div><a href="#example-707">Example 707</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14315:1-14319:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">> This is a blockquote</span> +<span id="LC2" class="line" lang="plaintext">></span> +<span id="LC3" class="line" lang="plaintext">> This is another one</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14321:1-14323:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14326:1-14326:8" dir="auto"> +<a id="user-content-bold" class="anchor" href="#bold" aria-hidden="true"></a>bold</h3> +<div> +<div><a href="#example-708">Example 708</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14331:1-14333:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**bold**</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14335:1-14337:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14340:1-14340:23" dir="auto"> +<a id="user-content-bullet_list_style_1" class="anchor" href="#bullet_list_style_1" aria-hidden="true"></a>bullet_list_style_1</h3> +<div> +<div><a href="#example-709">Example 709</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14345:1-14349:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* list item 1</span> +<span id="LC2" class="line" lang="plaintext">* list item 2</span> +<span id="LC3" class="line" lang="plaintext"> * embedded list item 3</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14351:1-14353:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14356:1-14356:23" dir="auto"> +<a id="user-content-bullet_list_style_2" class="anchor" href="#bullet_list_style_2" aria-hidden="true"></a>bullet_list_style_2</h3> +<div> +<div><a href="#example-710">Example 710</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14361:1-14365:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- list item 1</span> +<span id="LC2" class="line" lang="plaintext">- list item 2</span> +<span id="LC3" class="line" lang="plaintext"> * embedded list item 3</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14367:1-14369:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14372:1-14372:23" dir="auto"> +<a id="user-content-bullet_list_style_3" class="anchor" href="#bullet_list_style_3" aria-hidden="true"></a>bullet_list_style_3</h3> +<div> +<div><a href="#example-711">Example 711</a></div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11374:1-11376:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[group-wikis-test-file](group-wikis-test-file)</span></code></pre> +<pre data-sourcepos="14377:1-14381:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">+ list item 1</span> +<span id="LC2" class="line" lang="plaintext">+ list item 2</span> +<span id="LC3" class="line" lang="plaintext"> - embedded list item 3</span></code></pre> <copy-code></copy-code> </div> <div class="gl-relative markdown-code-block js-markdown-code"> -<pre data-sourcepos="11378:1-11380:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><a href="group-wikis-test-file">group-wikis-test-file</a></p></span></code></pre> +<pre data-sourcepos="14383:1-14385:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> <copy-code></copy-code> </div> +</div> +<h3 data-sourcepos="14388:1-14388:25" dir="auto"> +<a id="user-content-code_block_javascript" class="anchor" href="#code_block_javascript" aria-hidden="true"></a>code_block_javascript</h3> +<div> +<div><a href="#example-712">Example 712</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14393:1-14397:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```javascript</span> +<span id="LC2" class="line" lang="plaintext"> console.log('hello world')</span> +<span id="LC3" class="line" lang="plaintext">```</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14399:1-14401:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14404:1-14404:24" dir="auto"> +<a id="user-content-code_block_plaintext" class="anchor" href="#code_block_plaintext" aria-hidden="true"></a>code_block_plaintext</h3> +<div> +<div><a href="#example-713">Example 713</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14409:1-14413:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span> +<span id="LC2" class="line" lang="plaintext"> plaintext</span> +<span id="LC3" class="line" lang="plaintext">```</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14415:1-14417:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14420:1-14420:22" dir="auto"> +<a id="user-content-code_block_unknown" class="anchor" href="#code_block_unknown" aria-hidden="true"></a>code_block_unknown</h3> +<div> +<div><a href="#example-714">Example 714</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14425:1-14429:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```foobar</span> +<span id="LC2" class="line" lang="plaintext"> custom_language = >> this <<</span> +<span id="LC3" class="line" lang="plaintext">```</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14431:1-14433:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14436:1-14436:15" dir="auto"> +<a id="user-content-color_chips" class="anchor" href="#color_chips" aria-hidden="true"></a>color_chips</h3> +<div> +<div><a href="#example-715">Example 715</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14441:1-14451:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- `#F00`</span> +<span id="LC2" class="line" lang="plaintext">- `#F00A`</span> +<span id="LC3" class="line" lang="plaintext">- `#FF0000`</span> +<span id="LC4" class="line" lang="plaintext">- `#FF0000AA`</span> +<span id="LC5" class="line" lang="plaintext">- `RGB(0,255,0)`</span> +<span id="LC6" class="line" lang="plaintext">- `RGB(0%,100%,0%)`</span> +<span id="LC7" class="line" lang="plaintext">- `RGBA(0,255,0,0.3)`</span> +<span id="LC8" class="line" lang="plaintext">- `HSL(540,70%,50%)`</span> +<span id="LC9" class="line" lang="plaintext">- `HSLA(540,70%,50%,0.3)`</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14453:1-14455:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14458:1-14458:20" dir="auto"> +<a id="user-content-description_list" class="anchor" href="#description_list" aria-hidden="true"></a>description_list</h3> +<div> +<div><a href="#example-716">Example 716</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14463:1-14480:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><dl></span> +<span id="LC2" class="line" lang="plaintext"><dt>Frog</dt></span> +<span id="LC3" class="line" lang="plaintext"><dd>Wet green thing</dd></span> +<span id="LC4" class="line" lang="plaintext"><dt>Rabbit</dt></span> +<span id="LC5" class="line" lang="plaintext"><dd>Warm fluffy thing</dd></span> +<span id="LC6" class="line" lang="plaintext"><dt>Punt</dt></span> +<span id="LC7" class="line" lang="plaintext"><dd>Kick a ball</dd></span> +<span id="LC8" class="line" lang="plaintext"><dd>Take a bet</dd></span> +<span id="LC9" class="line" lang="plaintext"><dt>Color</dt></span> +<span id="LC10" class="line" lang="plaintext"><dt>Colour</dt></span> +<span id="LC11" class="line" lang="plaintext"><dd></span> +<span id="LC12" class="line" lang="plaintext"></span> +<span id="LC13" class="line" lang="plaintext">Any hue except _white_ or **black**</span> +<span id="LC14" class="line" lang="plaintext"></span> +<span id="LC15" class="line" lang="plaintext"></dd></span> +<span id="LC16" class="line" lang="plaintext"></dl></span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14482:1-14484:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14487:1-14487:11" dir="auto"> +<a id="user-content-details" class="anchor" href="#details" aria-hidden="true"></a>details</h3> +<div> +<div><a href="#example-717">Example 717</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14492:1-14500:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><details></span> +<span id="LC2" class="line" lang="plaintext"><summary>This is the visible summary of the collapsible section</summary></span> +<span id="LC3" class="line" lang="plaintext"></span> +<span id="LC4" class="line" lang="plaintext">1. collapsed markdown</span> +<span id="LC5" class="line" lang="plaintext">2. more collapsed markdown</span> +<span id="LC6" class="line" lang="plaintext"></span> +<span id="LC7" class="line" lang="plaintext"></details></span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14502:1-14504:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14507:1-14507:25" dir="auto"> +<a id="user-content-diagram_kroki_nomnoml" class="anchor" href="#diagram_kroki_nomnoml" aria-hidden="true"></a>diagram_kroki_nomnoml</h3> +<div> +<div><a href="#example-718">Example 718</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14512:1-14524:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```nomnoml</span> +<span id="LC2" class="line" lang="plaintext"> #stroke: #a86128</span> +<span id="LC3" class="line" lang="plaintext"> [<frame>Decorator pattern|</span> +<span id="LC4" class="line" lang="plaintext"> [<abstract>Component||+ operation()]</span> +<span id="LC5" class="line" lang="plaintext"> [Client] depends --> [Component]</span> +<span id="LC6" class="line" lang="plaintext"> [Decorator|- next: Component]</span> +<span id="LC7" class="line" lang="plaintext"> [Decorator] decorates -- [ConcreteComponent]</span> +<span id="LC8" class="line" lang="plaintext"> [Component] <:- [Decorator]</span> +<span id="LC9" class="line" lang="plaintext"> [Component] <:- [ConcreteComponent]</span> +<span id="LC10" class="line" lang="plaintext"> ]</span> +<span id="LC11" class="line" lang="plaintext">```</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14526:1-14528:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14531:1-14531:20" dir="auto"> +<a id="user-content-diagram_plantuml" class="anchor" href="#diagram_plantuml" aria-hidden="true"></a>diagram_plantuml</h3> +<div> +<div><a href="#example-719">Example 719</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14536:1-14544:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```plantuml</span> +<span id="LC2" class="line" lang="plaintext"> Alice -> Bob: Authentication Request</span> +<span id="LC3" class="line" lang="plaintext"> Bob --> Alice: Authentication Response</span> +<span id="LC4" class="line" lang="plaintext"></span> +<span id="LC5" class="line" lang="plaintext"> Alice -> Bob: Another authentication Request</span> +<span id="LC6" class="line" lang="plaintext"> Alice <-- Bob: Another authentication Response</span> +<span id="LC7" class="line" lang="plaintext">```</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14546:1-14548:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14551:1-14551:28" dir="auto"> +<a id="user-content-diagram_plantuml_unicode" class="anchor" href="#diagram_plantuml_unicode" aria-hidden="true"></a>diagram_plantuml_unicode</h3> +<div> +<div><a href="#example-720">Example 720</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14556:1-14560:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```plantuml</span> +<span id="LC2" class="line" lang="plaintext">A -> B : Text with norwegian characters: æøå</span> +<span id="LC3" class="line" lang="plaintext">```</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14562:1-14564:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14567:1-14567:7" dir="auto"> +<a id="user-content-div" class="anchor" href="#div" aria-hidden="true"></a>div</h3> +<div> +<div><a href="#example-721">Example 721</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14572:1-14579:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><div>plain text</div></span> +<span id="LC2" class="line" lang="plaintext"><div></span> +<span id="LC3" class="line" lang="plaintext"></span> +<span id="LC4" class="line" lang="plaintext">just a plain ol' div, not much to _expect_!</span> +<span id="LC5" class="line" lang="plaintext"></span> +<span id="LC6" class="line" lang="plaintext"></div></span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14581:1-14583:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14586:1-14586:9" dir="auto"> +<a id="user-content-emoji" class="anchor" href="#emoji" aria-hidden="true"></a>emoji</h3> +<div> +<div><a href="#example-722">Example 722</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14591:1-14593:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">:sparkles: :heart: :100:</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14595:1-14597:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14600:1-14600:12" dir="auto"> +<a id="user-content-emphasis" class="anchor" href="#emphasis" aria-hidden="true"></a>emphasis</h3> +<div> +<div><a href="#example-723">Example 723</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14605:1-14607:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_emphasized text_</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14609:1-14611:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14614:1-14614:10" dir="auto"> +<a id="user-content-figure" class="anchor" href="#figure" aria-hidden="true"></a>figure</h3> +<div> +<div><a href="#example-724">Example 724</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14619:1-14636:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><figure></span> +<span id="LC2" class="line" lang="plaintext"></span> +<span id="LC3" class="line" lang="plaintext">![Elephant at sunset](elephant-sunset.jpg)</span> +<span id="LC4" class="line" lang="plaintext"></span> +<span id="LC5" class="line" lang="plaintext"><figcaption>An elephant at sunset</figcaption></span> +<span id="LC6" class="line" lang="plaintext"></figure></span> +<span id="LC7" class="line" lang="plaintext"><figure></span> +<span id="LC8" class="line" lang="plaintext"></span> +<span id="LC9" class="line" lang="plaintext">![A crocodile wearing crocs](croc-crocs.jpg)</span> +<span id="LC10" class="line" lang="plaintext"></span> +<span id="LC11" class="line" lang="plaintext"><figcaption></span> +<span id="LC12" class="line" lang="plaintext"></span> +<span id="LC13" class="line" lang="plaintext">A crocodile wearing _crocs_!</span> +<span id="LC14" class="line" lang="plaintext"></span> +<span id="LC15" class="line" lang="plaintext"></figcaption></span> +<span id="LC16" class="line" lang="plaintext"></figure></span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14638:1-14640:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14643:1-14643:13" dir="auto"> +<a id="user-content-footnotes-1" class="anchor" href="#footnotes-1" aria-hidden="true"></a>footnotes</h3> +<div> +<div><a href="#example-725">Example 725</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14648:1-14656:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">A footnote reference tag looks like this: [^1]</span> +<span id="LC2" class="line" lang="plaintext"></span> +<span id="LC3" class="line" lang="plaintext">This reference tag is a mix of letters and numbers. [^footnote]</span> +<span id="LC4" class="line" lang="plaintext"></span> +<span id="LC5" class="line" lang="plaintext">[^1]: This is the text inside a footnote.</span> +<span id="LC6" class="line" lang="plaintext"></span> +<span id="LC7" class="line" lang="plaintext">[^footnote]: This is another footnote.</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14658:1-14660:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14663:1-14663:20" dir="auto"> +<a id="user-content-frontmatter_json" class="anchor" href="#frontmatter_json" aria-hidden="true"></a>frontmatter_json</h3> +<div> +<div><a href="#example-726">Example 726</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14668:1-14674:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">;;;</span> +<span id="LC2" class="line" lang="plaintext">{</span> +<span id="LC3" class="line" lang="plaintext"> "title": "Page title"</span> +<span id="LC4" class="line" lang="plaintext">}</span> +<span id="LC5" class="line" lang="plaintext">;;;</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14676:1-14678:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14681:1-14681:20" dir="auto"> +<a id="user-content-frontmatter_toml" class="anchor" href="#frontmatter_toml" aria-hidden="true"></a>frontmatter_toml</h3> +<div> +<div><a href="#example-727">Example 727</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14686:1-14690:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">+++</span> +<span id="LC2" class="line" lang="plaintext">title = "Page title"</span> +<span id="LC3" class="line" lang="plaintext">+++</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14692:1-14694:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14697:1-14697:20" dir="auto"> +<a id="user-content-frontmatter_yaml" class="anchor" href="#frontmatter_yaml" aria-hidden="true"></a>frontmatter_yaml</h3> +<div> +<div><a href="#example-728">Example 728</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14702:1-14706:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">---</span> +<span id="LC2" class="line" lang="plaintext">title: Page title</span> +<span id="LC3" class="line" lang="plaintext">---</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14708:1-14710:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14713:1-14713:14" dir="auto"> +<a id="user-content-hard_break" class="anchor" href="#hard_break" aria-hidden="true"></a>hard_break</h3> +<div> +<div><a href="#example-729">Example 729</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14718:1-14721:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">This is a line after a\</span> +<span id="LC2" class="line" lang="plaintext">hard break</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14723:1-14725:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14728:1-14728:12" dir="auto"> +<a id="user-content-headings" class="anchor" href="#headings" aria-hidden="true"></a>headings</h3> +<div> +<div><a href="#example-730">Example 730</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14733:1-14745:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># Heading 1</span> +<span id="LC2" class="line" lang="plaintext"></span> +<span id="LC3" class="line" lang="plaintext">## Heading 2</span> +<span id="LC4" class="line" lang="plaintext"></span> +<span id="LC5" class="line" lang="plaintext">### Heading 3</span> +<span id="LC6" class="line" lang="plaintext"></span> +<span id="LC7" class="line" lang="plaintext">#### Heading 4</span> +<span id="LC8" class="line" lang="plaintext"></span> +<span id="LC9" class="line" lang="plaintext">##### Heading 5</span> +<span id="LC10" class="line" lang="plaintext"></span> +<span id="LC11" class="line" lang="plaintext">###### Heading 6</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14747:1-14749:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14752:1-14752:19" dir="auto"> +<a id="user-content-horizontal_rule" class="anchor" href="#horizontal_rule" aria-hidden="true"></a>horizontal_rule</h3> +<div> +<div><a href="#example-731">Example 731</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14757:1-14759:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">---</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14761:1-14763:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14766:1-14766:14" dir="auto"> +<a id="user-content-html_marks" class="anchor" href="#html_marks" aria-hidden="true"></a>html_marks</h3> +<div> +<div><a href="#example-732">Example 732</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14771:1-14787:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* Content editor is ~~great~~<ins>amazing</ins>.</span> +<span id="LC2" class="line" lang="plaintext">* If the changes <abbr title="Looks good to merge">LGTM</abbr>, please <abbr title="Merge when pipeline succeeds">MWPS</abbr>.</span> +<span id="LC3" class="line" lang="plaintext">* The English song <q>Oh I do like to be beside the seaside</q> looks like this in Hebrew: <span dir="rtl">אה, אני אוהב להיות ליד חוף הים</span>. In the computer's memory, this is stored as <bdo dir="ltr">אה, אני אוהב להיות ליד חוף הים</bdo>.</span> +<span id="LC4" class="line" lang="plaintext">* <cite>The Scream</cite> by Edvard Munch. Painted in 1893.</span> +<span id="LC5" class="line" lang="plaintext">* <dfn>HTML</dfn> is the standard markup language for creating web pages.</span> +<span id="LC6" class="line" lang="plaintext">* Do not forget to buy <mark>milk</mark> today.</span> +<span id="LC7" class="line" lang="plaintext">* This is a paragraph and <small>smaller text goes here</small>.</span> +<span id="LC8" class="line" lang="plaintext">* The concert starts at <time datetime="20:00">20:00</time> and you'll be able to enjoy the band for at least <time datetime="PT2H30M">2h 30m</time>.</span> +<span id="LC9" class="line" lang="plaintext">* Press <kbd>Ctrl</kbd> + <kbd>C</kbd> to copy text (Windows).</span> +<span id="LC10" class="line" lang="plaintext">* WWF's goal is to: <q>Build a future where people live in harmony with nature.</q> We hope they succeed.</span> +<span id="LC11" class="line" lang="plaintext">* The error occurred was: <samp>Keyboard not found. Press F1 to continue.</samp></span> +<span id="LC12" class="line" lang="plaintext">* The area of a triangle is: 1/2 x <var>b</var> x <var>h</var>, where <var>b</var> is the base, and <var>h</var> is the vertical height.</span> +<span id="LC13" class="line" lang="plaintext">* <ruby>漢<rt>ㄏㄢˋ</rt></ruby></span> +<span id="LC14" class="line" lang="plaintext">* C<sub>7</sub>H<sub>16</sub> + O<sub>2</sub> → CO<sub>2</sub> + H<sub>2</sub>O</span> +<span id="LC15" class="line" lang="plaintext">* The **Pythagorean theorem** is often expressed as <var>a<sup>2</sup></var> + <var>b<sup>2</sup></var> = <var>c<sup>2</sup></var></span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14789:1-14791:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14794:1-14794:9" dir="auto"> +<a id="user-content-image" class="anchor" href="#image" aria-hidden="true"></a>image</h3> +<div> +<div><a href="#example-733">Example 733</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14799:1-14801:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![alt text](https://gitlab.com/logo.png)</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14803:1-14805:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14808:1-14808:15" dir="auto"> +<a id="user-content-inline_code" class="anchor" href="#inline_code" aria-hidden="true"></a>inline_code</h3> +<div> +<div><a href="#example-734">Example 734</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14813:1-14815:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`code`</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14817:1-14819:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14822:1-14822:15" dir="auto"> +<a id="user-content-inline_diff" class="anchor" href="#inline_diff" aria-hidden="true"></a>inline_diff</h3> +<div> +<div><a href="#example-735">Example 735</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14827:1-14830:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* {-deleted-}</span> +<span id="LC2" class="line" lang="plaintext">* {+added+}</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14832:1-14834:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14837:1-14837:9" dir="auto"> +<a id="user-content-label" class="anchor" href="#label" aria-hidden="true"></a>label</h3> +<div> +<div><a href="#example-736">Example 736</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14842:1-14844:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~bug</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14846:1-14848:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14851:1-14851:8" dir="auto"> +<a id="user-content-link" class="anchor" href="#link" aria-hidden="true"></a>link</h3> +<div> +<div><a href="#example-737">Example 737</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14856:1-14858:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[GitLab](https://gitlab.com)</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14860:1-14862:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14865:1-14865:8" dir="auto"> +<a id="user-content-math" class="anchor" href="#math" aria-hidden="true"></a>math</h3> +<div> +<div><a href="#example-738">Example 738</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14870:1-14878:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">This math is inline $`a^2+b^2=c^2`$.</span> +<span id="LC2" class="line" lang="plaintext"></span> +<span id="LC3" class="line" lang="plaintext">This is on a separate line:</span> +<span id="LC4" class="line" lang="plaintext"></span> +<span id="LC5" class="line" lang="plaintext">```math</span> +<span id="LC6" class="line" lang="plaintext">a^2+b^2=c^2</span> +<span id="LC7" class="line" lang="plaintext">```</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14880:1-14882:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14885:1-14885:16" dir="auto"> +<a id="user-content-ordered_list" class="anchor" href="#ordered_list" aria-hidden="true"></a>ordered_list</h3> +<div> +<div><a href="#example-739">Example 739</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14890:1-14894:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. list item 1</span> +<span id="LC2" class="line" lang="plaintext">2. list item 2</span> +<span id="LC3" class="line" lang="plaintext">3. list item 3</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14896:1-14898:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14901:1-14901:33" dir="auto"> +<a id="user-content-ordered_list_with_start_order" class="anchor" href="#ordered_list_with_start_order" aria-hidden="true"></a>ordered_list_with_start_order</h3> +<div> +<div><a href="#example-740">Example 740</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14906:1-14910:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">134. list item 1</span> +<span id="LC2" class="line" lang="plaintext">135. list item 2</span> +<span id="LC3" class="line" lang="plaintext">136. list item 3</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14912:1-14914:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14917:1-14917:21" dir="auto"> +<a id="user-content-ordered_task_list" class="anchor" href="#ordered_task_list" aria-hidden="true"></a>ordered_task_list</h3> +<div> +<div><a href="#example-741">Example 741</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14922:1-14929:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. [x] hello</span> +<span id="LC2" class="line" lang="plaintext">2. [x] world</span> +<span id="LC3" class="line" lang="plaintext">3. [ ] example</span> +<span id="LC4" class="line" lang="plaintext"> 1. [ ] of nested</span> +<span id="LC5" class="line" lang="plaintext"> 1. [x] task list</span> +<span id="LC6" class="line" lang="plaintext"> 2. [ ] items</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14931:1-14933:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14936:1-14936:32" dir="auto"> +<a id="user-content-ordered_task_list_with_order" class="anchor" href="#ordered_task_list_with_order" aria-hidden="true"></a>ordered_task_list_with_order</h3> +<div> +<div><a href="#example-742">Example 742</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14941:1-14945:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">4893. [x] hello</span> +<span id="LC2" class="line" lang="plaintext">4894. [x] world</span> +<span id="LC3" class="line" lang="plaintext">4895. [ ] example</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14947:1-14949:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14952:1-14952:30" dir="auto"> +<a id="user-content-reference_for_project_wiki" class="anchor" href="#reference_for_project_wiki" aria-hidden="true"></a>reference_for_project_wiki</h3> +<div> +<div><a href="#example-743">Example 743</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14957:1-14959:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Hi @gfm_user - thank you for reporting this ~"UX bug" (#1) we hope to fix it in %1.1 as part of !1</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14961:1-14963:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14966:1-14966:10" dir="auto"> +<a id="user-content-strike" class="anchor" href="#strike" aria-hidden="true"></a>strike</h3> +<div> +<div><a href="#example-744">Example 744</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14971:1-14973:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~del~~</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14975:1-14977:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14980:1-14980:9" dir="auto"> +<a id="user-content-table" class="anchor" href="#table" aria-hidden="true"></a>table</h3> +<div> +<div><a href="#example-745">Example 745</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14985:1-14992:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| header | header |</span> +<span id="LC2" class="line" lang="plaintext">|--------|--------|</span> +<span id="LC3" class="line" lang="plaintext">| `code` | cell with **bold** |</span> +<span id="LC4" class="line" lang="plaintext">| ~~strike~~ | cell with _italic_ |</span> +<span id="LC5" class="line" lang="plaintext"></span> +<span id="LC6" class="line" lang="plaintext"># content after table</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="14994:1-14996:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="14999:1-14999:21" dir="auto"> +<a id="user-content-table_of_contents" class="anchor" href="#table_of_contents" aria-hidden="true"></a>table_of_contents</h3> +<div> +<div><a href="#example-746">Example 746</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15004:1-15018:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[[_TOC_]]</span> +<span id="LC2" class="line" lang="plaintext"></span> +<span id="LC3" class="line" lang="plaintext"># Lorem</span> +<span id="LC4" class="line" lang="plaintext"></span> +<span id="LC5" class="line" lang="plaintext">Well, that's just like... your opinion.. man.</span> +<span id="LC6" class="line" lang="plaintext"></span> +<span id="LC7" class="line" lang="plaintext">## Ipsum</span> +<span id="LC8" class="line" lang="plaintext"></span> +<span id="LC9" class="line" lang="plaintext">### Dolar</span> +<span id="LC10" class="line" lang="plaintext"></span> +<span id="LC11" class="line" lang="plaintext"># Sit amit</span> +<span id="LC12" class="line" lang="plaintext"></span> +<span id="LC13" class="line" lang="plaintext">### I don't know</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15020:1-15022:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="15025:1-15025:13" dir="auto"> +<a id="user-content-task_list" class="anchor" href="#task_list" aria-hidden="true"></a>task_list</h3> +<div> +<div><a href="#example-747">Example 747</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15030:1-15037:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* [x] hello</span> +<span id="LC2" class="line" lang="plaintext">* [x] world</span> +<span id="LC3" class="line" lang="plaintext">* [ ] example</span> +<span id="LC4" class="line" lang="plaintext"> * [ ] of nested</span> +<span id="LC5" class="line" lang="plaintext"> * [x] task list</span> +<span id="LC6" class="line" lang="plaintext"> * [ ] items</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15039:1-15041:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="15044:1-15044:9" dir="auto"> +<a id="user-content-video-1" class="anchor" href="#video-1" aria-hidden="true"></a>video</h3> +<div> +<div><a href="#example-748">Example 748</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15049:1-15051:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![Sample Video](https://gitlab.com/gitlab.mp4)</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15053:1-15055:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h3 data-sourcepos="15058:1-15058:14" dir="auto"> +<a id="user-content-word_break" class="anchor" href="#word_break" aria-hidden="true"></a>word_break</h3> +<div> +<div><a href="#example-749">Example 749</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15063:1-15065:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Fernstraßen<wbr>bau<wbr>privat<wbr>finanzierungs<wbr>gesetz</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15067:1-15069:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">TODO: Write canonical HTML for this example</span></code></pre> +<copy-code></copy-code> +</div> +</div> +<h2 data-sourcepos="15072:1-15072:19" dir="auto"> +<a id="user-content-image-attributes" class="anchor" href="#image-attributes" aria-hidden="true"></a>Image Attributes</h2> +<p data-sourcepos="15074:1-15076:46" dir="auto">See +<a href="https://docs.gitlab.com/ee/user/markdown.html#change-the-image-dimensions" rel="nofollow noreferrer noopener" target="_blank">Change the image dimensions</a> +in the GitLab Flavored Markdown documentation.</p> +<p data-sourcepos="15078:1-15079:19" dir="auto">The <code>width</code> and <code>height</code> attributes for an image can be specified directly after +the image markdown.</p> +<p data-sourcepos="15081:1-15083:21" dir="auto">General syntax conforms to the +<a href="https://github.com/jgm/commonmark-hs/blob/master/commonmark-extensions/test/attributes.md" rel="nofollow noreferrer noopener" target="_blank">commonmark-hs attribute syntax</a> +where it makes sense.</p> +<div> +<div><a href="#example-750">Example 750</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15088:1-15090:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![](https://gitlab.com/logo.png){width="100" height="100"}</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15092:1-15094:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="https://gitlab.com/logo.png" width="100" height="100"></p></span></code></pre> +<copy-code></copy-code> +</div> +</div> +<p data-sourcepos="15097:1-15097:41" dir="auto"><code>%</code> and <code>px</code> units may also be specified.</p> +<div> +<div><a href="#example-751">Example 751</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15102:1-15104:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![](https://gitlab.com/logo.png){width="100%"}</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15106:1-15108:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="https://gitlab.com/logo.png" width="100%"></p></span></code></pre> +<copy-code></copy-code> +</div> +</div> +<div> +<div><a href="#example-752">Example 752</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15114:1-15116:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![](https://gitlab.com/logo.png){height="100px"}</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15118:1-15120:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="https://gitlab.com/logo.png" height="100px"></p></span></code></pre> +<copy-code></copy-code> +</div> +</div> +<p data-sourcepos="15123:1-15123:46" dir="auto">Whitespace is tolerated around the delimiters:</p> +<div> +<div><a href="#example-753">Example 753</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15128:1-15130:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![](https://gitlab.com/logo.png){ width="100" height="100" }</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15132:1-15134:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="https://gitlab.com/logo.png" width="100" height="100"></p></span></code></pre> +<copy-code></copy-code> +</div> +</div> +<p data-sourcepos="15137:1-15137:54" dir="auto">Attributes must immediately follow the image markdown.</p> +<div> +<div><a href="#example-754">Example 754</a></div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15142:1-15144:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![](https://gitlab.com/logo.png) {width="100" height="100"}</span></code></pre> +<copy-code></copy-code> +</div> +<div class="gl-relative markdown-code-block js-markdown-code"> +<pre data-sourcepos="15146:1-15148:32" lang="plaintext" class="code highlight js-syntax-highlight language-plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"><p><img src="https://gitlab.com/logo.png"> {width="100" height="100"}</p></span></code></pre> +<copy-code></copy-code> +</div> +</div> + +</body> +</html> + diff --git a/glfm_specification/output_example_snapshots/snapshot_spec.md b/glfm_specification/output_example_snapshots/snapshot_spec.md index ed96c36a58a..ccee9c1707e 100644 --- a/glfm_specification/output_example_snapshots/snapshot_spec.md +++ b/glfm_specification/output_example_snapshots/snapshot_spec.md @@ -1,5 +1,5 @@ --- -title: GitLab Flavored Markdown (GLFM) Spec +title: GitLab Flavored Markdown Internal Extensions version: alpha ... # Preliminaries @@ -9803,8 +9803,14 @@ See [table of contents](https://docs.gitlab.com/ee/user/markdown.html#table-of-contents) in the GitLab Flavored Markdown documentation. +NOTE: Because of this bug (https://gitlab.com/gitlab-org/gitlab/-/issues/359077), +we cannot actually include the `TOC` tag with single brackets in backticks +in this Markdown document, otherwise it would render a table of contents inline +right here. So, it's been switched to `[` + `TOC` + `]` instead. This can be reverted +once that bug is fixed. + A table of contents is an unordered list that links to subheadings in the document. -Add either the `[[_TOC_]]` or `[TOC]` tag on its own line. +Add either the `[[_TOC_]]` tag or the `[` + `TOC` + `]` tag on its own line. ```````````````````````````````` example gitlab [TOC] @@ -9984,3 +9990,639 @@ also requires an EE license enabling the `group_wikis` feature: . <p><a href="group-wikis-test-file">group-wikis-test-file</a></p> ```````````````````````````````` + +## Migrated golden master examples + +### attachment_image_for_group + +```````````````````````````````` example gitlab +![test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### attachment_image_for_project + +```````````````````````````````` example gitlab +![test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.png) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### attachment_image_for_project_wiki + +```````````````````````````````` example gitlab +![test-file](test-file.png) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### attachment_link_for_group + +```````````````````````````````` example gitlab +[test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### attachment_link_for_project + +```````````````````````````````` example gitlab +[test-file](/uploads/aa45a38ec2cfe97433281b10bbff042c/test-file.zip) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### attachment_link_for_project_wiki + +```````````````````````````````` example gitlab +[test-file](test-file.zip) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### attachment_link_for_group_wiki + +```````````````````````````````` example gitlab +[test-file](test-file.zip) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### audio + +```````````````````````````````` example gitlab +![Sample Audio](https://gitlab.com/gitlab.mp3) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### audio_and_video_in_lists + +```````````````````````````````` example gitlab +* ![Sample Audio](https://gitlab.com/1.mp3) +* ![Sample Video](https://gitlab.com/2.mp4) + +1. ![Sample Video](https://gitlab.com/1.mp4) +2. ![Sample Audio](https://gitlab.com/2.mp3) + +* [x] ![Sample Audio](https://gitlab.com/1.mp3) +* [x] ![Sample Audio](https://gitlab.com/2.mp3) +* [x] ![Sample Video](https://gitlab.com/3.mp4) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### blockquote + +```````````````````````````````` example gitlab +> This is a blockquote +> +> This is another one +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### bold + +```````````````````````````````` example gitlab +**bold** +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### bullet_list_style_1 + +```````````````````````````````` example gitlab +* list item 1 +* list item 2 + * embedded list item 3 +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### bullet_list_style_2 + +```````````````````````````````` example gitlab +- list item 1 +- list item 2 + * embedded list item 3 +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### bullet_list_style_3 + +```````````````````````````````` example gitlab ++ list item 1 ++ list item 2 + - embedded list item 3 +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### code_block_javascript + +```````````````````````````````` example gitlab +```javascript + console.log('hello world') +``` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### code_block_plaintext + +```````````````````````````````` example gitlab +``` + plaintext +``` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### code_block_unknown + +```````````````````````````````` example gitlab +```foobar + custom_language = >> this << +``` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### color_chips + +```````````````````````````````` example gitlab +- `#F00` +- `#F00A` +- `#FF0000` +- `#FF0000AA` +- `RGB(0,255,0)` +- `RGB(0%,100%,0%)` +- `RGBA(0,255,0,0.3)` +- `HSL(540,70%,50%)` +- `HSLA(540,70%,50%,0.3)` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### description_list + +```````````````````````````````` example gitlab +<dl> +<dt>Frog</dt> +<dd>Wet green thing</dd> +<dt>Rabbit</dt> +<dd>Warm fluffy thing</dd> +<dt>Punt</dt> +<dd>Kick a ball</dd> +<dd>Take a bet</dd> +<dt>Color</dt> +<dt>Colour</dt> +<dd> + +Any hue except _white_ or **black** + +</dd> +</dl> +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### details + +```````````````````````````````` example gitlab +<details> +<summary>This is the visible summary of the collapsible section</summary> + +1. collapsed markdown +2. more collapsed markdown + +</details> +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### diagram_kroki_nomnoml + +```````````````````````````````` example gitlab +```nomnoml + #stroke: #a86128 + [<frame>Decorator pattern| + [<abstract>Component||+ operation()] + [Client] depends --> [Component] + [Decorator|- next: Component] + [Decorator] decorates -- [ConcreteComponent] + [Component] <:- [Decorator] + [Component] <:- [ConcreteComponent] + ] +``` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### diagram_plantuml + +```````````````````````````````` example gitlab +```plantuml + Alice -> Bob: Authentication Request + Bob --> Alice: Authentication Response + + Alice -> Bob: Another authentication Request + Alice <-- Bob: Another authentication Response +``` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### diagram_plantuml_unicode + +```````````````````````````````` example gitlab +```plantuml +A -> B : Text with norwegian characters: æøå +``` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### div + +```````````````````````````````` example gitlab +<div>plain text</div> +<div> + +just a plain ol' div, not much to _expect_! + +</div> +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### emoji + +```````````````````````````````` example gitlab +:sparkles: :heart: :100: +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### emphasis + +```````````````````````````````` example gitlab +_emphasized text_ +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### figure + +```````````````````````````````` example gitlab +<figure> + +![Elephant at sunset](elephant-sunset.jpg) + +<figcaption>An elephant at sunset</figcaption> +</figure> +<figure> + +![A crocodile wearing crocs](croc-crocs.jpg) + +<figcaption> + +A crocodile wearing _crocs_! + +</figcaption> +</figure> +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### footnotes + +```````````````````````````````` example gitlab +A footnote reference tag looks like this: [^1] + +This reference tag is a mix of letters and numbers. [^footnote] + +[^1]: This is the text inside a footnote. + +[^footnote]: This is another footnote. +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### frontmatter_json + +```````````````````````````````` example gitlab +;;; +{ + "title": "Page title" +} +;;; +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### frontmatter_toml + +```````````````````````````````` example gitlab ++++ +title = "Page title" ++++ +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### frontmatter_yaml + +```````````````````````````````` example gitlab +--- +title: Page title +--- +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### hard_break + +```````````````````````````````` example gitlab +This is a line after a\ +hard break +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### headings + +```````````````````````````````` example gitlab +# Heading 1 + +## Heading 2 + +### Heading 3 + +#### Heading 4 + +##### Heading 5 + +###### Heading 6 +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### horizontal_rule + +```````````````````````````````` example gitlab +--- +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### html_marks + +```````````````````````````````` example gitlab +* Content editor is ~~great~~<ins>amazing</ins>. +* If the changes <abbr title="Looks good to merge">LGTM</abbr>, please <abbr title="Merge when pipeline succeeds">MWPS</abbr>. +* The English song <q>Oh I do like to be beside the seaside</q> looks like this in Hebrew: <span dir="rtl">אה, אני אוהב להיות ליד חוף הים</span>. In the computer's memory, this is stored as <bdo dir="ltr">אה, אני אוהב להיות ליד חוף הים</bdo>. +* <cite>The Scream</cite> by Edvard Munch. Painted in 1893. +* <dfn>HTML</dfn> is the standard markup language for creating web pages. +* Do not forget to buy <mark>milk</mark> today. +* This is a paragraph and <small>smaller text goes here</small>. +* The concert starts at <time datetime="20:00">20:00</time> and you'll be able to enjoy the band for at least <time datetime="PT2H30M">2h 30m</time>. +* Press <kbd>Ctrl</kbd> + <kbd>C</kbd> to copy text (Windows). +* WWF's goal is to: <q>Build a future where people live in harmony with nature.</q> We hope they succeed. +* The error occurred was: <samp>Keyboard not found. Press F1 to continue.</samp> +* The area of a triangle is: 1/2 x <var>b</var> x <var>h</var>, where <var>b</var> is the base, and <var>h</var> is the vertical height. +* <ruby>漢<rt>ㄏㄢˋ</rt></ruby> +* C<sub>7</sub>H<sub>16</sub> + O<sub>2</sub> → CO<sub>2</sub> + H<sub>2</sub>O +* The **Pythagorean theorem** is often expressed as <var>a<sup>2</sup></var> + <var>b<sup>2</sup></var> = <var>c<sup>2</sup></var> +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### image + +```````````````````````````````` example gitlab +![alt text](https://gitlab.com/logo.png) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### inline_code + +```````````````````````````````` example gitlab +`code` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### inline_diff + +```````````````````````````````` example gitlab +* {-deleted-} +* {+added+} +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### label + +```````````````````````````````` example gitlab +~bug +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### link + +```````````````````````````````` example gitlab +[GitLab](https://gitlab.com) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### math + +```````````````````````````````` example gitlab +This math is inline $`a^2+b^2=c^2`$. + +This is on a separate line: + +```math +a^2+b^2=c^2 +``` +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### ordered_list + +```````````````````````````````` example gitlab +1. list item 1 +2. list item 2 +3. list item 3 +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### ordered_list_with_start_order + +```````````````````````````````` example gitlab +134. list item 1 +135. list item 2 +136. list item 3 +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### ordered_task_list + +```````````````````````````````` example gitlab +1. [x] hello +2. [x] world +3. [ ] example + 1. [ ] of nested + 1. [x] task list + 2. [ ] items +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### ordered_task_list_with_order + +```````````````````````````````` example gitlab +4893. [x] hello +4894. [x] world +4895. [ ] example +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### reference_for_project_wiki + +```````````````````````````````` example gitlab +Hi @gfm_user - thank you for reporting this ~"UX bug" (#1) we hope to fix it in %1.1 as part of !1 +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### strike + +```````````````````````````````` example gitlab +~~del~~ +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### table + +```````````````````````````````` example gitlab +| header | header | +|--------|--------| +| `code` | cell with **bold** | +| ~~strike~~ | cell with _italic_ | + +# content after table +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### table_of_contents + +```````````````````````````````` example gitlab +[[_TOC_]] + +# Lorem + +Well, that's just like... your opinion.. man. + +## Ipsum + +### Dolar + +# Sit amit + +### I don't know +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### task_list + +```````````````````````````````` example gitlab +* [x] hello +* [x] world +* [ ] example + * [ ] of nested + * [x] task list + * [ ] items +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### video + +```````````````````````````````` example gitlab +![Sample Video](https://gitlab.com/gitlab.mp4) +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +### word_break + +```````````````````````````````` example gitlab +Fernstraßen<wbr>bau<wbr>privat<wbr>finanzierungs<wbr>gesetz +. +TODO: Write canonical HTML for this example +```````````````````````````````` + +## Image Attributes + +See +[Change the image dimensions](https://docs.gitlab.com/ee/user/markdown.html#change-the-image-dimensions) +in the GitLab Flavored Markdown documentation. + +The `width` and `height` attributes for an image can be specified directly after +the image markdown. + +General syntax conforms to the +[commonmark-hs attribute syntax](https://github.com/jgm/commonmark-hs/blob/master/commonmark-extensions/test/attributes.md) +where it makes sense. + +```````````````````````````````` example gitlab +![](https://gitlab.com/logo.png){width="100" height="100"} +. +<p><img src="https://gitlab.com/logo.png" width="100" height="100"></p> +```````````````````````````````` + +`%` and `px` units may also be specified. + +```````````````````````````````` example gitlab +![](https://gitlab.com/logo.png){width="100%"} +. +<p><img src="https://gitlab.com/logo.png" width="100%"></p> +```````````````````````````````` + +```````````````````````````````` example gitlab +![](https://gitlab.com/logo.png){height="100px"} +. +<p><img src="https://gitlab.com/logo.png" height="100px"></p> +```````````````````````````````` + +Whitespace is tolerated around the delimiters: + +```````````````````````````````` example gitlab +![](https://gitlab.com/logo.png){ width="100" height="100" } +. +<p><img src="https://gitlab.com/logo.png" width="100" height="100"></p> +```````````````````````````````` + +Attributes must immediately follow the image markdown. + +```````````````````````````````` example gitlab +![](https://gitlab.com/logo.png) {width="100" height="100"} +. +<p><img src="https://gitlab.com/logo.png"> {width="100" height="100"}</p> +```````````````````````````````` + |