summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-10-27 00:10:35 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-10-27 00:10:35 +0000
commit135dd0646bd1402985d82d99eb1e667a0f695e8b (patch)
tree7e062800b550e3ab36b8d8f9b1270c563aee6f2d
parentf825fd1d881ce077ad868a70fd8d7db6a49e4700 (diff)
downloadgitlab-ce-135dd0646bd1402985d82d99eb1e667a0f695e8b.tar.gz
Add latest changes from gitlab-org/gitlab@master
-rw-r--r--.rubocop_todo/gitlab/json.yml10
-rw-r--r--Gemfile2
-rw-r--r--Gemfile.checksum2
-rw-r--r--Gemfile.lock4
-rw-r--r--app/assets/javascripts/deploy_tokens/components/new_deploy_token.vue8
-rw-r--r--app/assets/javascripts/import_entities/import_projects/index.js2
-rw-r--r--app/assets/javascripts/lazy_loader.js3
-rw-r--r--app/graphql/types/permission_types/ci/runner.rb2
-rw-r--r--app/helpers/icons_helper.rb5
-rw-r--r--app/models/integration.rb28
-rw-r--r--app/services/bulk_imports/lfs_objects_export_service.rb2
-rw-r--r--app/services/ci/pipeline_artifacts/coverage_report_service.rb2
-rw-r--r--app/services/ci/pipeline_artifacts/create_code_quality_mr_diff_report_service.rb4
-rw-r--r--app/services/ci/pipeline_trigger_service.rb2
-rw-r--r--app/services/ci/register_job_service.rb2
-rw-r--r--app/services/clusters/kubernetes/configure_istio_ingress_service.rb112
-rw-r--r--app/services/git/base_hooks_service.rb30
-rw-r--r--app/services/google_cloud/create_service_accounts_service.rb4
-rw-r--r--app/services/google_cloud/setup_cloudsql_instance_service.rb8
-rw-r--r--app/services/merge_requests/add_context_service.rb2
-rw-r--r--app/services/projects/lfs_pointers/lfs_download_link_list_service.rb6
-rw-r--r--app/services/service_ping/submit_service.rb2
-rw-r--r--app/views/import/_githubish_status.html.haml2
-rw-r--r--app/views/layouts/_img_loader.html.haml3
-rw-r--r--app/views/profiles/keys/_form.html.haml6
-rw-r--r--app/views/projects/_last_push.html.haml2
-rw-r--r--app/views/projects/blob/_editor.html.haml4
-rw-r--r--app/views/projects/blob/viewers/_loading.html.haml2
-rw-r--r--app/views/projects/branches/_branch.html.haml10
-rw-r--r--app/views/projects/branches/_panel.html.haml2
-rw-r--r--app/views/projects/branches/index.html.haml5
-rw-r--r--app/views/projects/empty.html.haml2
-rw-r--r--app/views/projects/mirrors/_authentication_method.html.haml4
-rw-r--r--app/views/projects/mirrors/_disabled_mirror_badge.html.haml2
-rw-r--r--app/views/projects/mirrors/_mirror_repos.html.haml4
-rw-r--r--app/views/projects/mirrors/_mirror_repos_form.html.haml2
-rw-r--r--app/views/projects/mirrors/_mirror_repos_list.html.haml10
-rw-r--r--app/views/projects/pipelines/_info.html.haml2
-rw-r--r--app/views/projects/protected_branches/shared/_dropdown.html.haml8
-rw-r--r--app/views/projects/protected_branches/shared/_index.html.haml2
-rw-r--r--app/views/projects/settings/ci_cd/show.html.haml2
-rw-r--r--app/views/projects/snippets/show.html.haml2
-rw-r--r--app/views/shared/empty_states/_snippets.html.haml4
-rw-r--r--app/views/shared/issuable/_sidebar.html.haml2
-rw-r--r--app/views/snippets/show.html.haml2
-rw-r--r--app/workers/cluster_configure_istio_worker.rb9
-rw-r--r--app/workers/run_pipeline_schedule_worker.rb33
-rw-r--r--config/feature_flags/development/refactored_create_pipeline_execution_method.yml8
-rw-r--r--doc/administration/geo/replication/troubleshooting.md2
-rw-r--r--doc/administration/operations/rails_console.md1
-rw-r--r--doc/api/deployments.md8
-rw-r--r--doc/api/feature_flag_user_lists.md8
-rw-r--r--doc/api/feature_flags.md6
-rw-r--r--doc/api/graphql/reference/index.md1
-rw-r--r--doc/ci/pipelines/job_artifacts.md14
-rw-r--r--doc/development/gitlab_flavored_markdown/specification_guide/index.md267
-rw-r--r--doc/user/discussions/index.md5
-rw-r--r--doc/user/group/manage.md2
-rw-r--r--doc/user/infrastructure/iac/troubleshooting.md10
-rw-r--r--doc/user/project/integrations/slack.md1
-rw-r--r--doc/user/project/repository/mirror/index.md1
-rw-r--r--doc/user/project/repository/push_rules.md1
-rw-r--r--doc/user/project/working_with_projects.md3
-rw-r--r--glfm_specification/input/gitlab_flavored_markdown/glfm_internal_extensions.md (renamed from glfm_specification/input/gitlab_flavored_markdown/glfm_internal_extension_examples.md)2
-rw-r--r--glfm_specification/input/gitlab_flavored_markdown/glfm_intro.md3
-rw-r--r--glfm_specification/input/gitlab_flavored_markdown/glfm_official_specification.md (renamed from glfm_specification/input/gitlab_flavored_markdown/glfm_official_specification_examples.md)8
-rw-r--r--glfm_specification/output_example_snapshots/examples_index.yml (renamed from glfm_specification/example_snapshots/examples_index.yml)1390
-rw-r--r--glfm_specification/output_example_snapshots/html.yml (renamed from glfm_specification/example_snapshots/html.yml)0
-rw-r--r--glfm_specification/output_example_snapshots/markdown.yml (renamed from glfm_specification/example_snapshots/markdown.yml)0
-rw-r--r--glfm_specification/output_example_snapshots/prosemirror_json.yml (renamed from glfm_specification/example_snapshots/prosemirror_json.yml)0
-rw-r--r--glfm_specification/output_example_snapshots/snapshot_spec.html (renamed from glfm_specification/output/spec.html)3584
-rw-r--r--glfm_specification/output_example_snapshots/snapshot_spec.md (renamed from glfm_specification/output/spec.txt)346
-rw-r--r--glfm_specification/output_spec/spec.html276
-rw-r--r--glfm_specification/output_spec/spec.txt287
-rw-r--r--qa/qa/page/component/lazy_loader.rb4
-rw-r--r--qa/qa/page/component/wiki.rb2
-rw-r--r--qa/qa/page/file/edit.rb4
-rw-r--r--qa/qa/page/file/form.rb4
-rw-r--r--qa/qa/page/file/shared/editor.rb4
-rw-r--r--qa/qa/page/label/index.rb2
-rw-r--r--qa/qa/page/project/branches/show.rb26
-rw-r--r--qa/qa/page/project/pipeline/show.rb10
-rw-r--r--qa/qa/page/project/settings/mirroring_repositories.rb47
-rw-r--r--qa/qa/page/project/settings/protected_branches.rb6
-rw-r--r--qa/qa/page/project/show.rb14
-rw-r--r--qa/qa/specs/features/api/4_verify/api_variable_inheritance_with_forward_pipeline_variables_spec.rb2
-rw-r--r--qa/qa/specs/features/api/4_verify/cancel_pipeline_when_block_user_spec.rb2
-rw-r--r--qa/qa/specs/features/api/4_verify/file_variable_spec.rb2
-rw-r--r--qa/qa/specs/features/api/4_verify/remove_runner_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_remove_ci_variable_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/ci_variable/custom_variable_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/ci_variable/pipeline_with_protected_variable_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/ci_variable/prefill_variables_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/ci_variable/ui_variable_inheritable_when_forward_pipeline_variables_true_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/ci_variable/ui_variable_non_inheritable_when_forward_pipeline_variables_false_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/pipeline/include_local_config_file_paths_with_wildcard_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/pipeline/include_multiple_files_from_a_project_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/pipeline/locked_artifacts_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/pipeline/merge_mr_when_pipline_is_blocked_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/pipeline/mr_event_rule_pipeline_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/pipeline/parent_child_pipelines_independent_relationship_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/pipeline/pass_dotenv_variables_to_downstream_via_bridge_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_editor_branch_switcher_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_editor_can_create_merge_request_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_editor_tabs_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_with_image_pull_policy_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/pipeline/run_pipeline_via_web_only_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/pipeline/run_pipeline_with_manual_jobs_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/pipeline/trigger_child_pipeline_with_manual_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/pipeline/trigger_matrix_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/pipeline/update_ci_file_with_pipeline_editor_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/runner/register_runner_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/testing/endpoint_coverage_spec.rb2
-rw-r--r--qa/qa/specs/features/browser_ui/4_verify/testing/view_code_coverage_spec.rb2
-rw-r--r--scripts/lib/glfm/constants.rb30
-rw-r--r--scripts/lib/glfm/update_example_snapshots.rb12
-rw-r--r--scripts/lib/glfm/update_specification.rb151
-rw-r--r--scripts/lib/glfm/verify_all_generated_files_are_up_to_date.rb2
-rw-r--r--spec/graphql/types/permission_types/ci/runner_spec.rb2
-rw-r--r--spec/models/integration_spec.rb17
-rw-r--r--spec/requests/api/graphql/ci/runner_spec.rb3
-rw-r--r--spec/scripts/lib/glfm/update_example_snapshots_spec.rb55
-rw-r--r--spec/scripts/lib/glfm/update_specification_spec.rb205
-rw-r--r--spec/scripts/lib/glfm/verify_all_generated_files_are_up_to_date_spec.rb4
-rw-r--r--spec/services/clusters/kubernetes/configure_istio_ingress_service_spec.rb223
-rw-r--r--spec/services/git/base_hooks_service_spec.rb144
-rw-r--r--spec/workers/cluster_configure_istio_worker_spec.rb41
-rw-r--r--spec/workers/run_pipeline_schedule_worker_spec.rb90
129 files changed, 3807 insertions, 3957 deletions
diff --git a/.rubocop_todo/gitlab/json.yml b/.rubocop_todo/gitlab/json.yml
index ec48c04f3ed..799d90f0048 100644
--- a/.rubocop_todo/gitlab/json.yml
+++ b/.rubocop_todo/gitlab/json.yml
@@ -54,16 +54,6 @@ Gitlab/Json:
- 'app/models/merge_request_diff_commit.rb'
- 'app/presenters/packages/composer/packages_presenter.rb'
- 'app/presenters/projects/security/configuration_presenter.rb'
- - 'app/services/bulk_imports/lfs_objects_export_service.rb'
- - 'app/services/ci/pipeline_artifacts/coverage_report_service.rb'
- - 'app/services/ci/pipeline_artifacts/create_code_quality_mr_diff_report_service.rb'
- - 'app/services/ci/pipeline_trigger_service.rb'
- - 'app/services/ci/register_job_service.rb'
- - 'app/services/google_cloud/create_service_accounts_service.rb'
- - 'app/services/google_cloud/setup_cloudsql_instance_service.rb'
- - 'app/services/merge_requests/add_context_service.rb'
- - 'app/services/projects/lfs_pointers/lfs_download_link_list_service.rb'
- - 'app/services/service_ping/submit_service.rb'
- 'app/workers/google_cloud/create_cloudsql_instance_worker.rb'
- 'config/initializers/rack_multipart_patch.rb'
- 'db/migrate/20210305031822_create_dast_site_profile_variables.rb'
diff --git a/Gemfile b/Gemfile
index 056310e591e..7901320f28f 100644
--- a/Gemfile
+++ b/Gemfile
@@ -176,7 +176,7 @@ gem 'typhoeus', '~> 1.4.0' # Used with Elasticsearch to support http keep-alive
# Markdown and HTML processing
gem 'html-pipeline', '~> 2.13.2'
-gem 'deckar01-task_list', '2.3.1'
+gem 'deckar01-task_list', '2.3.2'
gem 'gitlab-markup', '~> 1.8.0'
gem 'github-markup', '~> 1.7.0', require: 'github/markup'
gem 'commonmarker', '~> 0.23.6'
diff --git a/Gemfile.checksum b/Gemfile.checksum
index d3bd3b4045f..c5fad96428c 100644
--- a/Gemfile.checksum
+++ b/Gemfile.checksum
@@ -97,7 +97,7 @@
{"name":"danger-gitlab","version":"8.0.0","platform":"ruby","checksum":"497dd7d0f6513913de651019223d8058cf494df10acbd17de92b175dfa04a3a8"},
{"name":"database_cleaner","version":"1.7.0","platform":"ruby","checksum":"bdf833c197afac7054015bcde2567c3834c366bbfe6a377c30151ca984b32016"},
{"name":"dead_end","version":"3.1.1","platform":"ruby","checksum":"1011df7f7c0149be004e11cbbc37747760227c55305cd902fd3c06e1394b2f5b"},
-{"name":"deckar01-task_list","version":"2.3.1","platform":"ruby","checksum":"205a08c22a8f05c063d43c452aeada4214b58fdce1e55e92ec709e2cfb9e7ca1"},
+{"name":"deckar01-task_list","version":"2.3.2","platform":"ruby","checksum":"5a19092548d24309d8b2c2704d64cdc08a4a615823c9a722f4142edec1de8805"},
{"name":"declarative","version":"0.0.20","platform":"ruby","checksum":"8021dd6cb17ab2b61233c56903d3f5a259c5cf43c80ff332d447d395b17d9ff9"},
{"name":"declarative-option","version":"0.1.0","platform":"ruby","checksum":"17508349f51c5631e5ad4158c29f78a4b2de618abffa066d76c11953705f91bc"},
{"name":"declarative_policy","version":"1.1.0","platform":"ruby","checksum":"9af4cf299ade03f2bbf63908f2ce6a117d132fc714c39a128596667fb13331cb"},
diff --git a/Gemfile.lock b/Gemfile.lock
index 82232f1c4b1..9a21b223d3e 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -321,7 +321,7 @@ GEM
gitlab (~> 4.2, >= 4.2.0)
database_cleaner (1.7.0)
dead_end (3.1.1)
- deckar01-task_list (2.3.1)
+ deckar01-task_list (2.3.2)
html-pipeline
declarative (0.0.20)
declarative-option (0.1.0)
@@ -1584,7 +1584,7 @@ DEPENDENCIES
crystalball (~> 0.7.0)
cvss-suite (~> 3.0.1)
database_cleaner (~> 1.7.0)
- deckar01-task_list (= 2.3.1)
+ deckar01-task_list (= 2.3.2)
declarative_policy (~> 1.1.0)
default_value_for (~> 3.4.0)
deprecation_toolkit (~> 1.5.1)
diff --git a/app/assets/javascripts/deploy_tokens/components/new_deploy_token.vue b/app/assets/javascripts/deploy_tokens/components/new_deploy_token.vue
index b585b6f9579..81d74c64124 100644
--- a/app/assets/javascripts/deploy_tokens/components/new_deploy_token.vue
+++ b/app/assets/javascripts/deploy_tokens/components/new_deploy_token.vue
@@ -233,13 +233,7 @@ export default {
:description="$options.translations.addTokenNameDescription"
label-for="deploy_token_name"
>
- <gl-form-input
- id="deploy_token_name"
- v-model="name"
- name="deploy_token_name"
- class="qa-deploy-token-name"
- data-qa-selector="deploy_token_name_field"
- />
+ <gl-form-input id="deploy_token_name" v-model="name" name="deploy_token_name" />
</gl-form-group>
<gl-form-group
:label="$options.translations.addTokenExpiryLabel"
diff --git a/app/assets/javascripts/import_entities/import_projects/index.js b/app/assets/javascripts/import_entities/import_projects/index.js
index 4daa9e8a1b8..df26d6ac4f6 100644
--- a/app/assets/javascripts/import_entities/import_projects/index.js
+++ b/app/assets/javascripts/import_entities/import_projects/index.js
@@ -39,7 +39,7 @@ export function initStoreFromElement(element) {
export function initPropsFromElement(element) {
return {
- providerTitle: element.dataset.provider,
+ providerTitle: element.dataset.providerTitle,
filterable: parseBoolean(element.dataset.filterable),
paginatable: parseBoolean(element.dataset.paginatable),
optionalStages: JSON.parse(element.dataset.optionalStages),
diff --git a/app/assets/javascripts/lazy_loader.js b/app/assets/javascripts/lazy_loader.js
index ba801082377..36f387205f8 100644
--- a/app/assets/javascripts/lazy_loader.js
+++ b/app/assets/javascripts/lazy_loader.js
@@ -169,7 +169,8 @@ export default class LazyLoader {
delete img.dataset.src;
img.classList.remove('lazy');
img.classList.add('js-lazy-loaded');
- img.classList.add('qa-js-lazy-loaded');
+ // eslint-disable-next-line no-param-reassign
+ img.dataset.qa_selector = 'js_lazy_loaded_content';
}
}
}
diff --git a/app/graphql/types/permission_types/ci/runner.rb b/app/graphql/types/permission_types/ci/runner.rb
index 2e92a4011e9..096dcd272cc 100644
--- a/app/graphql/types/permission_types/ci/runner.rb
+++ b/app/graphql/types/permission_types/ci/runner.rb
@@ -6,7 +6,7 @@ module Types
class Runner < BasePermissionType
graphql_name 'RunnerPermissions'
- abilities :read_runner, :update_runner, :delete_runner
+ abilities :read_runner, :update_runner, :delete_runner, :assign_runner
end
end
end
diff --git a/app/helpers/icons_helper.rb b/app/helpers/icons_helper.rb
index 5ecf32fc3f3..aba786da3f2 100644
--- a/app/helpers/icons_helper.rb
+++ b/app/helpers/icons_helper.rb
@@ -70,10 +70,11 @@ module IconsHelper
# gl_loading_icon(css_class: "foo-bar")
#
# See also https://gitlab-org.gitlab.io/gitlab-ui/?path=/story/base-loading-icon--default
- def gl_loading_icon(inline: false, color: 'dark', size: 'sm', css_class: nil)
+ def gl_loading_icon(inline: false, color: 'dark', size: 'sm', css_class: nil, data: nil)
spinner = content_tag(:span, "", {
class: %[gl-spinner gl-spinner-#{color} gl-spinner-#{size} gl-vertical-align-text-bottom!],
- aria: { label: _('Loading') }
+ aria: { label: _('Loading') },
+ data: data
})
container_classes = ['gl-spinner-container']
diff --git a/app/models/integration.rb b/app/models/integration.rb
index 23688a87cbd..90dc6b486ab 100644
--- a/app/models/integration.rb
+++ b/app/models/integration.rb
@@ -71,20 +71,20 @@ class Integration < ApplicationRecord
alias_attribute :type, :type_new
- default_value_for :active, false
- default_value_for :alert_events, true
- default_value_for :category, 'common'
- default_value_for :commit_events, true
- default_value_for :confidential_issues_events, true
- default_value_for :confidential_note_events, true
- default_value_for :issues_events, true
- default_value_for :job_events, true
- default_value_for :merge_requests_events, true
- default_value_for :note_events, true
- default_value_for :pipeline_events, true
- default_value_for :push_events, true
- default_value_for :tag_push_events, true
- default_value_for :wiki_page_events, true
+ attribute :active, default: false
+ attribute :alert_events, default: true
+ attribute :category, default: 'common'
+ attribute :commit_events, default: true
+ attribute :confidential_issues_events, default: true
+ attribute :confidential_note_events, default: true
+ attribute :issues_events, default: true
+ attribute :job_events, default: true
+ attribute :merge_requests_events, default: true
+ attribute :note_events, default: true
+ attribute :pipeline_events, default: true
+ attribute :push_events, default: true
+ attribute :tag_push_events, default: true
+ attribute :wiki_page_events, default: true
after_initialize :initialize_properties
diff --git a/app/services/bulk_imports/lfs_objects_export_service.rb b/app/services/bulk_imports/lfs_objects_export_service.rb
index 1f745201c8a..b3b7cddf2d9 100644
--- a/app/services/bulk_imports/lfs_objects_export_service.rb
+++ b/app/services/bulk_imports/lfs_objects_export_service.rb
@@ -60,7 +60,7 @@ module BulkImports
def write_lfs_json
filepath = File.join(export_path, "#{BulkImports::FileTransfer::ProjectConfig::LFS_OBJECTS_RELATION}.json")
- File.write(filepath, lfs_json.to_json)
+ File.write(filepath, Gitlab::Json.dump(lfs_json))
end
end
end
diff --git a/app/services/ci/pipeline_artifacts/coverage_report_service.rb b/app/services/ci/pipeline_artifacts/coverage_report_service.rb
index 9c6fdb7a405..de66a4cb045 100644
--- a/app/services/ci/pipeline_artifacts/coverage_report_service.rb
+++ b/app/services/ci/pipeline_artifacts/coverage_report_service.rb
@@ -39,7 +39,7 @@ module Ci
def carrierwave_file
strong_memoize(:carrier_wave_file) do
CarrierWaveStringFile.new_file(
- file_content: report.to_json,
+ file_content: Gitlab::Json.dump(report),
filename: Ci::PipelineArtifact::DEFAULT_FILE_NAMES.fetch(:code_coverage),
content_type: 'application/json'
)
diff --git a/app/services/ci/pipeline_artifacts/create_code_quality_mr_diff_report_service.rb b/app/services/ci/pipeline_artifacts/create_code_quality_mr_diff_report_service.rb
index a0746ef32b2..57b663dc293 100644
--- a/app/services/ci/pipeline_artifacts/create_code_quality_mr_diff_report_service.rb
+++ b/app/services/ci/pipeline_artifacts/create_code_quality_mr_diff_report_service.rb
@@ -77,9 +77,9 @@ module Ci
end
def build_quality_mr_diff_report(mr_diff_report)
- mr_diff_report.each_with_object({}) do |diff_report, hash|
+ Gitlab::Json.dump(mr_diff_report.each_with_object({}) do |diff_report, hash|
hash[diff_report.first] = Ci::CodequalityMrDiffReportSerializer.new.represent(diff_report.second) # rubocop: disable CodeReuse/Serializer
- end.to_json
+ end)
end
end
end
diff --git a/app/services/ci/pipeline_trigger_service.rb b/app/services/ci/pipeline_trigger_service.rb
index 39ac9bf33e9..d7065680053 100644
--- a/app/services/ci/pipeline_trigger_service.rb
+++ b/app/services/ci/pipeline_trigger_service.rb
@@ -93,7 +93,7 @@ module Ci
def payload_variable
{ key: PAYLOAD_VARIABLE_KEY,
- value: params.except(*PAYLOAD_VARIABLE_HIDDEN_PARAMS).to_json,
+ value: Gitlab::Json.dump(params.except(*PAYLOAD_VARIABLE_HIDDEN_PARAMS)),
variable_type: :file }
end
diff --git a/app/services/ci/register_job_service.rb b/app/services/ci/register_job_service.rb
index 814fbf5e565..f11577feb88 100644
--- a/app/services/ci/register_job_service.rb
+++ b/app/services/ci/register_job_service.rb
@@ -226,7 +226,7 @@ module Ci
log_artifacts_context(build)
log_build_dependencies_size(presented_build)
- build_json = ::API::Entities::Ci::JobRequest::Response.new(presented_build).to_json
+ build_json = Gitlab::Json.dump(::API::Entities::Ci::JobRequest::Response.new(presented_build))
Result.new(build, build_json, true)
end
diff --git a/app/services/clusters/kubernetes/configure_istio_ingress_service.rb b/app/services/clusters/kubernetes/configure_istio_ingress_service.rb
deleted file mode 100644
index 3b7e094bc97..00000000000
--- a/app/services/clusters/kubernetes/configure_istio_ingress_service.rb
+++ /dev/null
@@ -1,112 +0,0 @@
-# frozen_string_literal: true
-
-require 'openssl'
-
-module Clusters
- module Kubernetes
- class ConfigureIstioIngressService
- PASSTHROUGH_RESOURCE = Kubeclient::Resource.new(
- mode: 'PASSTHROUGH'
- ).freeze
-
- MTLS_RESOURCE = Kubeclient::Resource.new(
- mode: 'MUTUAL',
- privateKey: '/etc/istio/ingressgateway-certs/tls.key',
- serverCertificate: '/etc/istio/ingressgateway-certs/tls.crt',
- caCertificates: '/etc/istio/ingressgateway-ca-certs/cert.pem'
- ).freeze
-
- def initialize(cluster:)
- @cluster = cluster
- @platform = cluster.platform
- @kubeclient = platform.kubeclient
- @knative = cluster.application_knative
- end
-
- def execute
- return configure_certificates if serverless_domain_cluster
-
- configure_passthrough
- rescue Kubeclient::HttpError => e
- knative.make_errored!(_('Kubernetes error: %{error_code}') % { error_code: e.error_code })
- rescue StandardError
- knative.make_errored!(_('Failed to update.'))
- end
-
- private
-
- attr_reader :cluster, :platform, :kubeclient, :knative
-
- def serverless_domain_cluster
- knative&.serverless_domain_cluster
- end
-
- def configure_certificates
- create_or_update_istio_cert_and_key
- set_gateway_wildcard_https(MTLS_RESOURCE)
- end
-
- def create_or_update_istio_cert_and_key
- name = OpenSSL::X509::Name.parse("CN=#{knative.hostname}")
-
- key = OpenSSL::PKey::RSA.new(2048)
-
- cert = OpenSSL::X509::Certificate.new
- cert.version = 2
- cert.serial = 0
- cert.not_before = Time.current
- cert.not_after = Time.current + 1000.years
-
- cert.public_key = key.public_key
- cert.subject = name
- cert.issuer = name
- cert.sign(key, OpenSSL::Digest.new('SHA256'))
-
- serverless_domain_cluster.update!(
- key: key.to_pem,
- certificate: cert.to_pem
- )
-
- kubeclient.create_or_update_secret(istio_ca_certs_resource)
- kubeclient.create_or_update_secret(istio_certs_resource)
- end
-
- def istio_ca_certs_resource
- Gitlab::Kubernetes::GenericSecret.new(
- 'istio-ingressgateway-ca-certs',
- {
- 'cert.pem': Base64.strict_encode64(serverless_domain_cluster.certificate)
- },
- Clusters::Kubernetes::ISTIO_SYSTEM_NAMESPACE
- ).generate
- end
-
- def istio_certs_resource
- Gitlab::Kubernetes::TlsSecret.new(
- 'istio-ingressgateway-certs',
- serverless_domain_cluster.certificate,
- serverless_domain_cluster.key,
- Clusters::Kubernetes::ISTIO_SYSTEM_NAMESPACE
- ).generate
- end
-
- def set_gateway_wildcard_https(tls_resource)
- gateway_resource = gateway
- gateway_resource.spec.servers.each do |server|
- next unless server.hosts == ['*'] && server.port.name == 'https'
-
- server.tls = tls_resource
- end
- kubeclient.update_gateway(gateway_resource)
- end
-
- def configure_passthrough
- set_gateway_wildcard_https(PASSTHROUGH_RESOURCE)
- end
-
- def gateway
- kubeclient.get_gateway('knative-ingress-gateway', Clusters::Kubernetes::KNATIVE_SERVING_NAMESPACE)
- end
- end
- end
-end
diff --git a/app/services/git/base_hooks_service.rb b/app/services/git/base_hooks_service.rb
index 269637805ad..968d45bbcdb 100644
--- a/app/services/git/base_hooks_service.rb
+++ b/app/services/git/base_hooks_service.rb
@@ -53,11 +53,11 @@ module Git
def create_pipelines
return unless params.fetch(:create_pipelines, true)
- Ci::CreatePipelineService
- .new(project, current_user, pipeline_params)
- .execute!(:push, pipeline_options)
- rescue Ci::CreatePipelineService::CreateError => ex
- log_pipeline_errors(ex)
+ if ::Feature.enabled?(:refactored_create_pipeline_execution_method, project)
+ create_pipeline_refactored
+ else
+ create_pipeline_legacy
+ end
end
def execute_project_hooks
@@ -148,14 +148,14 @@ module Git
{}
end
- def log_pipeline_errors(exception)
+ def log_pipeline_errors(error_message)
data = {
class: self.class.name,
correlation_id: Labkit::Correlation::CorrelationId.current_id.to_s,
project_id: project.id,
project_path: project.full_path,
message: "Error creating pipeline",
- errors: exception.to_s,
+ errors: error_message,
pipeline_params: sanitized_pipeline_params
}
@@ -175,5 +175,21 @@ module Git
Gitlab::IntegrationsLogger
end
end
+
+ def create_pipeline_refactored
+ response = Ci::CreatePipelineService
+ .new(project, current_user, pipeline_params)
+ .execute(:push, **pipeline_options)
+
+ log_pipeline_errors(response.message) unless response.payload.persisted?
+ end
+
+ def create_pipeline_legacy
+ Ci::CreatePipelineService
+ .new(project, current_user, pipeline_params)
+ .execute!(:push, pipeline_options)
+ rescue Ci::CreatePipelineService::CreateError => ex
+ log_pipeline_errors(ex.to_s) # Stringifying the ex here as I removed stringifying in log_pipeline_errors.
+ end
end
end
diff --git a/app/services/google_cloud/create_service_accounts_service.rb b/app/services/google_cloud/create_service_accounts_service.rb
index 9617161b8e9..ca0aa7c91df 100644
--- a/app/services/google_cloud/create_service_accounts_service.rb
+++ b/app/services/google_cloud/create_service_accounts_service.rb
@@ -10,8 +10,8 @@ module GoogleCloud
service_accounts_service.add_for_project(
environment_name,
service_account.project_id,
- service_account.to_json,
- service_account_key.to_json,
+ Gitlab::Json.dump(service_account),
+ Gitlab::Json.dump(service_account_key),
ProtectedBranch.protected?(project, environment_name) || ProtectedTag.protected?(project, environment_name)
)
diff --git a/app/services/google_cloud/setup_cloudsql_instance_service.rb b/app/services/google_cloud/setup_cloudsql_instance_service.rb
index 10237f83b37..40184b927ad 100644
--- a/app/services/google_cloud/setup_cloudsql_instance_service.rb
+++ b/app/services/google_cloud/setup_cloudsql_instance_service.rb
@@ -13,7 +13,7 @@ module GoogleCloud
get_instance_response = google_api_client.get_cloudsql_instance(gcp_project_id, instance_name)
if get_instance_response.state != INSTANCE_STATE_RUNNABLE
- return error("CloudSQL instance not RUNNABLE: #{get_instance_response.to_json}")
+ return error("CloudSQL instance not RUNNABLE: #{Gitlab::Json.dump(get_instance_response)}")
end
save_instance_ci_vars(get_instance_response)
@@ -42,7 +42,7 @@ module GoogleCloud
success
rescue Google::Apis::Error => err
- error(message: err.to_json)
+ error(message: Gitlab::Json.dump(err))
end
private
@@ -97,7 +97,7 @@ module GoogleCloud
database_response = google_api_client.create_cloudsql_database(gcp_project_id, instance_name, database_name)
if database_response.status != OPERATION_STATE_DONE
- return error("Database creation failed: #{database_response.to_json}")
+ return error("Database creation failed: #{Gitlab::Json.dump(database_response)}")
end
success
@@ -109,7 +109,7 @@ module GoogleCloud
user_response = google_api_client.create_cloudsql_user(gcp_project_id, instance_name, username, password)
if user_response.status != OPERATION_STATE_DONE
- return error("User creation failed: #{user_response.to_json}")
+ return error("User creation failed: #{Gitlab::Json.dump(user_response)}")
end
success
diff --git a/app/services/merge_requests/add_context_service.rb b/app/services/merge_requests/add_context_service.rb
index 7b441ddf5e4..2ce6073050e 100644
--- a/app/services/merge_requests/add_context_service.rb
+++ b/app/services/merge_requests/add_context_service.rb
@@ -65,7 +65,7 @@ module MergeRequests
sha: sha,
authored_date: Gitlab::Database.sanitize_timestamp(commit_hash[:authored_date]),
committed_date: Gitlab::Database.sanitize_timestamp(commit_hash[:committed_date]),
- trailers: commit_hash.fetch(:trailers, {}).to_json
+ trailers: Gitlab::Json.dump(commit_hash.fetch(:trailers, {}))
)
end
end
diff --git a/app/services/projects/lfs_pointers/lfs_download_link_list_service.rb b/app/services/projects/lfs_pointers/lfs_download_link_list_service.rb
index c82ed97203f..c91103f897f 100644
--- a/app/services/projects/lfs_pointers/lfs_download_link_list_service.rb
+++ b/app/services/projects/lfs_pointers/lfs_download_link_list_service.rb
@@ -95,10 +95,12 @@ module Projects
end
def request_body(oids)
- {
+ body = {
operation: DOWNLOAD_ACTION,
objects: oids.map { |oid, size| { oid: oid, size: size } }
- }.to_json
+ }
+
+ Gitlab::Json.dump(body)
end
def headers
diff --git a/app/services/service_ping/submit_service.rb b/app/services/service_ping/submit_service.rb
index 7fd0fb10b4b..da2a51562f8 100644
--- a/app/services/service_ping/submit_service.rb
+++ b/app/services/service_ping/submit_service.rb
@@ -63,7 +63,7 @@ module ServicePing
def submit_payload(payload, path: USAGE_DATA_PATH)
Gitlab::HTTP.post(
URI.join(base_url, path),
- body: payload.to_json,
+ body: Gitlab::Json.dump(payload),
allow_local_requests: true,
headers: { 'Content-type' => 'application/json' }
)
diff --git a/app/views/import/_githubish_status.html.haml b/app/views/import/_githubish_status.html.haml
index 9ea52a8f82f..e92db09aaf1 100644
--- a/app/views/import/_githubish_status.html.haml
+++ b/app/views/import/_githubish_status.html.haml
@@ -4,7 +4,7 @@
- filterable = local_assigns.fetch(:filterable, true)
- paginatable = local_assigns.fetch(:paginatable, false)
- default_namespace_path = (local_assigns[:default_namespace] || current_user.namespace).full_path
-- provider_title = Gitlab::ImportSources.title(provider)
+- provider_title = Gitlab::ImportSources.title(local_assigns.fetch(:provider))
- optional_stages = local_assigns.fetch(:optional_stages, [])
- header_title _("New project"), new_project_path
diff --git a/app/views/layouts/_img_loader.html.haml b/app/views/layouts/_img_loader.html.haml
index f6d7d163e6f..979ebeb0a02 100644
--- a/app/views/layouts/_img_loader.html.haml
+++ b/app/views/layouts/_img_loader.html.haml
@@ -12,6 +12,7 @@
img.src = imgUrl;
img.removeAttribute('data-src');
img.classList.remove('lazy');
- img.classList.add('js-lazy-loaded', 'qa-js-lazy-loaded');
+ img.classList.add('js-lazy-loaded');
+ img.dataset.qa_selector = 'js_lazy_loaded_content';
});
}
diff --git a/app/views/profiles/keys/_form.html.haml b/app/views/profiles/keys/_form.html.haml
index b37a0d9cc1a..e6d91543585 100644
--- a/app/views/profiles/keys/_form.html.haml
+++ b/app/views/profiles/keys/_form.html.haml
@@ -5,12 +5,12 @@
.form-group
= f.label :key, s_('Profiles|Key'), class: 'label-bold'
- = f.text_area :key, class: "form-control gl-form-input js-add-ssh-key-validation-input qa-key-public-key-field", rows: 8, required: true, data: { supported_algorithms: Gitlab::SSHPublicKey.supported_algorithms }
+ = f.text_area :key, class: "form-control gl-form-input js-add-ssh-key-validation-input", rows: 8, required: true, data: { supported_algorithms: Gitlab::SSHPublicKey.supported_algorithms, qa_selector: 'key_public_key_field' }
%p.form-text.text-muted= s_('Profiles|Begins with %{ssh_key_algorithms}.') % { ssh_key_algorithms: ssh_key_allowed_algorithms }
.form-row
.col.form-group
= f.label :title, s_('Profiles|Title'), class: 'label-bold'
- = f.text_field :title, class: "form-control gl-form-input input-lg qa-key-title-field", required: true, placeholder: s_('Profiles|Example: MacBook key')
+ = f.text_field :title, class: "form-control gl-form-input input-lg", required: true, placeholder: s_('Profiles|Example: MacBook key'), data: { qa_selector: 'key_title_field' }
%p.form-text.text-muted= s_('Profiles|Key titles are publicly visible.')
.form-row
@@ -29,4 +29,4 @@
button_options: { class: 'js-add-ssh-key-validation-confirm-submit' }) do
= _("Yes, add it")
.gl-mt-3
- = f.submit s_('Profiles|Add key'), class: "js-add-ssh-key-validation-original-submit qa-add-key-button", pajamas_button: true
+ = f.submit s_('Profiles|Add key'), class: "js-add-ssh-key-validation-original-submit", pajamas_button: true, data: { qa_selector: 'add_key_button' }
diff --git a/app/views/projects/_last_push.html.haml b/app/views/projects/_last_push.html.haml
index 859f065377d..5b493772f0a 100644
--- a/app/views/projects/_last_push.html.haml
+++ b/app/views/projects/_last_push.html.haml
@@ -16,5 +16,5 @@
- if create_mr_button_from_event?(event)
= c.actions do
- = render Pajamas::ButtonComponent.new(variant: :confirm, href: create_mr_path_from_push_event(event), button_options: { class: 'qa-create-merge-request' }) do
+ = render Pajamas::ButtonComponent.new(variant: :confirm, href: create_mr_path_from_push_event(event), button_options: { data: { qa_selector: 'create_merge_request_button' }}) do
= _('Create merge request')
diff --git a/app/views/projects/blob/_editor.html.haml b/app/views/projects/blob/_editor.html.haml
index bd08ab67cd3..a907e175443 100644
--- a/app/views/projects/blob/_editor.html.haml
+++ b/app/views/projects/blob/_editor.html.haml
@@ -16,7 +16,7 @@
- if current_action?(:new) || current_action?(:create)
%span.float-left.gl-mr-3
\/
- = text_field_tag 'file_name', params[:file_name], placeholder: "File name",
+ = text_field_tag 'file_name', params[:file_name], placeholder: "File name", data: { qa_selector: 'file_name_field' },
required: true, class: 'form-control gl-form-input new-file-name js-file-path-name-input', value: params[:file_name] || (should_suggest_gitlab_ci_yml? ? '.gitlab-ci.yml' : '')
= render 'template_selectors'
- if should_suggest_gitlab_ci_yml?
@@ -38,7 +38,7 @@
.file-editor.code
- if Feature.enabled?(:source_editor_toolbar, current_user)
#editor-toolbar
- .js-edit-mode-pane.qa-editor#editor{ data: { 'editor-loading': true, qa_selector: 'source_editor_preview_container' } }<
+ .js-edit-mode-pane#editor{ data: { 'editor-loading': true, qa_selector: 'source_editor_preview_container' } }<
%pre.editor-loading-content= params[:content] || local_assigns[:blob_data]
- if local_assigns[:path]
.js-edit-mode-pane#preview.hide
diff --git a/app/views/projects/blob/viewers/_loading.html.haml b/app/views/projects/blob/viewers/_loading.html.haml
index 9cb934da7c0..d8efaf9ad95 100644
--- a/app/views/projects/blob/viewers/_loading.html.haml
+++ b/app/views/projects/blob/viewers/_loading.html.haml
@@ -1 +1 @@
-= gl_loading_icon(size: "md", css_class: "qa-spinner gl-my-4")
+= gl_loading_icon(size: "md", css_class: "gl-my-4", data: { qa_selector: 'spinner_placeholder' })
diff --git a/app/views/projects/branches/_branch.html.haml b/app/views/projects/branches/_branch.html.haml
index 52b8d6bc66f..12e9044ad24 100644
--- a/app/views/projects/branches/_branch.html.haml
+++ b/app/views/projects/branches/_branch.html.haml
@@ -1,19 +1,19 @@
- merged = local_assigns.fetch(:merged, false)
- commit = @repository.commit(branch.dereferenced_target)
- merge_project = merge_request_source_project_for_project(@project)
-%li{ class: "branch-item gl-display-flex! gl-align-items-center! js-branch-item js-branch-#{branch.name}", data: { name: branch.name } }
+%li{ class: "branch-item gl-display-flex! gl-align-items-center! js-branch-item js-branch-#{branch.name}", data: { name: branch.name, qa_selector: 'branch_container', qa_name: branch.name } }
.branch-info
.gl-display-flex.gl-align-items-center
= sprite_icon('branch', size: 12, css_class: 'gl-flex-shrink-0')
- = link_to project_tree_path(@project, branch.name), class: 'item-title str-truncated-100 ref-name gl-ml-3 qa-branch-name' do
+ = link_to project_tree_path(@project, branch.name), class: 'item-title str-truncated-100 ref-name gl-ml-3', data: { qa_selector: 'branch_link' } do
= branch.name
= clipboard_button(text: branch.name, title: _("Copy branch name"))
- if branch.name == @repository.root_ref
- = gl_badge_tag s_('DefaultBranchLabel|default'), { variant: :info, size: :sm }, { class: 'gl-ml-2' }
+ = gl_badge_tag s_('DefaultBranchLabel|default'), { variant: :info, size: :sm }, { class: 'gl-ml-2', data: { qa_selector: 'badge_content' } }
- elsif merged
- = gl_badge_tag s_('Branches|merged'), { variant: :info, size: :sm }, { class: 'gl-ml-2', title: s_('Branches|Merged into %{default_branch}') % { default_branch: @repository.root_ref }, data: { toggle: 'tooltip', container: 'body' } }
+ = gl_badge_tag s_('Branches|merged'), { variant: :info, size: :sm }, { class: 'gl-ml-2', title: s_('Branches|Merged into %{default_branch}') % { default_branch: @repository.root_ref }, data: { toggle: 'tooltip', container: 'body', qa_selector: 'badge_content' } }
- if protected_branch?(@project, branch)
- = gl_badge_tag s_('Branches|protected'), { variant: :success, size: :sm }, { class: 'gl-ml-2' }
+ = gl_badge_tag s_('Branches|protected'), { variant: :success, size: :sm }, { class: 'gl-ml-2', data: { qa_selector: 'badge_content' } }
= render_if_exists 'projects/branches/diverged_from_upstream', branch: branch
diff --git a/app/views/projects/branches/_panel.html.haml b/app/views/projects/branches/_panel.html.haml
index 6ca5aaf061e..a1f93d21647 100644
--- a/app/views/projects/branches/_panel.html.haml
+++ b/app/views/projects/branches/_panel.html.haml
@@ -11,7 +11,7 @@
- c.header do
= panel_title
- c.body do
- %ul.content-list.all-branches.qa-all-branches
+ %ul.content-list.all-branches{ data: { qa_selector: 'all_branches_container' } }
- branches.first(overview_max_branches).each do |branch|
= render "projects/branches/branch", branch: branch, merged: project.repository.merged_to_root_ref?(branch), commit_status: @branch_pipeline_statuses[branch.name], show_commit_status: @branch_pipeline_statuses.any?
- if branches.size > overview_max_branches
diff --git a/app/views/projects/branches/index.html.haml b/app/views/projects/branches/index.html.haml
index df01900dd1b..f053ce9ced3 100644
--- a/app/views/projects/branches/index.html.haml
+++ b/app/views/projects/branches/index.html.haml
@@ -14,13 +14,14 @@
- if can? current_user, :push_code, @project
= link_to project_merged_branches_path(@project),
- class: 'gl-button btn btn-danger btn-danger-secondary has-tooltip qa-delete-merged-branches',
+ class: 'gl-button btn btn-danger btn-danger-secondary has-tooltip',
title: s_("Branches|Delete all branches that are merged into '%{default_branch}'") % { default_branch: @project.repository.root_ref },
method: :delete,
aria: { label: s_('Branches|Delete merged branches') },
data: { confirm: s_('Branches|Deleting the merged branches cannot be undone. Are you sure?'),
confirm_btn_variant: 'danger',
- container: 'body' } do
+ container: 'body',
+ qa_selector: 'delete_merged_branches_link' } do
= s_('Branches|Delete merged branches')
= link_to new_project_branch_path(@project), class: 'gl-button btn btn-confirm' do
= s_('Branches|New branch')
diff --git a/app/views/projects/empty.html.haml b/app/views/projects/empty.html.haml
index 6f2e135f9d3..03158412d5e 100644
--- a/app/views/projects/empty.html.haml
+++ b/app/views/projects/empty.html.haml
@@ -20,7 +20,7 @@
%p
= _('You can get started by cloning the repository or start adding files to it with one of the following options.')
-.project-buttons.qa-quick-actions
+.project-buttons{ data: { qa_selector: 'quick_actions_container' } }
.project-clone-holder.d-block.d-md-none.gl-mt-3.gl-mr-3
= render "shared/mobile_clone_panel"
diff --git a/app/views/projects/mirrors/_authentication_method.html.haml b/app/views/projects/mirrors/_authentication_method.html.haml
index 4b549aaf1cd..54e1f1a8b20 100644
--- a/app/views/projects/mirrors/_authentication_method.html.haml
+++ b/app/views/projects/mirrors/_authentication_method.html.haml
@@ -5,10 +5,10 @@
= f.label :auth_method, _('Authentication method'), class: 'label-bold'
= f.select :auth_method,
options_for_select(auth_options, mirror.auth_method),
- {}, { class: "custom-select gl-form-select js-mirror-auth-type qa-authentication-method" }
+ {}, { class: "custom-select gl-form-select js-mirror-auth-type", data: { qa_selector: 'authentication_method_field' } }
= f.hidden_field :auth_method, value: "password", class: "js-hidden-mirror-auth-type"
.form-group
.well-password-auth.collapse.js-well-password-auth
= f.label :password, _("Password"), class: "label-bold"
- = f.password_field :password, class: 'form-control gl-form-input qa-password js-mirror-password-field', autocomplete: 'off'
+ = f.password_field :password, class: 'form-control gl-form-input js-mirror-password-field', autocomplete: 'off', data: { qa_selector: 'password_field' }
diff --git a/app/views/projects/mirrors/_disabled_mirror_badge.html.haml b/app/views/projects/mirrors/_disabled_mirror_badge.html.haml
index 86e54acecc4..1834627c705 100644
--- a/app/views/projects/mirrors/_disabled_mirror_badge.html.haml
+++ b/app/views/projects/mirrors/_disabled_mirror_badge.html.haml
@@ -1,2 +1,2 @@
-%span.qa-disabled-mirror-badge.rspec-disabled-mirror-badge{ data: { toggle: 'tooltip', html: 'true' }, title: _('Disabled mirrors can only be enabled by instance owners. It is recommended that you delete them.') }
+%span.rspec-disabled-mirror-badge{ data: { toggle: 'tooltip', html: 'true' }, title: _('Disabled mirrors can only be enabled by instance owners. It is recommended that you delete them.') }
= gl_badge_tag _('Disabled'), variant: :warning
diff --git a/app/views/projects/mirrors/_mirror_repos.html.haml b/app/views/projects/mirrors/_mirror_repos.html.haml
index c98f88fa31e..f4e57450aa1 100644
--- a/app/views/projects/mirrors/_mirror_repos.html.haml
+++ b/app/views/projects/mirrors/_mirror_repos.html.haml
@@ -21,7 +21,7 @@
.form-group.has-feedback
= label_tag :url, _('Git repository URL'), class: 'label-light'
- = text_field_tag :url, nil, class: 'form-control gl-form-input js-mirror-url js-repo-url qa-mirror-repository-url-input', placeholder: _('Input the remote repository URL'), required: true, pattern: "(#{protocols}):\/\/.+", autocomplete: 'new-password'
+ = text_field_tag :url, nil, class: 'form-control gl-form-input js-mirror-url js-repo-url', placeholder: _('Input the remote repository URL'), required: true, pattern: "(#{protocols}):\/\/.+", autocomplete: 'new-password', data: { qa_selector: 'mirror_repository_url_field' }
= render 'projects/mirrors/instructions'
@@ -35,7 +35,7 @@
= link_to _('Learn more.'), help_page_path('user/project/repository/mirror/index.md', anchor: 'mirror-only-protected-branches'), target: '_blank', rel: 'noopener noreferrer'
.panel-footer
- = f.submit _('Mirror repository'), class: 'js-mirror-submit qa-mirror-repository-button', name: :update_remote_mirror, pajamas_button: true
+ = f.submit _('Mirror repository'), class: 'js-mirror-submit', name: :update_remote_mirror, pajamas_button: true, data: { qa_selector: 'mirror_repository_button' }
- else
= render Pajamas::AlertComponent.new(dismissible: false) do |c|
= c.body do
diff --git a/app/views/projects/mirrors/_mirror_repos_form.html.haml b/app/views/projects/mirrors/_mirror_repos_form.html.haml
index 34b7c75debf..1322e677d5a 100644
--- a/app/views/projects/mirrors/_mirror_repos_form.html.haml
+++ b/app/views/projects/mirrors/_mirror_repos_form.html.haml
@@ -1,7 +1,7 @@
.form-group
= label_tag :mirror_direction, _('Mirror direction'), class: 'label-light'
.select-wrapper
- = select_tag :mirror_direction, options_for_select([[_('Push'), 'push']]), class: 'form-control gl-form-select select-control js-mirror-direction qa-mirror-direction', disabled: true
+ = select_tag :mirror_direction, options_for_select([[_('Push'), 'push']]), class: 'form-control gl-form-select select-control js-mirror-direction', disabled: true, data: { qa_selector: 'mirror_direction_field' }
= sprite_icon('chevron-down', css_class: "gl-icon gl-absolute gl-top-3 gl-right-3 gl-text-gray-200")
= render partial: "projects/mirrors/mirror_repos_push", locals: { f: f }
diff --git a/app/views/projects/mirrors/_mirror_repos_list.html.haml b/app/views/projects/mirrors/_mirror_repos_list.html.haml
index 2dbcbd659c8..fb8133e6de8 100644
--- a/app/views/projects/mirrors/_mirror_repos_list.html.haml
+++ b/app/views/projects/mirrors/_mirror_repos_list.html.haml
@@ -25,17 +25,17 @@
= render_if_exists 'projects/mirrors/table_pull_row'
- @project.remote_mirrors.each_with_index do |mirror, index|
- next if mirror.new_record?
- %tr.rspec-mirrored-repository-row{ class: ('bg-secondary' if mirror.disabled?), data: { qa_selector: 'mirrored_repository_row' } }
- %td{ data: { qa_selector: 'mirror_repository_url_cell' } }= mirror.safe_url || _('Invalid URL')
+ %tr.rspec-mirrored-repository-row{ class: ('bg-secondary' if mirror.disabled?), data: { qa_selector: 'mirrored_repository_row_container' } }
+ %td{ data: { qa_selector: 'mirror_repository_url_content' } }= mirror.safe_url || _('Invalid URL')
%td= _('Push')
%td
= mirror.last_update_started_at.present? ? time_ago_with_tooltip(mirror.last_update_started_at) : _('Never')
- %td{ data: { qa_selector: 'mirror_last_update_at_cell' } }= mirror.last_update_at.present? ? time_ago_with_tooltip(mirror.last_update_at) : _('Never')
+ %td{ data: { qa_selector: 'mirror_last_update_at_content' } }= mirror.last_update_at.present? ? time_ago_with_tooltip(mirror.last_update_at) : _('Never')
%td
- if mirror.disabled?
= render 'projects/mirrors/disabled_mirror_badge'
- if mirror.last_error.present?
- = gl_badge_tag _('Error'), { variant: :danger }, { data: { toggle: 'tooltip', html: 'true', qa_selector: 'mirror_error_badge' }, title: html_escape(mirror.last_error.try(:strip)) }
+ = gl_badge_tag _('Error'), { variant: :danger }, { data: { toggle: 'tooltip', html: 'true', qa_selector: 'mirror_error_badge_content' }, title: html_escape(mirror.last_error.try(:strip)) }
%td.gl-display-flex
- if mirror_settings_enabled
.btn-group.mirror-actions-group{ role: 'group' }
@@ -44,4 +44,4 @@
= render 'shared/remote_mirror_update_button', remote_mirror: mirror
= render Pajamas::ButtonComponent.new(variant: :danger,
icon: 'remove',
- button_options: { class: 'js-delete-mirror qa-delete-mirror rspec-delete-mirror', title: _('Remove'), data: { mirror_id: mirror.id, toggle: 'tooltip', container: 'body' } })
+ button_options: { class: 'js-delete-mirror rspec-delete-mirror', title: _('Remove'), data: { mirror_id: mirror.id, toggle: 'tooltip', container: 'body' } })
diff --git a/app/views/projects/pipelines/_info.html.haml b/app/views/projects/pipelines/_info.html.haml
index 6f56aea7bd2..7c4b0a5fdb9 100644
--- a/app/views/projects/pipelines/_info.html.haml
+++ b/app/views/projects/pipelines/_info.html.haml
@@ -19,7 +19,7 @@
= s_("Pipelines|(queued for %{queued_duration})") % { queued_duration: time_interval_in_words(@pipeline.queued_duration)}
- if has_pipeline_badges?(@pipeline)
- .well-segment.qa-pipeline-badges
+ .well-segment
.icon-container
= sprite_icon('flag', css_class: 'gl-top-0!')
- if @pipeline.schedule?
diff --git a/app/views/projects/protected_branches/shared/_dropdown.html.haml b/app/views/projects/protected_branches/shared/_dropdown.html.haml
index d5111bd8be5..c5dbf8991cd 100644
--- a/app/views/projects/protected_branches/shared/_dropdown.html.haml
+++ b/app/views/projects/protected_branches/shared/_dropdown.html.haml
@@ -3,14 +3,16 @@
= f.hidden_field(:name)
= dropdown_tag(_('Select branch or create wildcard'),
- options: { toggle_class: "js-protected-branch-select js-filter-submit wide monospace qa-protected-branch-select #{toggle_classes}",
+ options: { toggle_class: "js-protected-branch-select js-filter-submit wide monospace #{toggle_classes}",
filter: true,
- dropdown_class: "dropdown-menu-selectable git-revision-dropdown qa-protected-branch-dropdown",
+ dropdown_class: "dropdown-menu-selectable git-revision-dropdown",
+ dropdown_qa_selector: "protected_branch_dropdown_content",
placeholder: _("Search protected branches"),
footer_content: true,
data: { show_no: true, show_any: true, show_upcoming: true,
selected: params[:protected_branch_name],
- project_id: @project.try(:id) } }) do
+ project_id: @project.try(:id),
+ qa_selector: "protected_branch_dropdown" } }) do
%ul.dropdown-footer-list
%li
diff --git a/app/views/projects/protected_branches/shared/_index.html.haml b/app/views/projects/protected_branches/shared/_index.html.haml
index 1d60791eae2..c204508d355 100644
--- a/app/views/projects/protected_branches/shared/_index.html.haml
+++ b/app/views/projects/protected_branches/shared/_index.html.haml
@@ -4,7 +4,7 @@
.settings-header
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
= s_("ProtectedBranch|Protected branches")
- = render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle qa-expand-protected-branches' }) do
+ = render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
= expanded ? _('Collapse') : _('Expand')
%p
= s_("ProtectedBranch|Keep stable branches secure and force developers to use merge requests.")
diff --git a/app/views/projects/settings/ci_cd/show.html.haml b/app/views/projects/settings/ci_cd/show.html.haml
index c4f589f3f91..1b35de85145 100644
--- a/app/views/projects/settings/ci_cd/show.html.haml
+++ b/app/views/projects/settings/ci_cd/show.html.haml
@@ -57,7 +57,7 @@
.settings-content
#js-artifacts-settings-app{ data: { full_path: @project.full_path, help_page_path: help_page_path('ci/pipelines/job_artifacts', anchor: 'keep-artifacts-from-most-recent-successful-jobs') } }
-%section.qa-variables-settings.settings.no-animate#js-cicd-variables-settings{ class: ('expanded' if expanded), data: { qa_selector: 'variables_settings_content' } }
+%section.settings.no-animate#js-cicd-variables-settings{ class: ('expanded' if expanded), data: { qa_selector: 'variables_settings_content' } }
.settings-header
= render 'ci/variables/header', expanded: expanded
.settings-content
diff --git a/app/views/projects/snippets/show.html.haml b/app/views/projects/snippets/show.html.haml
index 7c4492fb901..58e86ebffa0 100644
--- a/app/views/projects/snippets/show.html.haml
+++ b/app/views/projects/snippets/show.html.haml
@@ -3,7 +3,7 @@
- breadcrumb_title @snippet.to_reference
- page_title "#{@snippet.title} (#{@snippet.to_reference})", _("Snippets")
-#js-snippet-view{ data: {'qa-selector': 'snippet_view', 'snippet-gid': @snippet.to_global_id, 'report-abuse-path': snippet_report_abuse_path(@snippet), 'can-report-spam': @snippet.submittable_as_spam_by?(current_user).to_s } }
+#js-snippet-view{ data: { 'snippet-gid': @snippet.to_global_id, 'report-abuse-path': snippet_report_abuse_path(@snippet), 'can-report-spam': @snippet.submittable_as_spam_by?(current_user).to_s } }
.gl-px-0.gl-py-2
= render 'award_emoji/awards_block', awardable: @snippet, inline: true, api_awards_path: project_snippets_award_api_path(@snippet)
diff --git a/app/views/shared/empty_states/_snippets.html.haml b/app/views/shared/empty_states/_snippets.html.haml
index a006a3bc0a4..e34166bac6c 100644
--- a/app/views/shared/empty_states/_snippets.html.haml
+++ b/app/views/shared/empty_states/_snippets.html.haml
@@ -2,8 +2,8 @@
.row.empty-state
.col-12
- .svg-content
- = image_tag 'illustrations/snippets_empty.svg', data: { qa_selector: 'svg_content' }
+ .svg-content{ data: { qa_selector: 'svg_content' } }
+ = image_tag 'illustrations/snippets_empty.svg'
.text-content.gl-text-center.gl-pt-0
- if current_user
%h4
diff --git a/app/views/shared/issuable/_sidebar.html.haml b/app/views/shared/issuable/_sidebar.html.haml
index 4199b7e870b..7adc38f833f 100644
--- a/app/views/shared/issuable/_sidebar.html.haml
+++ b/app/views/shared/issuable/_sidebar.html.haml
@@ -20,7 +20,7 @@
.js-issuable-todo{ data: { project_path: issuable_sidebar[:project_full_path], iid: issuable_sidebar[:iid], id: issuable_sidebar[:id] } }
= form_for issuable_type, url: issuable_sidebar[:issuable_json_path], remote: true, html: { class: 'issuable-context-form inline-update js-issuable-update' } do |f|
- .block.assignee.qa-assignee-block{ class: "#{'gl-mt-3' if !signed_in && moved_sidebar_enabled}", data: { qa_selector: 'assignee_block_container' } }
+ .block.assignee{ class: "#{'gl-mt-3' if !signed_in && moved_sidebar_enabled}", data: { qa_selector: 'assignee_block_container' } }
= render "shared/issuable/sidebar_assignees", issuable_sidebar: issuable_sidebar, assignees: assignees, signed_in: signed_in
- if issuable_sidebar[:supports_severity]
diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml
index 47ccc449e1b..bb43c3c6274 100644
--- a/app/views/snippets/show.html.haml
+++ b/app/views/snippets/show.html.haml
@@ -12,7 +12,7 @@
- content_for :prefetch_asset_tags do
- webpack_preload_asset_tag('monaco', prefetch: true)
-#js-snippet-view{ data: {'qa-selector': 'snippet_view', 'snippet-gid': @snippet.to_global_id, 'report-abuse-path': snippet_report_abuse_path(@snippet), 'can-report-spam': @snippet.submittable_as_spam_by?(current_user).to_s } }
+#js-snippet-view{ data: { 'snippet-gid': @snippet.to_global_id, 'report-abuse-path': snippet_report_abuse_path(@snippet), 'can-report-spam': @snippet.submittable_as_spam_by?(current_user).to_s } }
.row-content-block.top-block.content-component-block.gl-px-0.gl-py-2
= render 'award_emoji/awards_block', awardable: @snippet, inline: true
diff --git a/app/workers/cluster_configure_istio_worker.rb b/app/workers/cluster_configure_istio_worker.rb
index 0def66b7381..8bf723d89f7 100644
--- a/app/workers/cluster_configure_istio_worker.rb
+++ b/app/workers/cluster_configure_istio_worker.rb
@@ -1,5 +1,8 @@
# frozen_string_literal: true
+# DEPRECATED
+#
+# To be removed by https://gitlab.com/gitlab-org/gitlab/-/issues/366573
class ClusterConfigureIstioWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
@@ -10,9 +13,5 @@ class ClusterConfigureIstioWorker # rubocop:disable Scalability/IdempotentWorker
worker_has_external_dependencies!
- def perform(cluster_id)
- Clusters::Cluster.find_by_id(cluster_id).try do |cluster|
- Clusters::Kubernetes::ConfigureIstioIngressService.new(cluster: cluster).execute
- end
- end
+ def perform(cluster_id); end
end
diff --git a/app/workers/run_pipeline_schedule_worker.rb b/app/workers/run_pipeline_schedule_worker.rb
index 35e3e633c70..e967513ba7a 100644
--- a/app/workers/run_pipeline_schedule_worker.rb
+++ b/app/workers/run_pipeline_schedule_worker.rb
@@ -21,13 +21,12 @@ class RunPipelineScheduleWorker # rubocop:disable Scalability/IdempotentWorker
end
def run_pipeline_schedule(schedule, user)
- Ci::CreatePipelineService.new(schedule.project,
- user,
- ref: schedule.ref)
- .execute!(:schedule, ignore_skip_ci: true, save_on_errors: false, schedule: schedule)
- rescue Ci::CreatePipelineService::CreateError => e
- # This is a user operation error such as corrupted .gitlab-ci.yml. Log the error for debugging purpose.
- log_extra_metadata_on_done(:pipeline_creation_error, e)
+ if ::Feature.enabled?(:refactored_create_pipeline_execution_method, schedule.project)
+ create_pipeline_refactored(schedule, user)
+ else
+ create_pipeline_legacy(schedule, user)
+ end
+
rescue StandardError => e
error(schedule, e)
end
@@ -57,4 +56,24 @@ class RunPipelineScheduleWorker # rubocop:disable Scalability/IdempotentWorker
Gitlab::Metrics.counter(:pipeline_schedule_creation_failed_total,
"Counter of failed attempts of pipeline schedule creation")
end
+
+ def create_pipeline_refactored(schedule, user)
+ response = Ci::CreatePipelineService
+ .new(schedule.project, user, ref: schedule.ref)
+ .execute(:schedule, ignore_skip_ci: true, save_on_errors: false, schedule: schedule)
+
+ return response if response.payload.persisted?
+
+ # This is a user operation error such as corrupted .gitlab-ci.yml. Log the error for debugging purpose.
+ log_extra_metadata_on_done(:pipeline_creation_error, response.message)
+ end
+
+ def create_pipeline_legacy(schedule, user)
+ Ci::CreatePipelineService
+ .new(schedule.project, user, ref: schedule.ref)
+ .execute!(:schedule, ignore_skip_ci: true, save_on_errors: false, schedule: schedule)
+ rescue Ci::CreatePipelineService::CreateError => e
+ # This is a user operation error such as corrupted .gitlab-ci.yml. Log the error for debugging purpose.
+ log_extra_metadata_on_done(:pipeline_creation_error, e)
+ end
end
diff --git a/config/feature_flags/development/refactored_create_pipeline_execution_method.yml b/config/feature_flags/development/refactored_create_pipeline_execution_method.yml
new file mode 100644
index 00000000000..9734c7b1e71
--- /dev/null
+++ b/config/feature_flags/development/refactored_create_pipeline_execution_method.yml
@@ -0,0 +1,8 @@
+---
+name: refactored_create_pipeline_execution_method
+introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/98965
+rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/378257
+milestone: '15.6'
+type: development
+group: group::pipeline execution
+default_enabled: false
diff --git a/doc/administration/geo/replication/troubleshooting.md b/doc/administration/geo/replication/troubleshooting.md
index 0931a551b23..e46f3b40046 100644
--- a/doc/administration/geo/replication/troubleshooting.md
+++ b/doc/administration/geo/replication/troubleshooting.md
@@ -317,7 +317,6 @@ sudo gitlab-rake gitlab:geo:check
to gather the following, basic troubleshooting information.
WARNING:
-
Commands that change data can cause damage if not run correctly or under the right conditions. Always run commands in a test environment first and have a backup instance ready to restore.
#### Get the number of verification failed repositories
@@ -855,7 +854,6 @@ therefore short-circuited. `last_sync_failure` is now set to `The file is missin
examples, but things generally work the same for the other types.
WARNING:
-
Commands that change data can cause damage if not run correctly or under the right conditions. Always run commands in a test environment first and have a backup instance ready to restore.
#### The Replicator
diff --git a/doc/administration/operations/rails_console.md b/doc/administration/operations/rails_console.md
index f818d2d1a3c..efaf480c6df 100644
--- a/doc/administration/operations/rails_console.md
+++ b/doc/administration/operations/rails_console.md
@@ -736,7 +736,6 @@ ApplicationSetting.current
### Open object in `irb`
WARNING:
-
Commands that change data can cause damage if not run correctly or under the right conditions. Always run commands in a test environment first and have a backup instance ready to restore.
Sometimes it is easier to go through a method if you are in the context of the object. You can shim into the namespace of `Object` to let you open `irb` in the context of any object:
diff --git a/doc/api/deployments.md b/doc/api/deployments.md
index 3984bfe0eeb..daf2b635855 100644
--- a/doc/api/deployments.md
+++ b/doc/api/deployments.md
@@ -23,7 +23,7 @@ GET /projects/:id/deployments
| `updated_after` | datetime | no | Return deployments updated after the specified date. Expected in ISO 8601 format (`2019-03-15T08:00:00Z`). |
| `updated_before` | datetime | no | Return deployments updated before the specified date. Expected in ISO 8601 format (`2019-03-15T08:00:00Z`). |
| `environment` | string | no | The [name of the environment](../ci/environments/index.md) to filter deployments by. |
-| `status` | string | no | The status to filter deployments by. One of `created`, `running`, `success`, `failed`, `canceled`, `blocked`.
+| `status` | string | no | The status to filter deployments by. One of `created`, `running`, `success`, `failed`, `canceled`, or `blocked`.
```shell
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/1/deployments"
@@ -487,7 +487,11 @@ curl --request "DELETE" --header "PRIVATE-TOKEN: <your_access_token>" "https://g
Example responses:
```json
-{ "message": "202 Accepted" }
+{ "message": "204 Deployment destroyed" }
+```
+
+```json
+{ "message": "403 Forbidden" }
```
```json
diff --git a/doc/api/feature_flag_user_lists.md b/doc/api/feature_flag_user_lists.md
index ef65da64668..ca4ca755d08 100644
--- a/doc/api/feature_flag_user_lists.md
+++ b/doc/api/feature_flag_user_lists.md
@@ -70,8 +70,8 @@ POST /projects/:id/feature_flags_user_lists
| Attribute | Type | Required | Description |
| ------------------- | ---------------- | ---------- | ---------------------------------------------------------------------------------------|
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](index.md#namespaced-path-encoding). |
-| `name` | string | yes | The name of the feature flag. |
-| `user_xids` | string | yes | A comma-separated list of user IDs. |
+| `name` | string | yes | The name of the list. |
+| `user_xids` | string | yes | A comma-separated list of external user IDs. |
```shell
curl "https://gitlab.example.com/api/v4/projects/1/feature_flags_user_lists" \
@@ -142,8 +142,8 @@ PUT /projects/:id/feature_flags_user_lists/:iid
| ------------------- | ---------------- | ---------- | ---------------------------------------------------------------------------------------|
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](index.md#namespaced-path-encoding). |
| `iid` | integer/string | yes | The internal ID of the project's feature flag user list. |
-| `name` | string | no | The name of the feature flag. |
-| `user_xids` | string | no | A comma-separated list of user IDs. |
+| `name` | string | no | The name of the list. |
+| `user_xids` | string | no | A comma-separated list of external user IDs. |
```shell
curl "https://gitlab.example.com/api/v4/projects/1/feature_flags_user_lists/1" \
diff --git a/doc/api/feature_flags.md b/doc/api/feature_flags.md
index c4d766a6319..55eb62f9a0d 100644
--- a/doc/api/feature_flags.md
+++ b/doc/api/feature_flags.md
@@ -151,7 +151,7 @@ POST /projects/:id/feature_flags
| `strategies:name` | JSON | no | The strategy name. Can be `default`, `gradualRolloutUserId`, `userWithId`, or `gitlabUserList`. In [GitLab 13.5](https://gitlab.com/gitlab-org/gitlab/-/issues/36380) and later, can be [`flexibleRollout`](https://docs.getunleash.io/user_guide/activation_strategy#gradual-rollout). |
| `strategies:parameters` | JSON | no | The strategy parameters. |
| `strategies:scopes` | JSON | no | The scopes for the strategy. |
-| `strategies:scopes:environment_scope` | string | no | The environment spec for the scope. |
+| `strategies:scopes:environment_scope` | string | no | The environment scope of the scope. |
```shell
curl "https://gitlab.example.com/api/v4/projects/1/feature_flags" \
@@ -213,8 +213,8 @@ PUT /projects/:id/feature_flags/:feature_flag_name
| `strategies:name` | JSON | no | The strategy name. |
| `strategies:parameters` | JSON | no | The strategy parameters. |
| `strategies:scopes` | JSON | no | The scopes for the strategy. |
-| `strategies:scopes:id` | JSON | no | The scopes ID. |
-| `strategies:scopes:environment_scope` | string | no | The environment spec for the scope. |
+| `strategies:scopes:id` | JSON | no | The environment scope ID. |
+| `strategies:scopes:environment_scope` | string | no | The environment scope of the scope. |
```shell
curl "https://gitlab.example.com/api/v4/projects/1/feature_flags/awesome_feature" \
diff --git a/doc/api/graphql/reference/index.md b/doc/api/graphql/reference/index.md
index 8555d8c6789..432f338b5af 100644
--- a/doc/api/graphql/reference/index.md
+++ b/doc/api/graphql/reference/index.md
@@ -18081,6 +18081,7 @@ Counts of requirements by their state.
| Name | Type | Description |
| ---- | ---- | ----------- |
+| <a id="runnerpermissionsassignrunner"></a>`assignRunner` | [`Boolean!`](#boolean) | Indicates the user can perform `assign_runner` on this resource. |
| <a id="runnerpermissionsdeleterunner"></a>`deleteRunner` | [`Boolean!`](#boolean) | Indicates the user can perform `delete_runner` on this resource. |
| <a id="runnerpermissionsreadrunner"></a>`readRunner` | [`Boolean!`](#boolean) | Indicates the user can perform `read_runner` on this resource. |
| <a id="runnerpermissionsupdaterunner"></a>`updateRunner` | [`Boolean!`](#boolean) | Indicates the user can perform `update_runner` on this resource. |
diff --git a/doc/ci/pipelines/job_artifacts.md b/doc/ci/pipelines/job_artifacts.md
index 33a9069240b..20818f35327 100644
--- a/doc/ci/pipelines/job_artifacts.md
+++ b/doc/ci/pipelines/job_artifacts.md
@@ -396,7 +396,19 @@ a project, you can disable this behavior to save space:
You can disable this behavior for all projects on a self-managed instance in the
[instance's CI/CD settings](../../user/admin_area/settings/continuous_integration.md#keep-the-latest-artifacts-for-all-jobs-in-the-latest-successful-pipelines).
-## Troubleshooting job artifacts
+## Troubleshooting
+
+### Job does not retrieve certain artifacts
+
+By default, jobs fetch all artifacts from previous stages, but jobs using `dependencies`
+or `needs` do not fetch artifacts from all jobs by default.
+
+If you use these keywords, artifacts are fetched from only a subset of jobs. Review
+the keyword reference for information on how to fetch artifacts with these keywords:
+
+- [`dependencies`](../yaml/index.md#dependencies)
+- [`needs`](../yaml/index.md#needs)
+- [`needs:artifacts`](../yaml/index.md#needsartifacts)
### Error message `No files to upload`
diff --git a/doc/development/gitlab_flavored_markdown/specification_guide/index.md b/doc/development/gitlab_flavored_markdown/specification_guide/index.md
index 95d06907aa6..e64c145b3a3 100644
--- a/doc/development/gitlab_flavored_markdown/specification_guide/index.md
+++ b/doc/development/gitlab_flavored_markdown/specification_guide/index.md
@@ -34,7 +34,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
against the official specification.
- They support [snapshot testing](#markdown-snapshot-testing) of GitLab
internal GLFM processing logic. This is accomplished by automatically
- generating YAML ["example snapshot files"](#example-snapshot-files)
+ generating YAML ["example snapshot files"](#output-example-snapshot-files)
which are used as fixtures to drive automated testing within the GitLab app.
- There are [various scripts and logic](#scripts)
which are used to accomplish the above goals.
@@ -104,13 +104,13 @@ serve as input to automated conformance tests. It is
Here are the HTML-rendered versions of the specifications:
-- [GitLab Flavored Markdown (GLFM) specification](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/output/spec.html), which extends the:
+- [GitLab Flavored Markdown (GLFM) specification](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/output_spec/spec.html), which extends the:
- [GitHub Flavored Markdown (GFM) specification](https://github.github.com/gfm/) (rendered from the [source `spec.txt` for GFM specification](https://github.com/github/cmark-gfm/blob/master/test/spec.txt)), which extends the:
- [CommonMark specification](https://spec.commonmark.org/0.30/) (rendered from the [source `spec.txt` for CommonMark specification](https://github.com/commonmark/commonmark-spec/blob/master/spec.txt))
NOTE:
The creation of the
-[HTML-rendered version of the GitLab Flavored Markdown (GLFM) specification](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/output/spec.html)
+[HTML-rendered version of the GitLab Flavored Markdown (GLFM) specification](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/output_spec/spec.html)
file is still pending.
However, GLFM has more complex parsing, rendering, and testing requirements than
@@ -177,7 +177,7 @@ In this context, it should not be confused with other similar or related meaning
_example_, such as
[RSpec examples](https://relishapp.com/rspec/rspec-core/docs/example-groups/basic-structure-describe-it).
-See the section on the [`glfm_official_specification_examples.md`](#glfm_official_specification_examplesmd) file
+See the section on the [`glfm_official_specification.md`](#glfm_official_specificationmd) file
for more details on the backtick-delimited Markdown+HTML example syntax.
### Parsers and renderers
@@ -341,7 +341,7 @@ The GitLab [Markdown API](../../../api/markdown.md) generates HTML
for a given Markdown string using this method.
The Markdown specified in the [Markdown examples](#markdown-examples) is used to automatically generate HTML in
-[`glfm_specification/example_snapshots/html.yml`](#glfm_specificationexample_snapshotshtmlyml) via
+[`glfm_specification/output_example_snapshots/html.yml`](#htmlyml) via
[`update-example-snapshots.rb`](#update-example-snapshotsrb-script). These examples are
used when running [Markdown snapshot testing](#markdown-snapshot-testing).
@@ -353,7 +353,7 @@ in the ProseMirror WYSIWYG editor.
Just like static HTML,
the Markdown specified in the [Markdown examples](#markdown-examples) is used to automatically generate HTML in
-[`glfm_specification/example_snapshots/html.yml`](#glfm_specificationexample_snapshotshtmlyml) via
+[`glfm_specification/output_example_snapshots/html.yml`](#htmlyml) via
[`update-example-snapshots.rb`](#update-example-snapshotsrb-script). These examples are
used when running [Markdown snapshot testing](#markdown-snapshot-testing).
@@ -387,10 +387,10 @@ Here are more details on the sources of canonical HTML examples:
version of [`spec.txt`](#spectxt).
1. For the examples which are part of the GLFM [_official specification_](#official-specifications),
the canonical HTML is manually maintained and curated via the examples contained in the
- [`glfm_official_specification_examples.md`](#glfm_official_specification_examplesmd) [input specification file](#input-specification-files).
+ [`glfm_official_specification.md`](#glfm_official_specificationmd) [input specification file](#input-specification-files).
1. For the examples which are part of the GLFM [_internal extensions_](#internal-extensions),
the canonical HTML **is never specified**, and **must be left empty in all examples** contained in
- the [`glfm_internal_extension_examples.md`](#glfm_internal_extension_examplesmd) [input specification file](#input-specification-files).
+ the [`glfm_internal_extensions.md`](#glfm_internal_extensionsmd) [input specification file](#input-specification-files).
### Canonicalization of HTML
@@ -401,7 +401,7 @@ or HTML elements, to support specific appearance and behavioral requirements.
Neither the backend nor the frontend rendering logic can directly render the clean, basic HTML
which is necessary to perform comparison to the [canonical HTML](#canonical-html)
when running [Markdown conformance testing](#markdown-conformance-testing)
-for the [GLFM official specification examples](#glfm_official_specification_examplesmd).
+for the [GLFM official specification examples](#glfm_official_specificationmd).
Nor should they be able to, because:
@@ -443,7 +443,7 @@ Fixture-based normalization should be used whenever possible, because it is simp
understand than regex-based normalization.
The [Markdown snapshot testing](#markdown-snapshot-testing) uses RSpec to generate the
-[example snapshot files](#example-snapshot-files). RSpec enables you to:
+[example snapshot files](#output-example-snapshot-files). RSpec enables you to:
- Use the same powerful fixture support and helpers as all the rest of the GitLab RSpec suite.
- Use fixtures to control the state of the database when the example snapshots are generated.
@@ -575,10 +575,10 @@ The documentation on the implementation is split into three sections:
1. [Scripts](#scripts).
1. [Specification files](#specification-files).
-1. [Example snapshot files](#example-snapshot-files):
+1. [Example snapshot files](#output-example-snapshot-files):
These YAML files are used as input data
or fixtures to drive the various tests, and are located under
- `glfm_specification/example_snapshots`. All example snapshot files are automatically
+ `glfm_specification/output_example_snapshots`. All example snapshot files are automatically
generated based on the specification files and the implementation of the parsers and renderers.
However, they can also be directly edited if necessary, such as to
test-drive an incomplete implementation.
@@ -620,8 +620,8 @@ end
subgraph input:<br/>input specification files
C[ghfm_spec_v_0.29.md] --> A
D[glfm_intro.md] --> A
- E[glfm_official_specification_examples.md] --> A
- F[glfm_internal_extension_examples.md] --> A
+ E[glfm_official_specification.md] --> A
+ F[glfm_internal_extensions.md] --> A
end
subgraph output:<br/>GLFM specification files
A --> G[spec.txt]
@@ -646,7 +646,7 @@ script, which expects canonical HTML, against the GitLab renderer implementation
`scripts/glfm/run-spec-tests.sh` is a convenience shell script which runs
conformance specs via the CommonMark standard `spec_tests.py` script,
-which uses the `glfm_specification/output/spec.txt` file and `scripts/glfm/canonicalize-html.rb`
+which uses the `glfm_specification/output_spec/spec.txt` file and `scripts/glfm/canonicalize-html.rb`
helper script to test the GLFM renderer implementations' support for rendering Markdown
specification examples to canonical HTML.
@@ -672,9 +672,9 @@ end
#### `update-example-snapshots.rb` script
The `scripts/glfm/update-example-snapshots.rb` script uses the GLFM
-`glfm_specification/output/spec.txt` specification file and the
+`glfm_specification/output_spec/spec.txt` specification file and the
`glfm_specification/input/gitlab_flavored_markdown/glfm_example_status.yml`
-file to create and update the [example snapshot](#example-snapshot-files)
+file to create and update the [example snapshot](#output-example-snapshot-files)
YAML files:
```mermaid
@@ -746,7 +746,7 @@ runs the [`update-specification.rb`](#update-specificationrb-script).
It fails with an exception and non-zero return code if running these scripts
results in any diffs to the generated and committed
[output specification files](#output-specification-files) or
-[example snapshot files](#example-snapshot-files).
+[example snapshot files](#output-example-snapshot-files).
This script is run via the `glfm-verify` CI job to ensure that all changes to the
[input specification files](#input-specification-files)
@@ -766,12 +766,16 @@ subcategories based on their usage and purpose:
[`ghfm_spec_v_0.29.md`](#github-flavored-markdown-specification) specification.
- `gitlab_flavored_markdown`: Contains all `glfm_*` files.
- `*.md` [input specification files](#input-specification-files),
- which represent the GLFM specification itself.
+ which represent the source of truth for the GLFM specification and all associated examples.
- `*.yml` [input specification configuration files](#input-specification-configuration-files),
which control various aspects of the automated GLFM scripts and processes.
- - `output`: Contains [output specification files](#output-specification-files),
- which are automatically generated from the
+ - `output_spec`: Contains the `spec.txt` and `spec.html` [output specification files](#output-specification-files),
+ which represent the [GLFM official specification](#official-specifications), and are automatically generated from the
input files by running the [`update-specification.rb`](#update-specificationrb-script) script.
+ - `output_example_snapshots`: Contains [output example snapshot files](#output-example-snapshot-files).
+ which are used to drive [snapshot testing](#markdown-snapshot-testing), and are automatically generated from the
+ input files by running the [`update-specification.rb`](#update-specificationrb-script)
+ and [`scripts/glfm/update-example-snapshots.rb`](#update-example-snapshotsrb-script) scripts.
#### Input specification files
@@ -790,31 +794,22 @@ is a copy of the official latest [GFM `spec.txt`](https://github.com/github/cmar
- When it is downloaded, the version number is added to the filename.
- The extension is changed from `*.txt` to `*.md` so that it can be handled better by Markdown editors.
-NOTE:
-For extra clarity, this file uses the `ghfm` acronym in its name instead of `gfm`, as
-explained in the [Acronyms section](#acronyms-glfm-ghfm-gfm-commonmark).
-
-##### `glfm_intro.md`
-
-[`glfm_specification/input/gitlab_flavored_markdown/glfm_intro.md`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/input/gitlab_flavored_markdown/glfm_intro.md)
-is the GitLab-specific version of the prose in the introduction section of the GLFM specification.
+It currently contains additional **Introduction** and **Appendix** prose-only header sections which do not
+contain any examples.
-- It is manually updated.
-- The `update-specification.rb` script inserts it into the generated GLFM `spec.txt` to replace
- the GitHub-specific GFM version of the introductory section.
-
-##### `glfm_canonical_examples.txt`
+All header sections which contain examples are expected to be contained within a contiguous file section
+which is delimited by:
-The `glfm_canonical_examples.txt` file is deprecated and no longer exists. It has been replaced by two files:
+1. The beginning of the second H1 header (the first one after the **Introduction** section)
+1. An `<!-- END TESTS -->` HTML comment line.
-- [`glfm_official_specification_examples.md`](#glfm_official_specification_examplesmd)
- which contains the [GLFM official specification](#official-specifications) examples.
-- [`glfm_internal_extension_examples.md`](#glfm_internal_extension_examplesmd)
- which contains the [GLFM internal extension](#internal-extensions) examples.
+NOTE:
+For extra clarity, this file uses the `ghfm` acronym in its name instead of `gfm`, as
+explained in the [Acronyms section](#acronyms-glfm-ghfm-gfm-commonmark).
-##### `glfm_official_specification_examples.md`
+##### `glfm_official_specification.md`
-[`glfm_specification/input/gitlab_flavored_markdown/glfm_official_specification_examples.md`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/input/gitlab_flavored_markdown/glfm_official_specification_examples.md)
+[`glfm_specification/input/gitlab_flavored_markdown/glfm_official_specification.md`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/input/gitlab_flavored_markdown/glfm_official_specification.md)
consists of the manually updated Markdown+HTML examples for the
[GLFM official specification](#official-specifications), and their associated documentation and descriptions.
@@ -832,7 +827,12 @@ consists of the manually updated Markdown+HTML examples for the
- `H3` header sections must be nested within `H2` header sections. They cannot be
nested directly within `H1` header sections.
-`glfm_specification/input/gitlab_flavored_markdown/glfm_official_specification_examples.md` sample entries:
+It _may_ contain additional prose-only header sections which do not contain any examples.
+
+All header sections which contain examples _must_ be contained within a contiguous file section which
+is delimited by `<!-- BEGIN TESTS -->` and `<!-- END TESTS -->` HTML comment lines.
+
+`glfm_specification/input/gitlab_flavored_markdown/glfm_official_specification.md` sample entries:
<!-- markdownlint-disable MD048 -->
@@ -864,13 +864,13 @@ bold
<!-- markdownlint-enable MD048 -->
-##### `glfm_internal_extension_examples.md`
+##### `glfm_internal_extensions.md`
-[`glfm_specification/input/gitlab_flavored_markdown/glfm_internal_extension_examples.md`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/input/gitlab_flavored_markdown/glfm_internal_extension_examples.md)
+[`glfm_specification/input/gitlab_flavored_markdown/glfm_internal_extensions.md`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/input/gitlab_flavored_markdown/glfm_internal_extensions.md)
consists of the manually updated Markdown examples for the
[GLFM internal extensions](#internal-extensions), and their associated documentation and descriptions.
-Its general format is identical to [`glfm_official_specification_examples.md`](#glfm_official_specification_examplesmd),
+Its general format is identical to [`glfm_official_specification.md`](#glfm_official_specificationmd),
consisting of `H1`, `H2`, or `H3` sections containing [Markdown examples](#markdown-examples) in the
[standard backtick-delimited `spec.txt` format](#various-markdown-specifications).
@@ -878,7 +878,12 @@ However, as described in the [canonical HTML section](#canonical-html), only the
example is specified, and the HTML portion is left empty, because internal extension examples are
never used for [Markdown conformance testing](#markdown-conformance-testing).
-`glfm_specification/input/gitlab_flavored_markdown/glfm_official_specification_examples.md` sample entries:
+It _may_ contain additional prose-only header sections which do not contain any examples.
+
+All header sections which contain examples _must_ be contained within a contiguous file section which
+is delimited by `<!-- BEGIN TESTS -->` and `<!-- END TESTS -->` HTML comment lines.
+
+`glfm_specification/input/gitlab_flavored_markdown/glfm_official_specification.md` sample entries:
NOTE:
All lines in this example are prefixed with a `|` character. This prefix helps avoid false
@@ -908,7 +913,7 @@ See the main [specification files](#specification-files) section for more contex
All of the manually curated example names in the configuration files must correspond to
an existing [Markdown example](#markdown-examples) name found in
-[`example_snapshots/examples_index.yml`](#glfm_specificationexample_snapshotsexamples_indexyml),
+[`output_example_snapshots/examples_index.yml`](#examples_indexyml),
which is automatically generated based on the [input specification files](#input-specification-files).
If there is an invalid reference to an example name that does not exist, the
@@ -943,16 +948,16 @@ controls the behavior of the [scripts](#scripts) and [tests](#types-of-markdown-
The following optional entries are supported for each example. They all default to `false`:
- `skip_update_example_snapshots`: When true, skips any addition or update of any this example's entries
- in the [`glfm_specification/example_snapshots/html.yml`](#glfm_specificationexample_snapshotshtmlyml) file
- or the [`glfm_specification/example_snapshots/prosemirror_json.yml`](#glfm_specificationexample_snapshotsprosemirror_jsonyml) file.
+ in the [`glfm_specification/output_example_snapshots/html.yml`](#htmlyml) file
+ or the [`glfm_specification/output_example_snapshots/prosemirror_json.yml`](#prosemirror_jsonyml) file.
If this value is truthy, then no other `skip_update_example_snapshot_*` entries can be truthy,
and an error is raised if any of them are.
- `skip_update_example_snapshot_html_static`: When true, skips addition or update of this example's [static HTML](#static-html)
- entry in the [`glfm_specification/example_snapshots/html.yml`](#glfm_specificationexample_snapshotshtmlyml) file.
+ entry in the [`glfm_specification/output_example_snapshots/html.yml`](#htmlyml) file.
- `skip_update_example_snapshot_html_wysiwyg`: When true, skips addition or update of this example's [WYSIWYG HTML](#wysiwyg-html)
- entry in the [`glfm_specification/example_snapshots/html.yml`](#glfm_specificationexample_snapshotshtmlyml) file.
+ entry in the [`glfm_specification/output_example_snapshots/html.yml`](#htmlyml) file.
- `skip_update_example_snapshot_prosemirror_json`: When true, skips addition or update of this example's
- entry in the [`glfm_specification/example_snapshots/prosemirror_json.yml`](#glfm_specificationexample_snapshotsprosemirror_jsonyml) file.
+ entry in the [`glfm_specification/output_example_snapshots/prosemirror_json.yml`](#prosemirror_jsonyml) file.
- `skip_running_conformance_static_tests`: When true, skips running the [Markdown conformance tests](#markdown-conformance-testing)
of the [static HTML](#static-html) for this example.
- `skip_running_conformance_wysiwyg_tests`: When true, skips running the [Markdown conformance tests](#markdown-conformance-testing)
@@ -962,7 +967,7 @@ The following optional entries are supported for each example. They all default
- `skip_running_snapshot_wysiwyg_html_tests`: When true, skips running the [Markdown snapshot tests](#markdown-snapshot-testing)
of the [WYSIWYG HTML](#wysiwyg-html) for this example.
- `skip_running_snapshot_prosemirror_json_tests`: When true, skips running the [Markdown snapshot tests](#markdown-snapshot-testing)
- of the [ProseMirror JSON](#glfm_specificationexample_snapshotsprosemirror_jsonyml) for this example.
+ of the [ProseMirror JSON](#prosemirror_jsonyml) for this example.
`glfm_specification/input/gitlab_flavored_markdown/glfm_example_status.yml` sample entry:
@@ -1033,9 +1038,9 @@ or [environment-variable-based normalization](#environment-variable-based-normal
snapshot:
07_01_00_href: *07_01_00_href
07_01_00_id: *07_01_00_id
- wysiwyg:
- 07_01_00_href: *07_01_00_href
- 07_01_00_id: *07_01_00_id
+ wysiwyg:
+ 07_01_00_href: *07_01_00_href
+ 07_01_00_id: *07_01_00_id
prosemirror_json:
07_01_00_href: *07_01_00_href
07_01_00_id: *07_01_00_id
@@ -1093,36 +1098,66 @@ move or copy a hosted version of the rendered HTML `spec.html` version to anothe
##### spec.txt
-[`glfm_specification/output/spec.txt`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/output/spec.txt)
+[`glfm_specification/output_spec/spec.txt`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/output_spec/spec.txt)
is a Markdown specification file, in the standard format
with prose and Markdown + canonical HTML examples.
-It also serves as input for other scripts such as `update-example-snapshots.rb`
-and `run-spec-tests.sh`.
+It also serves as input for other scripts such as
+`run-spec-tests.sh`.
It is generated or updated by the `update-specification.rb` script, using the
[input specification files](#input-specification-files) as input.
See the [`update-specification.rb` script section](#update-specificationrb-script)
for a diagram and more description on this process.
+NOTE:
+Even though `spec.txt` is a Markdown file, it is named with a `*.txt` extension
+for consistency with the GFM and CommonMark specifications. All other GLFM
+Markdown files are named with a `*.md` extension for compatibility with
+various editors to enable Markdown formatting and syntax highlighting.
+
##### spec.html
-[`glfm_specification/output/spec.html`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/output/spec.html)
+[`glfm_specification/output_spec/spec.html`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/output_spec/spec.html)
is an HTML file, rendered based on `spec.txt`. It is
-also generated (or updated) by the `update-specification.rb` script at the same time as
+generated (or updated) by the `update-specification.rb` script at the same time as
`spec.txt`.
It corresponds to the HTML-rendered versions of the
"GitHub Flavored Markdown" (<abbr title="GitHub Flavored Markdown">GFM</abbr>)
[specification](https://github.github.com/gfm/)
-and the [CommonMark specification](https://spec.commonmark.org/0.30/).
+and the [CommonMark specification](https://spec.commonmark.org/0.30/), but only
+contains GitLab Flavored Markdown (GLFM) examples.
-### Example snapshot files
+NOTE:
+
+The formatting of this HTML is currently not identical to the GFM and CommonMark
+HTML-rendered specification. It is only the raw output of running `spec.txt` through
+the GitLab Markdown renderer. Properly formatting the HTML will require
+duplicating or reusing the Lua script and template from the CommonMark project:
+[CommonMark Makefile](https://github.com/commonmark/commonmark-spec/blob/master/Makefile#L11)
+
+#### Output example snapshot files
+
+The `output_example_snapshots` directory contains files which are generated by the
+`update-specification.rb` and `update-example-snapshots.rb` scripts based off of the files in the
+`glfm_specification/input` directory.
+
+The `output-specification.rb` script generates
+`output_snapshot_examples/glfm_snapshot_spec.md` and `output_snapshot_examples/glfm_snapshot_spec.html`.
+These files are Markdown specification files containing examples generated based on input files,
+similar to the `output_spec/spec.txt` and `output_spec/spec.html`, with the following differences:
-The `example_snapshots` directory contains files which are generated by the
-`update-example-snapshots.rb` script based off of the files in the
-`glfm_specification/input` directory. They are used as fixtures to drive the
-various Markdown snapshot tests.
+1. They contain a superset of _all_ examples from
+ the Commonmark, GitHub Flavored Markdown, and GitLab Flavored Markdown specifications, whereas
+ `spec.*` only contains the GLFM specification. This is to provide a single place to refer to
+ all examples when working with [snapshot testing](#markdown-snapshot-testing).
+1. They contain _only_ header sections which contain examples. They do not contain any prose-only
+ sections which do not contain examples.
+
+The `update-example-snapshots.rb` script generates the various
+`output_snapshot_examples/*.yml` files, which
+are used as fixtures to drive the [snapshot testing](#markdown-snapshot-testing).
After the entire GLFM implementation is complete for both backend (Ruby) and
frontend (JavaScript), all of these YAML files can be automatically generated.
@@ -1131,9 +1166,47 @@ key in `glfm_specification/input/gitlab_flavored_markdown/glfm_example_status.ym
can be used to disable automatic generation of some examples. They can instead
be manually edited as necessary to help drive the implementations.
-#### `glfm_specification/example_snapshots/examples_index.yml`
+##### `glfm_snapshot_spec.md`
+
+[`glfm_specification/output_example_snapshots/glfm_snapshot_spec.md`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/output_example_snapshots/glfm_snapshot_spec.md)
+is a Markdown file, containing standard Markdown + canonical HTML examples like [`spec.txt`](#spectxt).
+
+It is generated or updated by the `update-specification.rb` script, using the
+[input specification files](#input-specification-files) as input.
+See the [`update-specification.rb` script section](#update-specificationrb-script)
+for a diagram and more description on this process. It also serves as input for other
+scripts such as `update-example-snapshots.rb`.
+
+It is similar to [`spec.txt`](#spectxt), with the following differences:
+
+1. [`spec.txt`](#spectxt) contains only examples for GitLab Flavored Markdown, but
+ `glfm_snapshot_spec.md` also contains the full superset of examples from the
+ "GitHub Flavored Markdown" (<abbr title="GitHub Flavored Markdown">GFM</abbr>)[specification](https://github.github.com/gfm/)
+ and the [CommonMark specification](https://spec.commonmark.org/0.30/) specifications.
+1. [`spec.txt`](#spectxt) represents the full GLFM specification, including additional header sections
+ containing only explanatory prose and no examples, but `glfm_snapshot_spec.md` consists of only
+ header sections which contain examples. This is because its purpose is to serve as input for
+ the other [`output example snapshot files`](#output-example-snapshot-files) - it is not intended
+ to serve as an actual [specification file](#output-specification-files)
+ like [`spec.txt`](#spectxt) or [`spec.html`](#spechtml).
+
+##### `glfm_snapshot_spec.html`
+
+[`glfm_specification/output_snapshot_examples/glfm_snapshot_spec.html`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/output_snapshot_examples/glfm_snapshot_spec.html)
+is an HTML file, rendered based on `glfm_snapshot_spec.md`. It is
+generated (or updated) by the `update-specification.rb` script at the same time as
+`glfm_snapshot_spec.md`.
+
+NOTE:
+The formatting of this HTML is currently not identical to the GFM and CommonMark
+HTML-rendered specification. It is only the raw output of running `glfm_snapshot_spec.md` through
+the GitLab Markdown renderer. Properly formatting the HTML will require
+duplicating or reusing the Lua script and template from the CommonMark project:
+[CommonMark Makefile](https://github.com/commonmark/commonmark-spec/blob/master/Makefile#L11)
+
+##### `examples_index.yml`
-[`glfm_specification/example_snapshots/examples_index.yml`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/example_snapshots/examples_index.yml)
+[`glfm_specification/output_example_snapshots/examples_index.yml`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/output_example_snapshots/examples_index.yml)
is the main list of all
CommonMark, GFM, and GLFM example names, each with a uniquely identifying name.
@@ -1142,9 +1215,9 @@ CommonMark, GFM, and GLFM example names, each with a uniquely identifying name.
- For CommonMark and GFM examples,
these sections originally came from the GFM `spec.txt`.
- For GLFM examples, it is generated from
- [`glfm_official_specification_examples.md`](#glfm_official_specification_examplesmd) and [`glfm_internal_extension_examples.md`](#glfm_internal_extension_examplesmd).
+ [`glfm_official_specification.md`](#glfm_official_specificationmd) and [`glfm_internal_extensions.md`](#glfm_internal_extensionsmd).
- It also contains extra metadata about each example, such as:
- 1. `spec_txt_example_position` - The position of the example in the generated GLFM `spec.txt` file.
+ 1. `spec_example_position` - The position of the example in the generated GLFM `spec.txt` file.
- This value is the index order of each individual Markdown + HTML5 example in the file. It is _not_
the line number in the file.
- This value can be used to locate the example in the rendered `spec.html` file, because the standard
@@ -1159,49 +1232,49 @@ CommonMark, GFM, and GLFM example names, each with a uniquely identifying name.
examples where multiple examples exist for the same Section 7 subsection are
added to the end of the sub-section.
-`glfm_specification/example_snapshots/examples_index.yml` sample entries:
+`examples_index.yml` sample entries:
```yaml
02_01_00_preliminaries_characters_and_lines_1:
- spec_txt_example_position: 1
+ spec_example_position: 1
source_specification: commonmark
03_01_00_blocks_and_inlines_precedence_1:
- spec_txt_example_position: 12
+ spec_example_position: 12
source_specification: commonmark
05_03_00_container_blocks_task_list_items_1:
- spec_txt_example_position: 279
+ spec_example_position: 279
source_specification: github
06_04_00_inlines_emphasis_and_strong_emphasis_1:
- spec_txt_example_position: 360
+ spec_example_position: 360
source_specification: github
07_01_00_audio_link_1:
- spec_txt_example_position: 301
+ spec_example_position: 301
source_specification: gitlab
```
-#### `glfm_specification/example_snapshots/markdown.yml`
+##### `markdown.yml`
-[`glfm_specification/example_snapshots/markdown.yml`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/example_snapshots/markdown.yml) contains the original Markdown
-for each entry in `glfm_specification/example_snapshots/examples_index.yml`
+[`glfm_specification/output_example_snapshots/markdown.yml`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/output_example_snapshots/markdown.yml) contains the original Markdown
+for each entry in `glfm_specification/output_example_snapshots/examples_index.yml`:
- For CommonMark and GFM Markdown,
it is generated (or updated) from the standard GFM
`spec.txt` using the `update-example-snapshots.rb` script.
- For GLFM, it is generated (or updated) from the
- [`glfm_official_specification_examples.md`](#glfm_official_specification_examplesmd) and [`glfm_internal_extension_examples.md`](#glfm_internal_extension_examplesmd)
+ [`glfm_official_specification.md`](#glfm_official_specificationmd) and [`glfm_internal_extensions.md`](#glfm_internal_extensionsmd)
input specification files.
-`glfm_specification/example_snapshots/markdown.yml` sample entry:
+`glfm_specification/output_example_snapshots/markdown.yml` sample entry:
```yaml
06_04_00_inlines_emphasis_and_strong_emphasis_1: |
*foo bar*
```
-#### `glfm_specification/example_snapshots/html.yml`
+##### `html.yml`
-[`glfm_specification/example_snapshots/html.yml`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/example_snapshots/html.yml)
-contains the HTML for each entry in `glfm_specification/example_snapshots/examples_index.yml`
+[`glfm_specification/output_example_snapshots/html.yml`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/output_example_snapshots/html.yml)
+contains the HTML for each entry in `glfm_specification/output_example_snapshots/examples_index.yml`:
Three types of entries exist, with different HTML for each:
@@ -1209,16 +1282,16 @@ Three types of entries exist, with different HTML for each:
- The ["Canonical"](#canonicalization-of-html) HTML.
- For CommonMark and GFM examples, the HTML comes from the examples in `spec.txt`.
- For [GLFM official specification](#official-specifications) examples, it is generated/updated from
- [`glfm_official_specification_examples.md`](#glfm_official_specification_examplesmd).
+ [`glfm_official_specification.md`](#glfm_official_specificationmd).
- **Static**
- This is the static (backend (Ruby)-generated) HTML for each entry in
- `glfm_specification/example_snapshots/examples_index.yml`.
+ `glfm_specification/output_example_snapshots/examples_index.yml`.
- It is generated/updated from backend [Markdown API](../../../api/markdown.md)
(or the underlying internal classes) via the `update-example-snapshots.rb` script,
but can be manually updated for static examples with incomplete implementations.
- **WYSIWYG**
- The WYSIWYG (frontend, JavaScript-generated) HTML for each entry in
- `glfm_specification/example_snapshots/examples_index.yml`.
+ `glfm_specification/output_example_snapshots/examples_index.yml`.
- It is generated (or updated) from the frontend Content Editor implementation via the
`update-example-snapshots.rb` script. It can be manually updated for WYSIWYG
examples with incomplete implementations.
@@ -1226,7 +1299,7 @@ Three types of entries exist, with different HTML for each:
Any exceptions or failures which occur when generating HTML are replaced with an
`Error - check implementation` value.
-`glfm_specification/example_snapshots/html.yml` sample entry:
+`glfm_specification/output_example_snapshots/html.yml` sample entry:
```yaml
06_04_00_inlines_emphasis_and_strong_emphasis_1:
@@ -1242,16 +1315,16 @@ NOTE:
The actual `static` or `WYSIWYG` entries may differ from the example `html.yml`,
depending on how the implementations evolve.
-#### `glfm_specification/example_snapshots/prosemirror_json.yml`
+##### `prosemirror_json.yml`
-[`glfm_specification/example_snapshots/prosemirror_json.yml`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/example_snapshots/prosemirror_json.yml)
-contains the ProseMirror JSON for each entry in `glfm_specification/example_snapshots/examples_index.yml`
+[`glfm_specification/output_example_snapshots/prosemirror_json.yml`](https://gitlab.com/gitlab-org/gitlab/-/blob/master/glfm_specification/output_example_snapshots/prosemirror_json.yml)
+contains the ProseMirror JSON for each entry in `glfm_specification/output_example_snapshots/examples_index.yml`
- It is generated (or updated) from the frontend code via the `update-example-snapshots.rb`
script, but can be manually updated for examples with incomplete implementations.
- Any exceptions or failures when generating are replaced with a `Error - check implementation` value.
-`glfm_specification/example_snapshots/prosemirror_json.yml` sample entry:
+`glfm_specification/output_example_snapshots/prosemirror_json.yml` sample entry:
```yaml
06_04_00_inlines_emphasis_and_strong_emphasis_1: |-
@@ -1291,13 +1364,13 @@ This section describes how the scripts can be used to manage the GLFM specificat
1. If you are working on an in-progress feature or bug, make any necessary manual updates to the [input specification files](#input-specification-files). This may include:
1. Updating the canonical Markdown or HTML examples in
- [`glfm_official_specification_examples.md`](#glfm_official_specification_examplesmd) or [`glfm_internal_extension_examples.md`](#glfm_internal_extension_examplesmd).
+ [`glfm_official_specification.md`](#glfm_official_specificationmd) or [`glfm_internal_extensions.md`](#glfm_internal_extensionsmd).
1. Updating `glfm_specification/input/gitlab_flavored_markdown/glfm_example_status.yml` to reflect the current status of the examples or tests.
1. Run [`update-specification.rb`](#update-specificationrb-script) to update the `spec.txt` to reflect any changes which were made to the [input specification files](#input-specification-files).
1. Visually inspect and confirm any resulting changes to the [output specification files](#output-specification-files).
-1. Run [`update-example-snapshots.rb`](#update-example-snapshotsrb-script) to update the [example snapshot files](#example-snapshot-files).
-1. Visually inspect and confirm any resulting changes to the [example snapshot files](#example-snapshot-files).
+1. Run [`update-example-snapshots.rb`](#update-example-snapshotsrb-script) to update the [example snapshot files](#output-example-snapshot-files).
+1. Visually inspect and confirm any resulting changes to the [example snapshot files](#output-example-snapshot-files).
1. Run [`run-snapshot-tests.sh`](#run-snapshot-testssh-script) as a convenience script to run all relevant frontend (RSpec) and backend (Jest) tests which use the example snapshots.
1. Any frontend or backend snapshot test may also be run individually.
1. All frontend and backend tests are also run as part of the continuous integration suite, as they normally are.
-1. Commit any changes to the [input specification files](#input-specification-files), [output specification files](#output-specification-files), or [example snapshot files](#example-snapshot-files).
+1. Commit any changes to the [input specification files](#input-specification-files), [output specification files](#output-specification-files), or [example snapshot files](#output-example-snapshot-files).
diff --git a/doc/user/discussions/index.md b/doc/user/discussions/index.md
index ce1b85fbc76..40a118e3f23 100644
--- a/doc/user/discussions/index.md
+++ b/doc/user/discussions/index.md
@@ -44,8 +44,9 @@ You can quickly see which comments involve you, because
mentions for yourself (the user currently signed in) are highlighted
in a different color.
-Avoid mentioning `@all` in issues and merge requests, because it sends an email notification
-to all the members of that project's group. This might be interpreted as spam.
+Avoid mentioning `@all` in issues and merge requests. It sends an email notification
+to all members of that project's parent group, not only the participants of the project,
+and may be interpreted as spam.
Notifications and mentions can be disabled in
[a group's settings](../group/manage.md#disable-email-notifications).
diff --git a/doc/user/group/manage.md b/doc/user/group/manage.md
index bb76101556e..730691a89e8 100644
--- a/doc/user/group/manage.md
+++ b/doc/user/group/manage.md
@@ -823,7 +823,6 @@ Group.find_by_sql("SELECT * FROM namespaces WHERE name LIKE '%oup'")
If transferring a group doesn't work through the UI or API, you may want to attempt the transfer in a [Rails console session](../../administration/operations/rails_console.md#starting-a-rails-console-session):
WARNING:
-
Commands that change data can cause damage if not run correctly or under the right conditions. Always run commands in a test environment first and have a backup instance ready to restore.
```ruby
@@ -855,7 +854,6 @@ At times, a group deletion may get stuck. If needed, in a [Rails console session
you can attempt to delete a group using the following command:
WARNING:
-
Commands that change data can cause damage if not run correctly or under the right conditions. Always run commands in a test environment first and have a backup instance ready to restore.
```ruby
diff --git a/doc/user/infrastructure/iac/troubleshooting.md b/doc/user/infrastructure/iac/troubleshooting.md
index a1eecb909fb..3921c6a7dc8 100644
--- a/doc/user/infrastructure/iac/troubleshooting.md
+++ b/doc/user/infrastructure/iac/troubleshooting.md
@@ -121,3 +121,13 @@ To resolve this, ensure that:
- If you have set the `TF_HTTP_PASSWORD` CI/CD variable, make sure that you either:
- Set the same value as `TF_PASSWORD`
- Remove `TF_HTTP_PASSWORD` variable if your CI/CD job does not explicitly use it.
+
+### Enable Developer role access to destructive commands
+
+To permit a user with the Developer role to run destructive commands, you need a workaround:
+
+1. [Create a project access token](../../project/settings/project_access_tokens.md#create-a-project-access-token) with `api` scope.
+1. Add `TF_USERNAME` and `TF_PASSWORD` to your CI/CD variables:
+ 1. Set the value of `TF_USERNAME` to the username of your project access token.
+ 1. Set the value of `TF_PASSWORD` to the password of your project access token.
+ 1. Optional. Protect the variables to make them only available in pipelines that run on protected branches or protected tags.
diff --git a/doc/user/project/integrations/slack.md b/doc/user/project/integrations/slack.md
index a1bff1ea920..17dd5652196 100644
--- a/doc/user/project/integrations/slack.md
+++ b/doc/user/project/integrations/slack.md
@@ -134,7 +134,6 @@ To disable notifications for all projects that have Slack integration enabled,
[start a rails console session](../../../administration/operations/rails_console.md#starting-a-rails-console-session) and use a script similar to the following:
WARNING:
-
Commands that change data can cause damage if not run correctly or under the right conditions. Always run commands in a test environment first and have a backup instance ready to restore.
```ruby
diff --git a/doc/user/project/repository/mirror/index.md b/doc/user/project/repository/mirror/index.md
index 4ce162ac95e..2b578977bd2 100644
--- a/doc/user/project/repository/mirror/index.md
+++ b/doc/user/project/repository/mirror/index.md
@@ -326,7 +326,6 @@ repository mirroring, mirroring breaks when people leave the company. Use this
script to migrate disparate mirroring users and tokens into a single service account:
WARNING:
-
Commands that change data can cause damage if not run correctly or under the right conditions. Always run commands in a test environment first and have a backup instance ready to restore.
```ruby
diff --git a/doc/user/project/repository/push_rules.md b/doc/user/project/repository/push_rules.md
index d7ceb0ae131..bb9dc43d822 100644
--- a/doc/user/project/repository/push_rules.md
+++ b/doc/user/project/repository/push_rules.md
@@ -304,7 +304,6 @@ For example, to enable **Check whether the commit author is a GitLab user** and
and create a filter for allowing commits from a specific email domain only through rails console:
WARNING:
-
Commands that change data can cause damage if not run correctly or under the right conditions. Always run commands in a test environment first and have a backup instance ready to restore.
``` ruby
diff --git a/doc/user/project/working_with_projects.md b/doc/user/project/working_with_projects.md
index 709bc63e72b..067a0303277 100644
--- a/doc/user/project/working_with_projects.md
+++ b/doc/user/project/working_with_projects.md
@@ -516,7 +516,6 @@ If a project or repository has been updated but the state is not reflected in th
You can do so through [a Rails console session](../../administration/operations/rails_console.md#starting-a-rails-console-session) and one of the following:
WARNING:
-
Commands that change data can cause damage if not run correctly or under the right conditions. Always run commands in a test environment first and have a backup instance ready to restore.
```ruby
@@ -546,7 +545,6 @@ end
If a project cannot be deleted, you can attempt to delete it through [Rails console](../../administration/operations/rails_console.md#starting-a-rails-console-session).
WARNING:
-
Commands that change data can cause damage if not run correctly or under the right conditions. Always run commands in a test environment first and have a backup instance ready to restore.
```ruby
@@ -571,7 +569,6 @@ To toggle a specific feature, you can [start a Rails console session](../../admi
and run the following function:
WARNING:
-
Commands that change data can cause damage if not run correctly or under the right conditions. Always run commands in a test environment first and have a backup instance ready to restore.
```ruby
diff --git a/glfm_specification/input/gitlab_flavored_markdown/glfm_internal_extension_examples.md b/glfm_specification/input/gitlab_flavored_markdown/glfm_internal_extensions.md
index 171a8e430d3..d2b94806826 100644
--- a/glfm_specification/input/gitlab_flavored_markdown/glfm_internal_extension_examples.md
+++ b/glfm_specification/input/gitlab_flavored_markdown/glfm_internal_extensions.md
@@ -1,3 +1,4 @@
+<!-- BEGIN TESTS -->
# GitLab Internal Extension Markdown
## Audio
@@ -109,3 +110,4 @@ also requires an EE license enabling the `group_wikis` feature:
.
<p><a href="group-wikis-test-file">group-wikis-test-file</a></p>
````````````````````````````````
+<!-- END TESTS -->
diff --git a/glfm_specification/input/gitlab_flavored_markdown/glfm_intro.md b/glfm_specification/input/gitlab_flavored_markdown/glfm_intro.md
deleted file mode 100644
index b5351bf37de..00000000000
--- a/glfm_specification/input/gitlab_flavored_markdown/glfm_intro.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# Introduction
-
-TODO: Write a GitLab-specific version of the GitHub Flavored Markdown intro section.
diff --git a/glfm_specification/input/gitlab_flavored_markdown/glfm_official_specification_examples.md b/glfm_specification/input/gitlab_flavored_markdown/glfm_official_specification.md
index f2b62b1a4ac..e45ae62309d 100644
--- a/glfm_specification/input/gitlab_flavored_markdown/glfm_official_specification_examples.md
+++ b/glfm_specification/input/gitlab_flavored_markdown/glfm_official_specification.md
@@ -1,7 +1,12 @@
+# Introduction
+
+TODO: Write a GitLab-specific version of the GitHub Flavored Markdown intro section.
+
+<!-- BEGIN TESTS -->
# GitLab Official Specification Markdown
Currently, only some of the GitLab-specific markdown features are
-listed in this section. We will eventually add all
+listed in this section. We may eventually add all
GitLab-specific features currently listed as supported in the
[user-facing documentation for GitLab Flavored Markdown](https://docs.gitlab.com/ee/user/markdown.html).
@@ -275,3 +280,4 @@ A table of contents can be indented with up to three spaces.
</nav>
<h1>Heading 1</h1>
````````````````````````````````
+<!-- END TESTS -->
diff --git a/glfm_specification/example_snapshots/examples_index.yml b/glfm_specification/output_example_snapshots/examples_index.yml
index c0739912399..45d10679a71 100644
--- a/glfm_specification/example_snapshots/examples_index.yml
+++ b/glfm_specification/output_example_snapshots/examples_index.yml
@@ -1,2086 +1,2086 @@
---
02_01_00__preliminaries__tabs__001:
- spec_txt_example_position: 1
+ spec_example_position: 1
source_specification: commonmark
02_01_00__preliminaries__tabs__002:
- spec_txt_example_position: 2
+ spec_example_position: 2
source_specification: commonmark
02_01_00__preliminaries__tabs__003:
- spec_txt_example_position: 3
+ spec_example_position: 3
source_specification: commonmark
02_01_00__preliminaries__tabs__004:
- spec_txt_example_position: 4
+ spec_example_position: 4
source_specification: commonmark
02_01_00__preliminaries__tabs__005:
- spec_txt_example_position: 5
+ spec_example_position: 5
source_specification: commonmark
02_01_00__preliminaries__tabs__006:
- spec_txt_example_position: 6
+ spec_example_position: 6
source_specification: commonmark
02_01_00__preliminaries__tabs__007:
- spec_txt_example_position: 7
+ spec_example_position: 7
source_specification: commonmark
02_01_00__preliminaries__tabs__008:
- spec_txt_example_position: 8
+ spec_example_position: 8
source_specification: commonmark
02_01_00__preliminaries__tabs__009:
- spec_txt_example_position: 9
+ spec_example_position: 9
source_specification: commonmark
02_01_00__preliminaries__tabs__010:
- spec_txt_example_position: 10
+ spec_example_position: 10
source_specification: commonmark
02_01_00__preliminaries__tabs__011:
- spec_txt_example_position: 11
+ spec_example_position: 11
source_specification: commonmark
03_01_00__blocks_and_inlines__precedence__001:
- spec_txt_example_position: 12
+ spec_example_position: 12
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__001:
- spec_txt_example_position: 13
+ spec_example_position: 13
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__002:
- spec_txt_example_position: 14
+ spec_example_position: 14
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__003:
- spec_txt_example_position: 15
+ spec_example_position: 15
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__004:
- spec_txt_example_position: 16
+ spec_example_position: 16
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__005:
- spec_txt_example_position: 17
+ spec_example_position: 17
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__006:
- spec_txt_example_position: 18
+ spec_example_position: 18
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__007:
- spec_txt_example_position: 19
+ spec_example_position: 19
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__008:
- spec_txt_example_position: 20
+ spec_example_position: 20
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__009:
- spec_txt_example_position: 21
+ spec_example_position: 21
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__010:
- spec_txt_example_position: 22
+ spec_example_position: 22
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__011:
- spec_txt_example_position: 23
+ spec_example_position: 23
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__012:
- spec_txt_example_position: 24
+ spec_example_position: 24
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__013:
- spec_txt_example_position: 25
+ spec_example_position: 25
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__014:
- spec_txt_example_position: 26
+ spec_example_position: 26
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__015:
- spec_txt_example_position: 27
+ spec_example_position: 27
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__016:
- spec_txt_example_position: 28
+ spec_example_position: 28
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__017:
- spec_txt_example_position: 29
+ spec_example_position: 29
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__018:
- spec_txt_example_position: 30
+ spec_example_position: 30
source_specification: commonmark
04_01_00__leaf_blocks__thematic_breaks__019:
- spec_txt_example_position: 31
+ spec_example_position: 31
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__001:
- spec_txt_example_position: 32
+ spec_example_position: 32
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__002:
- spec_txt_example_position: 33
+ spec_example_position: 33
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__003:
- spec_txt_example_position: 34
+ spec_example_position: 34
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__004:
- spec_txt_example_position: 35
+ spec_example_position: 35
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__005:
- spec_txt_example_position: 36
+ spec_example_position: 36
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__006:
- spec_txt_example_position: 37
+ spec_example_position: 37
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__007:
- spec_txt_example_position: 38
+ spec_example_position: 38
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__008:
- spec_txt_example_position: 39
+ spec_example_position: 39
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__009:
- spec_txt_example_position: 40
+ spec_example_position: 40
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__010:
- spec_txt_example_position: 41
+ spec_example_position: 41
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__011:
- spec_txt_example_position: 42
+ spec_example_position: 42
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__012:
- spec_txt_example_position: 43
+ spec_example_position: 43
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__013:
- spec_txt_example_position: 44
+ spec_example_position: 44
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__014:
- spec_txt_example_position: 45
+ spec_example_position: 45
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__015:
- spec_txt_example_position: 46
+ spec_example_position: 46
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__016:
- spec_txt_example_position: 47
+ spec_example_position: 47
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__017:
- spec_txt_example_position: 48
+ spec_example_position: 48
source_specification: commonmark
04_02_00__leaf_blocks__atx_headings__018:
- spec_txt_example_position: 49
+ spec_example_position: 49
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__001:
- spec_txt_example_position: 50
+ spec_example_position: 50
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__002:
- spec_txt_example_position: 51
+ spec_example_position: 51
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__003:
- spec_txt_example_position: 52
+ spec_example_position: 52
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__004:
- spec_txt_example_position: 53
+ spec_example_position: 53
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__005:
- spec_txt_example_position: 54
+ spec_example_position: 54
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__006:
- spec_txt_example_position: 55
+ spec_example_position: 55
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__007:
- spec_txt_example_position: 56
+ spec_example_position: 56
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__008:
- spec_txt_example_position: 57
+ spec_example_position: 57
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__009:
- spec_txt_example_position: 58
+ spec_example_position: 58
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__010:
- spec_txt_example_position: 59
+ spec_example_position: 59
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__011:
- spec_txt_example_position: 60
+ spec_example_position: 60
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__012:
- spec_txt_example_position: 61
+ spec_example_position: 61
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__013:
- spec_txt_example_position: 62
+ spec_example_position: 62
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__014:
- spec_txt_example_position: 63
+ spec_example_position: 63
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__015:
- spec_txt_example_position: 64
+ spec_example_position: 64
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__016:
- spec_txt_example_position: 65
+ spec_example_position: 65
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__017:
- spec_txt_example_position: 66
+ spec_example_position: 66
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__018:
- spec_txt_example_position: 67
+ spec_example_position: 67
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__019:
- spec_txt_example_position: 68
+ spec_example_position: 68
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__020:
- spec_txt_example_position: 69
+ spec_example_position: 69
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__021:
- spec_txt_example_position: 70
+ spec_example_position: 70
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__022:
- spec_txt_example_position: 71
+ spec_example_position: 71
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__023:
- spec_txt_example_position: 72
+ spec_example_position: 72
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__024:
- spec_txt_example_position: 73
+ spec_example_position: 73
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__025:
- spec_txt_example_position: 74
+ spec_example_position: 74
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__026:
- spec_txt_example_position: 75
+ spec_example_position: 75
source_specification: commonmark
04_03_00__leaf_blocks__setext_headings__027:
- spec_txt_example_position: 76
+ spec_example_position: 76
source_specification: commonmark
04_04_00__leaf_blocks__indented_code_blocks__001:
- spec_txt_example_position: 77
+ spec_example_position: 77
source_specification: commonmark
04_04_00__leaf_blocks__indented_code_blocks__002:
- spec_txt_example_position: 78
+ spec_example_position: 78
source_specification: commonmark
04_04_00__leaf_blocks__indented_code_blocks__003:
- spec_txt_example_position: 79
+ spec_example_position: 79
source_specification: commonmark
04_04_00__leaf_blocks__indented_code_blocks__004:
- spec_txt_example_position: 80
+ spec_example_position: 80
source_specification: commonmark
04_04_00__leaf_blocks__indented_code_blocks__005:
- spec_txt_example_position: 81
+ spec_example_position: 81
source_specification: commonmark
04_04_00__leaf_blocks__indented_code_blocks__006:
- spec_txt_example_position: 82
+ spec_example_position: 82
source_specification: commonmark
04_04_00__leaf_blocks__indented_code_blocks__007:
- spec_txt_example_position: 83
+ spec_example_position: 83
source_specification: commonmark
04_04_00__leaf_blocks__indented_code_blocks__008:
- spec_txt_example_position: 84
+ spec_example_position: 84
source_specification: commonmark
04_04_00__leaf_blocks__indented_code_blocks__009:
- spec_txt_example_position: 85
+ spec_example_position: 85
source_specification: commonmark
04_04_00__leaf_blocks__indented_code_blocks__010:
- spec_txt_example_position: 86
+ spec_example_position: 86
source_specification: commonmark
04_04_00__leaf_blocks__indented_code_blocks__011:
- spec_txt_example_position: 87
+ spec_example_position: 87
source_specification: commonmark
04_04_00__leaf_blocks__indented_code_blocks__012:
- spec_txt_example_position: 88
+ spec_example_position: 88
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__001:
- spec_txt_example_position: 89
+ spec_example_position: 89
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__002:
- spec_txt_example_position: 90
+ spec_example_position: 90
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__003:
- spec_txt_example_position: 91
+ spec_example_position: 91
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__004:
- spec_txt_example_position: 92
+ spec_example_position: 92
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__005:
- spec_txt_example_position: 93
+ spec_example_position: 93
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__006:
- spec_txt_example_position: 94
+ spec_example_position: 94
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__007:
- spec_txt_example_position: 95
+ spec_example_position: 95
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__008:
- spec_txt_example_position: 96
+ spec_example_position: 96
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__009:
- spec_txt_example_position: 97
+ spec_example_position: 97
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__010:
- spec_txt_example_position: 98
+ spec_example_position: 98
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__011:
- spec_txt_example_position: 99
+ spec_example_position: 99
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__012:
- spec_txt_example_position: 100
+ spec_example_position: 100
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__013:
- spec_txt_example_position: 101
+ spec_example_position: 101
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__014:
- spec_txt_example_position: 102
+ spec_example_position: 102
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__015:
- spec_txt_example_position: 103
+ spec_example_position: 103
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__016:
- spec_txt_example_position: 104
+ spec_example_position: 104
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__017:
- spec_txt_example_position: 105
+ spec_example_position: 105
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__018:
- spec_txt_example_position: 106
+ spec_example_position: 106
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__019:
- spec_txt_example_position: 107
+ spec_example_position: 107
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__020:
- spec_txt_example_position: 108
+ spec_example_position: 108
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__021:
- spec_txt_example_position: 109
+ spec_example_position: 109
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__022:
- spec_txt_example_position: 110
+ spec_example_position: 110
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__023:
- spec_txt_example_position: 111
+ spec_example_position: 111
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__024:
- spec_txt_example_position: 112
+ spec_example_position: 112
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__025:
- spec_txt_example_position: 113
+ spec_example_position: 113
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__026:
- spec_txt_example_position: 114
+ spec_example_position: 114
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__027:
- spec_txt_example_position: 115
+ spec_example_position: 115
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__028:
- spec_txt_example_position: 116
+ spec_example_position: 116
source_specification: commonmark
04_05_00__leaf_blocks__fenced_code_blocks__029:
- spec_txt_example_position: 117
+ spec_example_position: 117
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__001:
- spec_txt_example_position: 118
+ spec_example_position: 118
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__002:
- spec_txt_example_position: 119
+ spec_example_position: 119
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__003:
- spec_txt_example_position: 120
+ spec_example_position: 120
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__004:
- spec_txt_example_position: 121
+ spec_example_position: 121
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__005:
- spec_txt_example_position: 122
+ spec_example_position: 122
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__006:
- spec_txt_example_position: 123
+ spec_example_position: 123
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__007:
- spec_txt_example_position: 124
+ spec_example_position: 124
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__008:
- spec_txt_example_position: 125
+ spec_example_position: 125
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__009:
- spec_txt_example_position: 126
+ spec_example_position: 126
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__010:
- spec_txt_example_position: 127
+ spec_example_position: 127
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__011:
- spec_txt_example_position: 128
+ spec_example_position: 128
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__012:
- spec_txt_example_position: 129
+ spec_example_position: 129
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__013:
- spec_txt_example_position: 130
+ spec_example_position: 130
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__014:
- spec_txt_example_position: 131
+ spec_example_position: 131
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__015:
- spec_txt_example_position: 132
+ spec_example_position: 132
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__016:
- spec_txt_example_position: 133
+ spec_example_position: 133
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__017:
- spec_txt_example_position: 134
+ spec_example_position: 134
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__018:
- spec_txt_example_position: 135
+ spec_example_position: 135
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__019:
- spec_txt_example_position: 136
+ spec_example_position: 136
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__020:
- spec_txt_example_position: 137
+ spec_example_position: 137
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__021:
- spec_txt_example_position: 138
+ spec_example_position: 138
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__022:
- spec_txt_example_position: 139
+ spec_example_position: 139
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__023:
- spec_txt_example_position: 140
+ spec_example_position: 140
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__024:
- spec_txt_example_position: 141
+ spec_example_position: 141
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__025:
- spec_txt_example_position: 142
+ spec_example_position: 142
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__026:
- spec_txt_example_position: 143
+ spec_example_position: 143
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__027:
- spec_txt_example_position: 144
+ spec_example_position: 144
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__028:
- spec_txt_example_position: 145
+ spec_example_position: 145
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__029:
- spec_txt_example_position: 146
+ spec_example_position: 146
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__030:
- spec_txt_example_position: 147
+ spec_example_position: 147
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__031:
- spec_txt_example_position: 148
+ spec_example_position: 148
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__032:
- spec_txt_example_position: 149
+ spec_example_position: 149
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__033:
- spec_txt_example_position: 150
+ spec_example_position: 150
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__034:
- spec_txt_example_position: 151
+ spec_example_position: 151
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__035:
- spec_txt_example_position: 152
+ spec_example_position: 152
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__036:
- spec_txt_example_position: 153
+ spec_example_position: 153
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__037:
- spec_txt_example_position: 154
+ spec_example_position: 154
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__038:
- spec_txt_example_position: 155
+ spec_example_position: 155
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__039:
- spec_txt_example_position: 156
+ spec_example_position: 156
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__040:
- spec_txt_example_position: 157
+ spec_example_position: 157
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__041:
- spec_txt_example_position: 158
+ spec_example_position: 158
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__042:
- spec_txt_example_position: 159
+ spec_example_position: 159
source_specification: commonmark
04_06_00__leaf_blocks__html_blocks__043:
- spec_txt_example_position: 160
+ spec_example_position: 160
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__001:
- spec_txt_example_position: 161
+ spec_example_position: 161
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__002:
- spec_txt_example_position: 162
+ spec_example_position: 162
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__003:
- spec_txt_example_position: 163
+ spec_example_position: 163
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__004:
- spec_txt_example_position: 164
+ spec_example_position: 164
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__005:
- spec_txt_example_position: 165
+ spec_example_position: 165
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__006:
- spec_txt_example_position: 166
+ spec_example_position: 166
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__007:
- spec_txt_example_position: 167
+ spec_example_position: 167
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__008:
- spec_txt_example_position: 168
+ spec_example_position: 168
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__009:
- spec_txt_example_position: 169
+ spec_example_position: 169
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__010:
- spec_txt_example_position: 170
+ spec_example_position: 170
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__011:
- spec_txt_example_position: 171
+ spec_example_position: 171
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__012:
- spec_txt_example_position: 172
+ spec_example_position: 172
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__013:
- spec_txt_example_position: 173
+ spec_example_position: 173
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__014:
- spec_txt_example_position: 174
+ spec_example_position: 174
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__015:
- spec_txt_example_position: 175
+ spec_example_position: 175
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__016:
- spec_txt_example_position: 176
+ spec_example_position: 176
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__017:
- spec_txt_example_position: 177
+ spec_example_position: 177
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__018:
- spec_txt_example_position: 178
+ spec_example_position: 178
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__019:
- spec_txt_example_position: 179
+ spec_example_position: 179
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__020:
- spec_txt_example_position: 180
+ spec_example_position: 180
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__021:
- spec_txt_example_position: 181
+ spec_example_position: 181
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__022:
- spec_txt_example_position: 182
+ spec_example_position: 182
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__023:
- spec_txt_example_position: 183
+ spec_example_position: 183
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__024:
- spec_txt_example_position: 184
+ spec_example_position: 184
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__025:
- spec_txt_example_position: 185
+ spec_example_position: 185
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__026:
- spec_txt_example_position: 186
+ spec_example_position: 186
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__027:
- spec_txt_example_position: 187
+ spec_example_position: 187
source_specification: commonmark
04_07_00__leaf_blocks__link_reference_definitions__028:
- spec_txt_example_position: 188
+ spec_example_position: 188
source_specification: commonmark
04_08_00__leaf_blocks__paragraphs__001:
- spec_txt_example_position: 189
+ spec_example_position: 189
source_specification: commonmark
04_08_00__leaf_blocks__paragraphs__002:
- spec_txt_example_position: 190
+ spec_example_position: 190
source_specification: commonmark
04_08_00__leaf_blocks__paragraphs__003:
- spec_txt_example_position: 191
+ spec_example_position: 191
source_specification: commonmark
04_08_00__leaf_blocks__paragraphs__004:
- spec_txt_example_position: 192
+ spec_example_position: 192
source_specification: commonmark
04_08_00__leaf_blocks__paragraphs__005:
- spec_txt_example_position: 193
+ spec_example_position: 193
source_specification: commonmark
04_08_00__leaf_blocks__paragraphs__006:
- spec_txt_example_position: 194
+ spec_example_position: 194
source_specification: commonmark
04_08_00__leaf_blocks__paragraphs__007:
- spec_txt_example_position: 195
+ spec_example_position: 195
source_specification: commonmark
04_08_00__leaf_blocks__paragraphs__008:
- spec_txt_example_position: 196
+ spec_example_position: 196
source_specification: commonmark
04_09_00__leaf_blocks__blank_lines__001:
- spec_txt_example_position: 197
+ spec_example_position: 197
source_specification: commonmark
04_10_00__leaf_blocks__tables_extension__001:
- spec_txt_example_position: 198
+ spec_example_position: 198
source_specification: github
04_10_00__leaf_blocks__tables_extension__002:
- spec_txt_example_position: 199
+ spec_example_position: 199
source_specification: github
04_10_00__leaf_blocks__tables_extension__003:
- spec_txt_example_position: 200
+ spec_example_position: 200
source_specification: github
04_10_00__leaf_blocks__tables_extension__004:
- spec_txt_example_position: 201
+ spec_example_position: 201
source_specification: github
04_10_00__leaf_blocks__tables_extension__005:
- spec_txt_example_position: 202
+ spec_example_position: 202
source_specification: github
04_10_00__leaf_blocks__tables_extension__006:
- spec_txt_example_position: 203
+ spec_example_position: 203
source_specification: github
04_10_00__leaf_blocks__tables_extension__007:
- spec_txt_example_position: 204
+ spec_example_position: 204
source_specification: github
04_10_00__leaf_blocks__tables_extension__008:
- spec_txt_example_position: 205
+ spec_example_position: 205
source_specification: github
05_01_00__container_blocks__block_quotes__001:
- spec_txt_example_position: 206
+ spec_example_position: 206
source_specification: commonmark
05_01_00__container_blocks__block_quotes__002:
- spec_txt_example_position: 207
+ spec_example_position: 207
source_specification: commonmark
05_01_00__container_blocks__block_quotes__003:
- spec_txt_example_position: 208
+ spec_example_position: 208
source_specification: commonmark
05_01_00__container_blocks__block_quotes__004:
- spec_txt_example_position: 209
+ spec_example_position: 209
source_specification: commonmark
05_01_00__container_blocks__block_quotes__005:
- spec_txt_example_position: 210
+ spec_example_position: 210
source_specification: commonmark
05_01_00__container_blocks__block_quotes__006:
- spec_txt_example_position: 211
+ spec_example_position: 211
source_specification: commonmark
05_01_00__container_blocks__block_quotes__007:
- spec_txt_example_position: 212
+ spec_example_position: 212
source_specification: commonmark
05_01_00__container_blocks__block_quotes__008:
- spec_txt_example_position: 213
+ spec_example_position: 213
source_specification: commonmark
05_01_00__container_blocks__block_quotes__009:
- spec_txt_example_position: 214
+ spec_example_position: 214
source_specification: commonmark
05_01_00__container_blocks__block_quotes__010:
- spec_txt_example_position: 215
+ spec_example_position: 215
source_specification: commonmark
05_01_00__container_blocks__block_quotes__011:
- spec_txt_example_position: 216
+ spec_example_position: 216
source_specification: commonmark
05_01_00__container_blocks__block_quotes__012:
- spec_txt_example_position: 217
+ spec_example_position: 217
source_specification: commonmark
05_01_00__container_blocks__block_quotes__013:
- spec_txt_example_position: 218
+ spec_example_position: 218
source_specification: commonmark
05_01_00__container_blocks__block_quotes__014:
- spec_txt_example_position: 219
+ spec_example_position: 219
source_specification: commonmark
05_01_00__container_blocks__block_quotes__015:
- spec_txt_example_position: 220
+ spec_example_position: 220
source_specification: commonmark
05_01_00__container_blocks__block_quotes__016:
- spec_txt_example_position: 221
+ spec_example_position: 221
source_specification: commonmark
05_01_00__container_blocks__block_quotes__017:
- spec_txt_example_position: 222
+ spec_example_position: 222
source_specification: commonmark
05_01_00__container_blocks__block_quotes__018:
- spec_txt_example_position: 223
+ spec_example_position: 223
source_specification: commonmark
05_01_00__container_blocks__block_quotes__019:
- spec_txt_example_position: 224
+ spec_example_position: 224
source_specification: commonmark
05_01_00__container_blocks__block_quotes__020:
- spec_txt_example_position: 225
+ spec_example_position: 225
source_specification: commonmark
05_01_00__container_blocks__block_quotes__021:
- spec_txt_example_position: 226
+ spec_example_position: 226
source_specification: commonmark
05_01_00__container_blocks__block_quotes__022:
- spec_txt_example_position: 227
+ spec_example_position: 227
source_specification: commonmark
05_01_00__container_blocks__block_quotes__023:
- spec_txt_example_position: 228
+ spec_example_position: 228
source_specification: commonmark
05_01_00__container_blocks__block_quotes__024:
- spec_txt_example_position: 229
+ spec_example_position: 229
source_specification: commonmark
05_01_00__container_blocks__block_quotes__025:
- spec_txt_example_position: 230
+ spec_example_position: 230
source_specification: commonmark
05_02_00__container_blocks__list_items__001:
- spec_txt_example_position: 231
+ spec_example_position: 231
source_specification: commonmark
05_02_00__container_blocks__list_items__002:
- spec_txt_example_position: 232
+ spec_example_position: 232
source_specification: commonmark
05_02_00__container_blocks__list_items__003:
- spec_txt_example_position: 233
+ spec_example_position: 233
source_specification: commonmark
05_02_00__container_blocks__list_items__004:
- spec_txt_example_position: 234
+ spec_example_position: 234
source_specification: commonmark
05_02_00__container_blocks__list_items__005:
- spec_txt_example_position: 235
+ spec_example_position: 235
source_specification: commonmark
05_02_00__container_blocks__list_items__006:
- spec_txt_example_position: 236
+ spec_example_position: 236
source_specification: commonmark
05_02_00__container_blocks__list_items__007:
- spec_txt_example_position: 237
+ spec_example_position: 237
source_specification: commonmark
05_02_00__container_blocks__list_items__008:
- spec_txt_example_position: 238
+ spec_example_position: 238
source_specification: commonmark
05_02_00__container_blocks__list_items__009:
- spec_txt_example_position: 239
+ spec_example_position: 239
source_specification: commonmark
05_02_00__container_blocks__list_items__010:
- spec_txt_example_position: 240
+ spec_example_position: 240
source_specification: commonmark
05_02_00__container_blocks__list_items__011:
- spec_txt_example_position: 241
+ spec_example_position: 241
source_specification: commonmark
05_02_00__container_blocks__list_items__012:
- spec_txt_example_position: 242
+ spec_example_position: 242
source_specification: commonmark
05_02_00__container_blocks__list_items__013:
- spec_txt_example_position: 243
+ spec_example_position: 243
source_specification: commonmark
05_02_00__container_blocks__list_items__014:
- spec_txt_example_position: 244
+ spec_example_position: 244
source_specification: commonmark
05_02_00__container_blocks__list_items__015:
- spec_txt_example_position: 245
+ spec_example_position: 245
source_specification: commonmark
05_02_00__container_blocks__list_items__016:
- spec_txt_example_position: 246
+ spec_example_position: 246
source_specification: commonmark
05_02_00__container_blocks__list_items__017:
- spec_txt_example_position: 247
+ spec_example_position: 247
source_specification: commonmark
05_02_00__container_blocks__list_items__018:
- spec_txt_example_position: 248
+ spec_example_position: 248
source_specification: commonmark
05_02_00__container_blocks__list_items__019:
- spec_txt_example_position: 249
+ spec_example_position: 249
source_specification: commonmark
05_02_00__container_blocks__list_items__020:
- spec_txt_example_position: 250
+ spec_example_position: 250
source_specification: commonmark
05_02_00__container_blocks__list_items__021:
- spec_txt_example_position: 251
+ spec_example_position: 251
source_specification: commonmark
05_02_00__container_blocks__list_items__022:
- spec_txt_example_position: 252
+ spec_example_position: 252
source_specification: commonmark
05_02_00__container_blocks__list_items__023:
- spec_txt_example_position: 253
+ spec_example_position: 253
source_specification: commonmark
05_02_00__container_blocks__list_items__024:
- spec_txt_example_position: 254
+ spec_example_position: 254
source_specification: commonmark
05_02_00__container_blocks__list_items__025:
- spec_txt_example_position: 255
+ spec_example_position: 255
source_specification: commonmark
05_02_00__container_blocks__list_items__026:
- spec_txt_example_position: 256
+ spec_example_position: 256
source_specification: commonmark
05_02_00__container_blocks__list_items__027:
- spec_txt_example_position: 257
+ spec_example_position: 257
source_specification: commonmark
05_02_00__container_blocks__list_items__028:
- spec_txt_example_position: 258
+ spec_example_position: 258
source_specification: commonmark
05_02_00__container_blocks__list_items__029:
- spec_txt_example_position: 259
+ spec_example_position: 259
source_specification: commonmark
05_02_00__container_blocks__list_items__030:
- spec_txt_example_position: 260
+ spec_example_position: 260
source_specification: commonmark
05_02_00__container_blocks__list_items__031:
- spec_txt_example_position: 261
+ spec_example_position: 261
source_specification: commonmark
05_02_00__container_blocks__list_items__032:
- spec_txt_example_position: 262
+ spec_example_position: 262
source_specification: commonmark
05_02_00__container_blocks__list_items__033:
- spec_txt_example_position: 263
+ spec_example_position: 263
source_specification: commonmark
05_02_00__container_blocks__list_items__034:
- spec_txt_example_position: 264
+ spec_example_position: 264
source_specification: commonmark
05_02_00__container_blocks__list_items__035:
- spec_txt_example_position: 265
+ spec_example_position: 265
source_specification: commonmark
05_02_00__container_blocks__list_items__036:
- spec_txt_example_position: 266
+ spec_example_position: 266
source_specification: commonmark
05_02_00__container_blocks__list_items__037:
- spec_txt_example_position: 267
+ spec_example_position: 267
source_specification: commonmark
05_02_00__container_blocks__list_items__038:
- spec_txt_example_position: 268
+ spec_example_position: 268
source_specification: commonmark
05_02_00__container_blocks__list_items__039:
- spec_txt_example_position: 269
+ spec_example_position: 269
source_specification: commonmark
05_02_00__container_blocks__list_items__040:
- spec_txt_example_position: 270
+ spec_example_position: 270
source_specification: commonmark
05_02_00__container_blocks__list_items__041:
- spec_txt_example_position: 271
+ spec_example_position: 271
source_specification: commonmark
05_02_00__container_blocks__list_items__042:
- spec_txt_example_position: 272
+ spec_example_position: 272
source_specification: commonmark
05_02_00__container_blocks__list_items__043:
- spec_txt_example_position: 273
+ spec_example_position: 273
source_specification: commonmark
05_02_00__container_blocks__list_items__044:
- spec_txt_example_position: 274
+ spec_example_position: 274
source_specification: commonmark
05_02_00__container_blocks__list_items__045:
- spec_txt_example_position: 275
+ spec_example_position: 275
source_specification: commonmark
05_02_00__container_blocks__list_items__046:
- spec_txt_example_position: 276
+ spec_example_position: 276
source_specification: commonmark
05_02_00__container_blocks__list_items__047:
- spec_txt_example_position: 277
+ spec_example_position: 277
source_specification: commonmark
05_02_00__container_blocks__list_items__048:
- spec_txt_example_position: 278
+ spec_example_position: 278
source_specification: commonmark
05_04_00__container_blocks__lists__001:
- spec_txt_example_position: 281
+ spec_example_position: 281
source_specification: commonmark
05_04_00__container_blocks__lists__002:
- spec_txt_example_position: 282
+ spec_example_position: 282
source_specification: commonmark
05_04_00__container_blocks__lists__003:
- spec_txt_example_position: 283
+ spec_example_position: 283
source_specification: commonmark
05_04_00__container_blocks__lists__004:
- spec_txt_example_position: 284
+ spec_example_position: 284
source_specification: commonmark
05_04_00__container_blocks__lists__005:
- spec_txt_example_position: 285
+ spec_example_position: 285
source_specification: commonmark
05_04_00__container_blocks__lists__006:
- spec_txt_example_position: 286
+ spec_example_position: 286
source_specification: commonmark
05_04_00__container_blocks__lists__007:
- spec_txt_example_position: 287
+ spec_example_position: 287
source_specification: commonmark
05_04_00__container_blocks__lists__008:
- spec_txt_example_position: 288
+ spec_example_position: 288
source_specification: commonmark
05_04_00__container_blocks__lists__009:
- spec_txt_example_position: 289
+ spec_example_position: 289
source_specification: commonmark
05_04_00__container_blocks__lists__010:
- spec_txt_example_position: 290
+ spec_example_position: 290
source_specification: commonmark
05_04_00__container_blocks__lists__011:
- spec_txt_example_position: 291
+ spec_example_position: 291
source_specification: commonmark
05_04_00__container_blocks__lists__012:
- spec_txt_example_position: 292
+ spec_example_position: 292
source_specification: commonmark
05_04_00__container_blocks__lists__013:
- spec_txt_example_position: 293
+ spec_example_position: 293
source_specification: commonmark
05_04_00__container_blocks__lists__014:
- spec_txt_example_position: 294
+ spec_example_position: 294
source_specification: commonmark
05_04_00__container_blocks__lists__015:
- spec_txt_example_position: 295
+ spec_example_position: 295
source_specification: commonmark
05_04_00__container_blocks__lists__016:
- spec_txt_example_position: 296
+ spec_example_position: 296
source_specification: commonmark
05_04_00__container_blocks__lists__017:
- spec_txt_example_position: 297
+ spec_example_position: 297
source_specification: commonmark
05_04_00__container_blocks__lists__018:
- spec_txt_example_position: 298
+ spec_example_position: 298
source_specification: commonmark
05_04_00__container_blocks__lists__019:
- spec_txt_example_position: 299
+ spec_example_position: 299
source_specification: commonmark
05_04_00__container_blocks__lists__020:
- spec_txt_example_position: 300
+ spec_example_position: 300
source_specification: commonmark
05_04_00__container_blocks__lists__021:
- spec_txt_example_position: 301
+ spec_example_position: 301
source_specification: commonmark
05_04_00__container_blocks__lists__022:
- spec_txt_example_position: 302
+ spec_example_position: 302
source_specification: commonmark
05_04_00__container_blocks__lists__023:
- spec_txt_example_position: 303
+ spec_example_position: 303
source_specification: commonmark
05_04_00__container_blocks__lists__024:
- spec_txt_example_position: 304
+ spec_example_position: 304
source_specification: commonmark
05_04_00__container_blocks__lists__025:
- spec_txt_example_position: 305
+ spec_example_position: 305
source_specification: commonmark
05_04_00__container_blocks__lists__026:
- spec_txt_example_position: 306
+ spec_example_position: 306
source_specification: commonmark
06_01_00__inlines__001:
- spec_txt_example_position: 307
+ spec_example_position: 307
source_specification: commonmark
06_02_00__inlines__backslash_escapes__001:
- spec_txt_example_position: 308
+ spec_example_position: 308
source_specification: commonmark
06_02_00__inlines__backslash_escapes__002:
- spec_txt_example_position: 309
+ spec_example_position: 309
source_specification: commonmark
06_02_00__inlines__backslash_escapes__003:
- spec_txt_example_position: 310
+ spec_example_position: 310
source_specification: commonmark
06_02_00__inlines__backslash_escapes__004:
- spec_txt_example_position: 311
+ spec_example_position: 311
source_specification: commonmark
06_02_00__inlines__backslash_escapes__005:
- spec_txt_example_position: 312
+ spec_example_position: 312
source_specification: commonmark
06_02_00__inlines__backslash_escapes__006:
- spec_txt_example_position: 313
+ spec_example_position: 313
source_specification: commonmark
06_02_00__inlines__backslash_escapes__007:
- spec_txt_example_position: 314
+ spec_example_position: 314
source_specification: commonmark
06_02_00__inlines__backslash_escapes__008:
- spec_txt_example_position: 315
+ spec_example_position: 315
source_specification: commonmark
06_02_00__inlines__backslash_escapes__009:
- spec_txt_example_position: 316
+ spec_example_position: 316
source_specification: commonmark
06_02_00__inlines__backslash_escapes__010:
- spec_txt_example_position: 317
+ spec_example_position: 317
source_specification: commonmark
06_02_00__inlines__backslash_escapes__011:
- spec_txt_example_position: 318
+ spec_example_position: 318
source_specification: commonmark
06_02_00__inlines__backslash_escapes__012:
- spec_txt_example_position: 319
+ spec_example_position: 319
source_specification: commonmark
06_02_00__inlines__backslash_escapes__013:
- spec_txt_example_position: 320
+ spec_example_position: 320
source_specification: commonmark
06_03_00__inlines__entity_and_numeric_character_references__001:
- spec_txt_example_position: 321
+ spec_example_position: 321
source_specification: commonmark
06_03_00__inlines__entity_and_numeric_character_references__002:
- spec_txt_example_position: 322
+ spec_example_position: 322
source_specification: commonmark
06_03_00__inlines__entity_and_numeric_character_references__003:
- spec_txt_example_position: 323
+ spec_example_position: 323
source_specification: commonmark
06_03_00__inlines__entity_and_numeric_character_references__004:
- spec_txt_example_position: 324
+ spec_example_position: 324
source_specification: commonmark
06_03_00__inlines__entity_and_numeric_character_references__005:
- spec_txt_example_position: 325
+ spec_example_position: 325
source_specification: commonmark
06_03_00__inlines__entity_and_numeric_character_references__006:
- spec_txt_example_position: 326
+ spec_example_position: 326
source_specification: commonmark
06_03_00__inlines__entity_and_numeric_character_references__007:
- spec_txt_example_position: 327
+ spec_example_position: 327
source_specification: commonmark
06_03_00__inlines__entity_and_numeric_character_references__008:
- spec_txt_example_position: 328
+ spec_example_position: 328
source_specification: commonmark
06_03_00__inlines__entity_and_numeric_character_references__009:
- spec_txt_example_position: 329
+ spec_example_position: 329
source_specification: commonmark
06_03_00__inlines__entity_and_numeric_character_references__010:
- spec_txt_example_position: 330
+ spec_example_position: 330
source_specification: commonmark
06_03_00__inlines__entity_and_numeric_character_references__011:
- spec_txt_example_position: 331
+ spec_example_position: 331
source_specification: commonmark
06_03_00__inlines__entity_and_numeric_character_references__012:
- spec_txt_example_position: 332
+ spec_example_position: 332
source_specification: commonmark
06_03_00__inlines__entity_and_numeric_character_references__013:
- spec_txt_example_position: 333
+ spec_example_position: 333
source_specification: commonmark
06_03_00__inlines__entity_and_numeric_character_references__014:
- spec_txt_example_position: 334
+ spec_example_position: 334
source_specification: commonmark
06_03_00__inlines__entity_and_numeric_character_references__015:
- spec_txt_example_position: 335
+ spec_example_position: 335
source_specification: commonmark
06_03_00__inlines__entity_and_numeric_character_references__016:
- spec_txt_example_position: 336
+ spec_example_position: 336
source_specification: commonmark
06_03_00__inlines__entity_and_numeric_character_references__017:
- spec_txt_example_position: 337
+ spec_example_position: 337
source_specification: commonmark
06_04_00__inlines__code_spans__001:
- spec_txt_example_position: 338
+ spec_example_position: 338
source_specification: commonmark
06_04_00__inlines__code_spans__002:
- spec_txt_example_position: 339
+ spec_example_position: 339
source_specification: commonmark
06_04_00__inlines__code_spans__003:
- spec_txt_example_position: 340
+ spec_example_position: 340
source_specification: commonmark
06_04_00__inlines__code_spans__004:
- spec_txt_example_position: 341
+ spec_example_position: 341
source_specification: commonmark
06_04_00__inlines__code_spans__005:
- spec_txt_example_position: 342
+ spec_example_position: 342
source_specification: commonmark
06_04_00__inlines__code_spans__006:
- spec_txt_example_position: 343
+ spec_example_position: 343
source_specification: commonmark
06_04_00__inlines__code_spans__007:
- spec_txt_example_position: 344
+ spec_example_position: 344
source_specification: commonmark
06_04_00__inlines__code_spans__008:
- spec_txt_example_position: 345
+ spec_example_position: 345
source_specification: commonmark
06_04_00__inlines__code_spans__009:
- spec_txt_example_position: 346
+ spec_example_position: 346
source_specification: commonmark
06_04_00__inlines__code_spans__010:
- spec_txt_example_position: 347
+ spec_example_position: 347
source_specification: commonmark
06_04_00__inlines__code_spans__011:
- spec_txt_example_position: 348
+ spec_example_position: 348
source_specification: commonmark
06_04_00__inlines__code_spans__012:
- spec_txt_example_position: 349
+ spec_example_position: 349
source_specification: commonmark
06_04_00__inlines__code_spans__013:
- spec_txt_example_position: 350
+ spec_example_position: 350
source_specification: commonmark
06_04_00__inlines__code_spans__014:
- spec_txt_example_position: 351
+ spec_example_position: 351
source_specification: commonmark
06_04_00__inlines__code_spans__015:
- spec_txt_example_position: 352
+ spec_example_position: 352
source_specification: commonmark
06_04_00__inlines__code_spans__016:
- spec_txt_example_position: 353
+ spec_example_position: 353
source_specification: commonmark
06_04_00__inlines__code_spans__017:
- spec_txt_example_position: 354
+ spec_example_position: 354
source_specification: commonmark
06_04_00__inlines__code_spans__018:
- spec_txt_example_position: 355
+ spec_example_position: 355
source_specification: commonmark
06_04_00__inlines__code_spans__019:
- spec_txt_example_position: 356
+ spec_example_position: 356
source_specification: commonmark
06_04_00__inlines__code_spans__020:
- spec_txt_example_position: 357
+ spec_example_position: 357
source_specification: commonmark
06_04_00__inlines__code_spans__021:
- spec_txt_example_position: 358
+ spec_example_position: 358
source_specification: commonmark
06_04_00__inlines__code_spans__022:
- spec_txt_example_position: 359
+ spec_example_position: 359
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__001:
- spec_txt_example_position: 360
+ spec_example_position: 360
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__002:
- spec_txt_example_position: 361
+ spec_example_position: 361
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__003:
- spec_txt_example_position: 362
+ spec_example_position: 362
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__004:
- spec_txt_example_position: 363
+ spec_example_position: 363
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__005:
- spec_txt_example_position: 364
+ spec_example_position: 364
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__006:
- spec_txt_example_position: 365
+ spec_example_position: 365
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__007:
- spec_txt_example_position: 366
+ spec_example_position: 366
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__008:
- spec_txt_example_position: 367
+ spec_example_position: 367
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__009:
- spec_txt_example_position: 368
+ spec_example_position: 368
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__010:
- spec_txt_example_position: 369
+ spec_example_position: 369
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__011:
- spec_txt_example_position: 370
+ spec_example_position: 370
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__012:
- spec_txt_example_position: 371
+ spec_example_position: 371
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__013:
- spec_txt_example_position: 372
+ spec_example_position: 372
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__014:
- spec_txt_example_position: 373
+ spec_example_position: 373
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__015:
- spec_txt_example_position: 374
+ spec_example_position: 374
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__016:
- spec_txt_example_position: 375
+ spec_example_position: 375
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__017:
- spec_txt_example_position: 376
+ spec_example_position: 376
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__018:
- spec_txt_example_position: 377
+ spec_example_position: 377
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__019:
- spec_txt_example_position: 378
+ spec_example_position: 378
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__020:
- spec_txt_example_position: 379
+ spec_example_position: 379
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__021:
- spec_txt_example_position: 380
+ spec_example_position: 380
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__022:
- spec_txt_example_position: 381
+ spec_example_position: 381
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__023:
- spec_txt_example_position: 382
+ spec_example_position: 382
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__024:
- spec_txt_example_position: 383
+ spec_example_position: 383
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__025:
- spec_txt_example_position: 384
+ spec_example_position: 384
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__026:
- spec_txt_example_position: 385
+ spec_example_position: 385
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__027:
- spec_txt_example_position: 386
+ spec_example_position: 386
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__028:
- spec_txt_example_position: 387
+ spec_example_position: 387
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__029:
- spec_txt_example_position: 388
+ spec_example_position: 388
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__030:
- spec_txt_example_position: 389
+ spec_example_position: 389
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__031:
- spec_txt_example_position: 390
+ spec_example_position: 390
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__032:
- spec_txt_example_position: 391
+ spec_example_position: 391
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__033:
- spec_txt_example_position: 392
+ spec_example_position: 392
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__034:
- spec_txt_example_position: 393
+ spec_example_position: 393
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__035:
- spec_txt_example_position: 394
+ spec_example_position: 394
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__036:
- spec_txt_example_position: 395
+ spec_example_position: 395
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__037:
- spec_txt_example_position: 396
+ spec_example_position: 396
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__038:
- spec_txt_example_position: 397
+ spec_example_position: 397
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__039:
- spec_txt_example_position: 398
+ spec_example_position: 398
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__040:
- spec_txt_example_position: 399
+ spec_example_position: 399
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__041:
- spec_txt_example_position: 400
+ spec_example_position: 400
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__042:
- spec_txt_example_position: 401
+ spec_example_position: 401
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__043:
- spec_txt_example_position: 402
+ spec_example_position: 402
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__044:
- spec_txt_example_position: 403
+ spec_example_position: 403
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__045:
- spec_txt_example_position: 404
+ spec_example_position: 404
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__046:
- spec_txt_example_position: 405
+ spec_example_position: 405
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__047:
- spec_txt_example_position: 406
+ spec_example_position: 406
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__048:
- spec_txt_example_position: 407
+ spec_example_position: 407
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__049:
- spec_txt_example_position: 408
+ spec_example_position: 408
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__050:
- spec_txt_example_position: 409
+ spec_example_position: 409
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__051:
- spec_txt_example_position: 410
+ spec_example_position: 410
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__052:
- spec_txt_example_position: 411
+ spec_example_position: 411
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__053:
- spec_txt_example_position: 412
+ spec_example_position: 412
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__054:
- spec_txt_example_position: 413
+ spec_example_position: 413
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__055:
- spec_txt_example_position: 414
+ spec_example_position: 414
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__056:
- spec_txt_example_position: 415
+ spec_example_position: 415
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__057:
- spec_txt_example_position: 416
+ spec_example_position: 416
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__058:
- spec_txt_example_position: 417
+ spec_example_position: 417
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__059:
- spec_txt_example_position: 418
+ spec_example_position: 418
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__060:
- spec_txt_example_position: 419
+ spec_example_position: 419
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__061:
- spec_txt_example_position: 420
+ spec_example_position: 420
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__062:
- spec_txt_example_position: 421
+ spec_example_position: 421
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__063:
- spec_txt_example_position: 422
+ spec_example_position: 422
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__064:
- spec_txt_example_position: 423
+ spec_example_position: 423
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__065:
- spec_txt_example_position: 424
+ spec_example_position: 424
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__066:
- spec_txt_example_position: 425
+ spec_example_position: 425
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__067:
- spec_txt_example_position: 426
+ spec_example_position: 426
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__068:
- spec_txt_example_position: 427
+ spec_example_position: 427
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__069:
- spec_txt_example_position: 428
+ spec_example_position: 428
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__070:
- spec_txt_example_position: 429
+ spec_example_position: 429
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__071:
- spec_txt_example_position: 430
+ spec_example_position: 430
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__072:
- spec_txt_example_position: 431
+ spec_example_position: 431
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__073:
- spec_txt_example_position: 432
+ spec_example_position: 432
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__074:
- spec_txt_example_position: 433
+ spec_example_position: 433
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__075:
- spec_txt_example_position: 434
+ spec_example_position: 434
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__076:
- spec_txt_example_position: 435
+ spec_example_position: 435
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__077:
- spec_txt_example_position: 436
+ spec_example_position: 436
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__078:
- spec_txt_example_position: 437
+ spec_example_position: 437
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__079:
- spec_txt_example_position: 438
+ spec_example_position: 438
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__080:
- spec_txt_example_position: 439
+ spec_example_position: 439
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__081:
- spec_txt_example_position: 440
+ spec_example_position: 440
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__082:
- spec_txt_example_position: 441
+ spec_example_position: 441
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__083:
- spec_txt_example_position: 442
+ spec_example_position: 442
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__084:
- spec_txt_example_position: 443
+ spec_example_position: 443
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__085:
- spec_txt_example_position: 444
+ spec_example_position: 444
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__086:
- spec_txt_example_position: 445
+ spec_example_position: 445
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__087:
- spec_txt_example_position: 446
+ spec_example_position: 446
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__088:
- spec_txt_example_position: 447
+ spec_example_position: 447
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__089:
- spec_txt_example_position: 448
+ spec_example_position: 448
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__090:
- spec_txt_example_position: 449
+ spec_example_position: 449
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__091:
- spec_txt_example_position: 450
+ spec_example_position: 450
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__092:
- spec_txt_example_position: 451
+ spec_example_position: 451
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__093:
- spec_txt_example_position: 452
+ spec_example_position: 452
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__094:
- spec_txt_example_position: 453
+ spec_example_position: 453
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__095:
- spec_txt_example_position: 454
+ spec_example_position: 454
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__096:
- spec_txt_example_position: 455
+ spec_example_position: 455
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__097:
- spec_txt_example_position: 456
+ spec_example_position: 456
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__098:
- spec_txt_example_position: 457
+ spec_example_position: 457
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__099:
- spec_txt_example_position: 458
+ spec_example_position: 458
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__100:
- spec_txt_example_position: 459
+ spec_example_position: 459
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__101:
- spec_txt_example_position: 460
+ spec_example_position: 460
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__102:
- spec_txt_example_position: 461
+ spec_example_position: 461
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__103:
- spec_txt_example_position: 462
+ spec_example_position: 462
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__104:
- spec_txt_example_position: 463
+ spec_example_position: 463
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__105:
- spec_txt_example_position: 464
+ spec_example_position: 464
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__106:
- spec_txt_example_position: 465
+ spec_example_position: 465
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__107:
- spec_txt_example_position: 466
+ spec_example_position: 466
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__108:
- spec_txt_example_position: 467
+ spec_example_position: 467
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__109:
- spec_txt_example_position: 468
+ spec_example_position: 468
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__110:
- spec_txt_example_position: 469
+ spec_example_position: 469
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__111:
- spec_txt_example_position: 470
+ spec_example_position: 470
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__112:
- spec_txt_example_position: 471
+ spec_example_position: 471
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__113:
- spec_txt_example_position: 472
+ spec_example_position: 472
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__114:
- spec_txt_example_position: 473
+ spec_example_position: 473
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__115:
- spec_txt_example_position: 474
+ spec_example_position: 474
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__116:
- spec_txt_example_position: 475
+ spec_example_position: 475
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__117:
- spec_txt_example_position: 476
+ spec_example_position: 476
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__118:
- spec_txt_example_position: 477
+ spec_example_position: 477
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__119:
- spec_txt_example_position: 478
+ spec_example_position: 478
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__120:
- spec_txt_example_position: 479
+ spec_example_position: 479
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__121:
- spec_txt_example_position: 480
+ spec_example_position: 480
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__122:
- spec_txt_example_position: 481
+ spec_example_position: 481
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__123:
- spec_txt_example_position: 482
+ spec_example_position: 482
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__124:
- spec_txt_example_position: 483
+ spec_example_position: 483
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__125:
- spec_txt_example_position: 484
+ spec_example_position: 484
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__126:
- spec_txt_example_position: 485
+ spec_example_position: 485
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__127:
- spec_txt_example_position: 486
+ spec_example_position: 486
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__128:
- spec_txt_example_position: 487
+ spec_example_position: 487
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__129:
- spec_txt_example_position: 488
+ spec_example_position: 488
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__130:
- spec_txt_example_position: 489
+ spec_example_position: 489
source_specification: commonmark
06_05_00__inlines__emphasis_and_strong_emphasis__131:
- spec_txt_example_position: 490
+ spec_example_position: 490
source_specification: commonmark
06_06_00__inlines__strikethrough_extension__001:
- spec_txt_example_position: 491
+ spec_example_position: 491
source_specification: github
06_06_00__inlines__strikethrough_extension__002:
- spec_txt_example_position: 492
+ spec_example_position: 492
source_specification: github
06_07_00__inlines__links__001:
- spec_txt_example_position: 493
+ spec_example_position: 493
source_specification: commonmark
06_07_00__inlines__links__002:
- spec_txt_example_position: 494
+ spec_example_position: 494
source_specification: commonmark
06_07_00__inlines__links__003:
- spec_txt_example_position: 495
+ spec_example_position: 495
source_specification: commonmark
06_07_00__inlines__links__004:
- spec_txt_example_position: 496
+ spec_example_position: 496
source_specification: commonmark
06_07_00__inlines__links__005:
- spec_txt_example_position: 497
+ spec_example_position: 497
source_specification: commonmark
06_07_00__inlines__links__006:
- spec_txt_example_position: 498
+ spec_example_position: 498
source_specification: commonmark
06_07_00__inlines__links__007:
- spec_txt_example_position: 499
+ spec_example_position: 499
source_specification: commonmark
06_07_00__inlines__links__008:
- spec_txt_example_position: 500
+ spec_example_position: 500
source_specification: commonmark
06_07_00__inlines__links__009:
- spec_txt_example_position: 501
+ spec_example_position: 501
source_specification: commonmark
06_07_00__inlines__links__010:
- spec_txt_example_position: 502
+ spec_example_position: 502
source_specification: commonmark
06_07_00__inlines__links__011:
- spec_txt_example_position: 503
+ spec_example_position: 503
source_specification: commonmark
06_07_00__inlines__links__012:
- spec_txt_example_position: 504
+ spec_example_position: 504
source_specification: commonmark
06_07_00__inlines__links__013:
- spec_txt_example_position: 505
+ spec_example_position: 505
source_specification: commonmark
06_07_00__inlines__links__014:
- spec_txt_example_position: 506
+ spec_example_position: 506
source_specification: commonmark
06_07_00__inlines__links__015:
- spec_txt_example_position: 507
+ spec_example_position: 507
source_specification: commonmark
06_07_00__inlines__links__016:
- spec_txt_example_position: 508
+ spec_example_position: 508
source_specification: commonmark
06_07_00__inlines__links__017:
- spec_txt_example_position: 509
+ spec_example_position: 509
source_specification: commonmark
06_07_00__inlines__links__018:
- spec_txt_example_position: 510
+ spec_example_position: 510
source_specification: commonmark
06_07_00__inlines__links__019:
- spec_txt_example_position: 511
+ spec_example_position: 511
source_specification: commonmark
06_07_00__inlines__links__020:
- spec_txt_example_position: 512
+ spec_example_position: 512
source_specification: commonmark
06_07_00__inlines__links__021:
- spec_txt_example_position: 513
+ spec_example_position: 513
source_specification: commonmark
06_07_00__inlines__links__022:
- spec_txt_example_position: 514
+ spec_example_position: 514
source_specification: commonmark
06_07_00__inlines__links__023:
- spec_txt_example_position: 515
+ spec_example_position: 515
source_specification: commonmark
06_07_00__inlines__links__024:
- spec_txt_example_position: 516
+ spec_example_position: 516
source_specification: commonmark
06_07_00__inlines__links__025:
- spec_txt_example_position: 517
+ spec_example_position: 517
source_specification: commonmark
06_07_00__inlines__links__026:
- spec_txt_example_position: 518
+ spec_example_position: 518
source_specification: commonmark
06_07_00__inlines__links__027:
- spec_txt_example_position: 519
+ spec_example_position: 519
source_specification: commonmark
06_07_00__inlines__links__028:
- spec_txt_example_position: 520
+ spec_example_position: 520
source_specification: commonmark
06_07_00__inlines__links__029:
- spec_txt_example_position: 521
+ spec_example_position: 521
source_specification: commonmark
06_07_00__inlines__links__030:
- spec_txt_example_position: 522
+ spec_example_position: 522
source_specification: commonmark
06_07_00__inlines__links__031:
- spec_txt_example_position: 523
+ spec_example_position: 523
source_specification: commonmark
06_07_00__inlines__links__032:
- spec_txt_example_position: 524
+ spec_example_position: 524
source_specification: commonmark
06_07_00__inlines__links__033:
- spec_txt_example_position: 525
+ spec_example_position: 525
source_specification: commonmark
06_07_00__inlines__links__034:
- spec_txt_example_position: 526
+ spec_example_position: 526
source_specification: commonmark
06_07_00__inlines__links__035:
- spec_txt_example_position: 527
+ spec_example_position: 527
source_specification: commonmark
06_07_00__inlines__links__036:
- spec_txt_example_position: 528
+ spec_example_position: 528
source_specification: commonmark
06_07_00__inlines__links__037:
- spec_txt_example_position: 529
+ spec_example_position: 529
source_specification: commonmark
06_07_00__inlines__links__038:
- spec_txt_example_position: 530
+ spec_example_position: 530
source_specification: commonmark
06_07_00__inlines__links__039:
- spec_txt_example_position: 531
+ spec_example_position: 531
source_specification: commonmark
06_07_00__inlines__links__040:
- spec_txt_example_position: 532
+ spec_example_position: 532
source_specification: commonmark
06_07_00__inlines__links__041:
- spec_txt_example_position: 533
+ spec_example_position: 533
source_specification: commonmark
06_07_00__inlines__links__042:
- spec_txt_example_position: 534
+ spec_example_position: 534
source_specification: commonmark
06_07_00__inlines__links__043:
- spec_txt_example_position: 535
+ spec_example_position: 535
source_specification: commonmark
06_07_00__inlines__links__044:
- spec_txt_example_position: 536
+ spec_example_position: 536
source_specification: commonmark
06_07_00__inlines__links__045:
- spec_txt_example_position: 537
+ spec_example_position: 537
source_specification: commonmark
06_07_00__inlines__links__046:
- spec_txt_example_position: 538
+ spec_example_position: 538
source_specification: commonmark
06_07_00__inlines__links__047:
- spec_txt_example_position: 539
+ spec_example_position: 539
source_specification: commonmark
06_07_00__inlines__links__048:
- spec_txt_example_position: 540
+ spec_example_position: 540
source_specification: commonmark
06_07_00__inlines__links__049:
- spec_txt_example_position: 541
+ spec_example_position: 541
source_specification: commonmark
06_07_00__inlines__links__050:
- spec_txt_example_position: 542
+ spec_example_position: 542
source_specification: commonmark
06_07_00__inlines__links__051:
- spec_txt_example_position: 543
+ spec_example_position: 543
source_specification: commonmark
06_07_00__inlines__links__052:
- spec_txt_example_position: 544
+ spec_example_position: 544
source_specification: commonmark
06_07_00__inlines__links__053:
- spec_txt_example_position: 545
+ spec_example_position: 545
source_specification: commonmark
06_07_00__inlines__links__054:
- spec_txt_example_position: 546
+ spec_example_position: 546
source_specification: commonmark
06_07_00__inlines__links__055:
- spec_txt_example_position: 547
+ spec_example_position: 547
source_specification: commonmark
06_07_00__inlines__links__056:
- spec_txt_example_position: 548
+ spec_example_position: 548
source_specification: commonmark
06_07_00__inlines__links__057:
- spec_txt_example_position: 549
+ spec_example_position: 549
source_specification: commonmark
06_07_00__inlines__links__058:
- spec_txt_example_position: 550
+ spec_example_position: 550
source_specification: commonmark
06_07_00__inlines__links__059:
- spec_txt_example_position: 551
+ spec_example_position: 551
source_specification: commonmark
06_07_00__inlines__links__060:
- spec_txt_example_position: 552
+ spec_example_position: 552
source_specification: commonmark
06_07_00__inlines__links__061:
- spec_txt_example_position: 553
+ spec_example_position: 553
source_specification: commonmark
06_07_00__inlines__links__062:
- spec_txt_example_position: 554
+ spec_example_position: 554
source_specification: commonmark
06_07_00__inlines__links__063:
- spec_txt_example_position: 555
+ spec_example_position: 555
source_specification: commonmark
06_07_00__inlines__links__064:
- spec_txt_example_position: 556
+ spec_example_position: 556
source_specification: commonmark
06_07_00__inlines__links__065:
- spec_txt_example_position: 557
+ spec_example_position: 557
source_specification: commonmark
06_07_00__inlines__links__066:
- spec_txt_example_position: 558
+ spec_example_position: 558
source_specification: commonmark
06_07_00__inlines__links__067:
- spec_txt_example_position: 559
+ spec_example_position: 559
source_specification: commonmark
06_07_00__inlines__links__068:
- spec_txt_example_position: 560
+ spec_example_position: 560
source_specification: commonmark
06_07_00__inlines__links__069:
- spec_txt_example_position: 561
+ spec_example_position: 561
source_specification: commonmark
06_07_00__inlines__links__070:
- spec_txt_example_position: 562
+ spec_example_position: 562
source_specification: commonmark
06_07_00__inlines__links__071:
- spec_txt_example_position: 563
+ spec_example_position: 563
source_specification: commonmark
06_07_00__inlines__links__072:
- spec_txt_example_position: 564
+ spec_example_position: 564
source_specification: commonmark
06_07_00__inlines__links__073:
- spec_txt_example_position: 565
+ spec_example_position: 565
source_specification: commonmark
06_07_00__inlines__links__074:
- spec_txt_example_position: 566
+ spec_example_position: 566
source_specification: commonmark
06_07_00__inlines__links__075:
- spec_txt_example_position: 567
+ spec_example_position: 567
source_specification: commonmark
06_07_00__inlines__links__076:
- spec_txt_example_position: 568
+ spec_example_position: 568
source_specification: commonmark
06_07_00__inlines__links__077:
- spec_txt_example_position: 569
+ spec_example_position: 569
source_specification: commonmark
06_07_00__inlines__links__078:
- spec_txt_example_position: 570
+ spec_example_position: 570
source_specification: commonmark
06_07_00__inlines__links__079:
- spec_txt_example_position: 571
+ spec_example_position: 571
source_specification: commonmark
06_07_00__inlines__links__080:
- spec_txt_example_position: 572
+ spec_example_position: 572
source_specification: commonmark
06_07_00__inlines__links__081:
- spec_txt_example_position: 573
+ spec_example_position: 573
source_specification: commonmark
06_07_00__inlines__links__082:
- spec_txt_example_position: 574
+ spec_example_position: 574
source_specification: commonmark
06_07_00__inlines__links__083:
- spec_txt_example_position: 575
+ spec_example_position: 575
source_specification: commonmark
06_07_00__inlines__links__084:
- spec_txt_example_position: 576
+ spec_example_position: 576
source_specification: commonmark
06_07_00__inlines__links__085:
- spec_txt_example_position: 577
+ spec_example_position: 577
source_specification: commonmark
06_07_00__inlines__links__086:
- spec_txt_example_position: 578
+ spec_example_position: 578
source_specification: commonmark
06_07_00__inlines__links__087:
- spec_txt_example_position: 579
+ spec_example_position: 579
source_specification: commonmark
06_08_00__inlines__images__001:
- spec_txt_example_position: 580
+ spec_example_position: 580
source_specification: commonmark
06_08_00__inlines__images__002:
- spec_txt_example_position: 581
+ spec_example_position: 581
source_specification: commonmark
06_08_00__inlines__images__003:
- spec_txt_example_position: 582
+ spec_example_position: 582
source_specification: commonmark
06_08_00__inlines__images__004:
- spec_txt_example_position: 583
+ spec_example_position: 583
source_specification: commonmark
06_08_00__inlines__images__005:
- spec_txt_example_position: 584
+ spec_example_position: 584
source_specification: commonmark
06_08_00__inlines__images__006:
- spec_txt_example_position: 585
+ spec_example_position: 585
source_specification: commonmark
06_08_00__inlines__images__007:
- spec_txt_example_position: 586
+ spec_example_position: 586
source_specification: commonmark
06_08_00__inlines__images__008:
- spec_txt_example_position: 587
+ spec_example_position: 587
source_specification: commonmark
06_08_00__inlines__images__009:
- spec_txt_example_position: 588
+ spec_example_position: 588
source_specification: commonmark
06_08_00__inlines__images__010:
- spec_txt_example_position: 589
+ spec_example_position: 589
source_specification: commonmark
06_08_00__inlines__images__011:
- spec_txt_example_position: 590
+ spec_example_position: 590
source_specification: commonmark
06_08_00__inlines__images__012:
- spec_txt_example_position: 591
+ spec_example_position: 591
source_specification: commonmark
06_08_00__inlines__images__013:
- spec_txt_example_position: 592
+ spec_example_position: 592
source_specification: commonmark
06_08_00__inlines__images__014:
- spec_txt_example_position: 593
+ spec_example_position: 593
source_specification: commonmark
06_08_00__inlines__images__015:
- spec_txt_example_position: 594
+ spec_example_position: 594
source_specification: commonmark
06_08_00__inlines__images__016:
- spec_txt_example_position: 595
+ spec_example_position: 595
source_specification: commonmark
06_08_00__inlines__images__017:
- spec_txt_example_position: 596
+ spec_example_position: 596
source_specification: commonmark
06_08_00__inlines__images__018:
- spec_txt_example_position: 597
+ spec_example_position: 597
source_specification: commonmark
06_08_00__inlines__images__019:
- spec_txt_example_position: 598
+ spec_example_position: 598
source_specification: commonmark
06_08_00__inlines__images__020:
- spec_txt_example_position: 599
+ spec_example_position: 599
source_specification: commonmark
06_08_00__inlines__images__021:
- spec_txt_example_position: 600
+ spec_example_position: 600
source_specification: commonmark
06_08_00__inlines__images__022:
- spec_txt_example_position: 601
+ spec_example_position: 601
source_specification: commonmark
06_09_00__inlines__autolinks__001:
- spec_txt_example_position: 602
+ spec_example_position: 602
source_specification: commonmark
06_09_00__inlines__autolinks__002:
- spec_txt_example_position: 603
+ spec_example_position: 603
source_specification: commonmark
06_09_00__inlines__autolinks__003:
- spec_txt_example_position: 604
+ spec_example_position: 604
source_specification: commonmark
06_09_00__inlines__autolinks__004:
- spec_txt_example_position: 605
+ spec_example_position: 605
source_specification: commonmark
06_09_00__inlines__autolinks__005:
- spec_txt_example_position: 606
+ spec_example_position: 606
source_specification: commonmark
06_09_00__inlines__autolinks__006:
- spec_txt_example_position: 607
+ spec_example_position: 607
source_specification: commonmark
06_09_00__inlines__autolinks__007:
- spec_txt_example_position: 608
+ spec_example_position: 608
source_specification: commonmark
06_09_00__inlines__autolinks__008:
- spec_txt_example_position: 609
+ spec_example_position: 609
source_specification: commonmark
06_09_00__inlines__autolinks__009:
- spec_txt_example_position: 610
+ spec_example_position: 610
source_specification: commonmark
06_09_00__inlines__autolinks__010:
- spec_txt_example_position: 611
+ spec_example_position: 611
source_specification: commonmark
06_09_00__inlines__autolinks__011:
- spec_txt_example_position: 612
+ spec_example_position: 612
source_specification: commonmark
06_09_00__inlines__autolinks__012:
- spec_txt_example_position: 613
+ spec_example_position: 613
source_specification: commonmark
06_09_00__inlines__autolinks__013:
- spec_txt_example_position: 614
+ spec_example_position: 614
source_specification: commonmark
06_09_00__inlines__autolinks__014:
- spec_txt_example_position: 615
+ spec_example_position: 615
source_specification: commonmark
06_09_00__inlines__autolinks__015:
- spec_txt_example_position: 616
+ spec_example_position: 616
source_specification: commonmark
06_09_00__inlines__autolinks__016:
- spec_txt_example_position: 617
+ spec_example_position: 617
source_specification: commonmark
06_09_00__inlines__autolinks__017:
- spec_txt_example_position: 618
+ spec_example_position: 618
source_specification: commonmark
06_09_00__inlines__autolinks__018:
- spec_txt_example_position: 619
+ spec_example_position: 619
source_specification: commonmark
06_09_00__inlines__autolinks__019:
- spec_txt_example_position: 620
+ spec_example_position: 620
source_specification: commonmark
06_10_00__inlines__autolinks_extension__001:
- spec_txt_example_position: 621
+ spec_example_position: 621
source_specification: github
06_10_00__inlines__autolinks_extension__002:
- spec_txt_example_position: 622
+ spec_example_position: 622
source_specification: github
06_10_00__inlines__autolinks_extension__003:
- spec_txt_example_position: 623
+ spec_example_position: 623
source_specification: github
06_10_00__inlines__autolinks_extension__004:
- spec_txt_example_position: 624
+ spec_example_position: 624
source_specification: github
06_10_00__inlines__autolinks_extension__005:
- spec_txt_example_position: 625
+ spec_example_position: 625
source_specification: github
06_10_00__inlines__autolinks_extension__006:
- spec_txt_example_position: 626
+ spec_example_position: 626
source_specification: github
06_10_00__inlines__autolinks_extension__007:
- spec_txt_example_position: 627
+ spec_example_position: 627
source_specification: github
06_10_00__inlines__autolinks_extension__008:
- spec_txt_example_position: 628
+ spec_example_position: 628
source_specification: github
06_10_00__inlines__autolinks_extension__009:
- spec_txt_example_position: 629
+ spec_example_position: 629
source_specification: github
06_10_00__inlines__autolinks_extension__010:
- spec_txt_example_position: 630
+ spec_example_position: 630
source_specification: github
06_10_00__inlines__autolinks_extension__011:
- spec_txt_example_position: 631
+ spec_example_position: 631
source_specification: github
06_11_00__inlines__raw_html__001:
- spec_txt_example_position: 632
+ spec_example_position: 632
source_specification: commonmark
06_11_00__inlines__raw_html__002:
- spec_txt_example_position: 633
+ spec_example_position: 633
source_specification: commonmark
06_11_00__inlines__raw_html__003:
- spec_txt_example_position: 634
+ spec_example_position: 634
source_specification: commonmark
06_11_00__inlines__raw_html__004:
- spec_txt_example_position: 635
+ spec_example_position: 635
source_specification: commonmark
06_11_00__inlines__raw_html__005:
- spec_txt_example_position: 636
+ spec_example_position: 636
source_specification: commonmark
06_11_00__inlines__raw_html__006:
- spec_txt_example_position: 637
+ spec_example_position: 637
source_specification: commonmark
06_11_00__inlines__raw_html__007:
- spec_txt_example_position: 638
+ spec_example_position: 638
source_specification: commonmark
06_11_00__inlines__raw_html__008:
- spec_txt_example_position: 639
+ spec_example_position: 639
source_specification: commonmark
06_11_00__inlines__raw_html__009:
- spec_txt_example_position: 640
+ spec_example_position: 640
source_specification: commonmark
06_11_00__inlines__raw_html__010:
- spec_txt_example_position: 641
+ spec_example_position: 641
source_specification: commonmark
06_11_00__inlines__raw_html__011:
- spec_txt_example_position: 642
+ spec_example_position: 642
source_specification: commonmark
06_11_00__inlines__raw_html__012:
- spec_txt_example_position: 643
+ spec_example_position: 643
source_specification: commonmark
06_11_00__inlines__raw_html__013:
- spec_txt_example_position: 644
+ spec_example_position: 644
source_specification: commonmark
06_11_00__inlines__raw_html__014:
- spec_txt_example_position: 645
+ spec_example_position: 645
source_specification: commonmark
06_11_00__inlines__raw_html__015:
- spec_txt_example_position: 646
+ spec_example_position: 646
source_specification: commonmark
06_11_00__inlines__raw_html__016:
- spec_txt_example_position: 647
+ spec_example_position: 647
source_specification: commonmark
06_11_00__inlines__raw_html__017:
- spec_txt_example_position: 648
+ spec_example_position: 648
source_specification: commonmark
06_11_00__inlines__raw_html__018:
- spec_txt_example_position: 649
+ spec_example_position: 649
source_specification: commonmark
06_11_00__inlines__raw_html__019:
- spec_txt_example_position: 650
+ spec_example_position: 650
source_specification: commonmark
06_11_00__inlines__raw_html__020:
- spec_txt_example_position: 651
+ spec_example_position: 651
source_specification: commonmark
06_11_00__inlines__raw_html__021:
- spec_txt_example_position: 652
+ spec_example_position: 652
source_specification: commonmark
06_12_00__inlines__disallowed_raw_html_extension__001:
- spec_txt_example_position: 653
+ spec_example_position: 653
source_specification: github
06_13_00__inlines__hard_line_breaks__001:
- spec_txt_example_position: 654
+ spec_example_position: 654
source_specification: commonmark
06_13_00__inlines__hard_line_breaks__002:
- spec_txt_example_position: 655
+ spec_example_position: 655
source_specification: commonmark
06_13_00__inlines__hard_line_breaks__003:
- spec_txt_example_position: 656
+ spec_example_position: 656
source_specification: commonmark
06_13_00__inlines__hard_line_breaks__004:
- spec_txt_example_position: 657
+ spec_example_position: 657
source_specification: commonmark
06_13_00__inlines__hard_line_breaks__005:
- spec_txt_example_position: 658
+ spec_example_position: 658
source_specification: commonmark
06_13_00__inlines__hard_line_breaks__006:
- spec_txt_example_position: 659
+ spec_example_position: 659
source_specification: commonmark
06_13_00__inlines__hard_line_breaks__007:
- spec_txt_example_position: 660
+ spec_example_position: 660
source_specification: commonmark
06_13_00__inlines__hard_line_breaks__008:
- spec_txt_example_position: 661
+ spec_example_position: 661
source_specification: commonmark
06_13_00__inlines__hard_line_breaks__009:
- spec_txt_example_position: 662
+ spec_example_position: 662
source_specification: commonmark
06_13_00__inlines__hard_line_breaks__010:
- spec_txt_example_position: 663
+ spec_example_position: 663
source_specification: commonmark
06_13_00__inlines__hard_line_breaks__011:
- spec_txt_example_position: 664
+ spec_example_position: 664
source_specification: commonmark
06_13_00__inlines__hard_line_breaks__012:
- spec_txt_example_position: 665
+ spec_example_position: 665
source_specification: commonmark
06_13_00__inlines__hard_line_breaks__013:
- spec_txt_example_position: 666
+ spec_example_position: 666
source_specification: commonmark
06_13_00__inlines__hard_line_breaks__014:
- spec_txt_example_position: 667
+ spec_example_position: 667
source_specification: commonmark
06_13_00__inlines__hard_line_breaks__015:
- spec_txt_example_position: 668
+ spec_example_position: 668
source_specification: commonmark
06_14_00__inlines__soft_line_breaks__001:
- spec_txt_example_position: 669
+ spec_example_position: 669
source_specification: commonmark
06_14_00__inlines__soft_line_breaks__002:
- spec_txt_example_position: 670
+ spec_example_position: 670
source_specification: commonmark
06_15_00__inlines__textual_content__001:
- spec_txt_example_position: 671
+ spec_example_position: 671
source_specification: commonmark
06_15_00__inlines__textual_content__002:
- spec_txt_example_position: 672
+ spec_example_position: 672
source_specification: commonmark
06_15_00__inlines__textual_content__003:
- spec_txt_example_position: 673
+ spec_example_position: 673
source_specification: commonmark
07_01_00__gitlab_official_specification_markdown__footnotes__001:
- spec_txt_example_position: 674
+ spec_example_position: 674
source_specification: gitlab
07_02_00__gitlab_official_specification_markdown__task_list_items__001:
- spec_txt_example_position: 675
+ spec_example_position: 675
source_specification: gitlab
07_02_00__gitlab_official_specification_markdown__task_list_items__002:
- spec_txt_example_position: 676
+ spec_example_position: 676
source_specification: gitlab
07_02_00__gitlab_official_specification_markdown__task_list_items__003:
- spec_txt_example_position: 677
+ spec_example_position: 677
source_specification: gitlab
07_02_00__gitlab_official_specification_markdown__task_list_items__004:
- spec_txt_example_position: 678
+ spec_example_position: 678
source_specification: gitlab
07_03_00__gitlab_official_specification_markdown__front_matter__001:
- spec_txt_example_position: 679
+ spec_example_position: 679
source_specification: gitlab
07_03_00__gitlab_official_specification_markdown__front_matter__002:
- spec_txt_example_position: 680
+ spec_example_position: 680
source_specification: gitlab
07_03_00__gitlab_official_specification_markdown__front_matter__003:
- spec_txt_example_position: 681
+ spec_example_position: 681
source_specification: gitlab
07_03_00__gitlab_official_specification_markdown__front_matter__004:
- spec_txt_example_position: 682
+ spec_example_position: 682
source_specification: gitlab
07_03_00__gitlab_official_specification_markdown__front_matter__005:
- spec_txt_example_position: 683
+ spec_example_position: 683
source_specification: gitlab
07_04_00__gitlab_official_specification_markdown__table_of_contents__001:
- spec_txt_example_position: 684
+ spec_example_position: 684
source_specification: gitlab
07_04_00__gitlab_official_specification_markdown__table_of_contents__002:
- spec_txt_example_position: 685
+ spec_example_position: 685
source_specification: gitlab
07_04_00__gitlab_official_specification_markdown__table_of_contents__003:
- spec_txt_example_position: 686
+ spec_example_position: 686
source_specification: gitlab
07_04_00__gitlab_official_specification_markdown__table_of_contents__004:
- spec_txt_example_position: 687
+ spec_example_position: 687
source_specification: gitlab
08_01_00__gitlab_internal_extension_markdown__audio__001:
- spec_txt_example_position: 688
+ spec_example_position: 688
source_specification: gitlab
08_01_00__gitlab_internal_extension_markdown__audio__002:
- spec_txt_example_position: 689
+ spec_example_position: 689
source_specification: gitlab
08_02_00__gitlab_internal_extension_markdown__video__001:
- spec_txt_example_position: 690
+ spec_example_position: 690
source_specification: gitlab
08_02_00__gitlab_internal_extension_markdown__video__002:
- spec_txt_example_position: 691
+ spec_example_position: 691
source_specification: gitlab
08_03_00__gitlab_internal_extension_markdown__markdown_preview_api_request_overrides__001:
- spec_txt_example_position: 692
+ spec_example_position: 692
source_specification: gitlab
08_03_00__gitlab_internal_extension_markdown__markdown_preview_api_request_overrides__002:
- spec_txt_example_position: 693
+ spec_example_position: 693
source_specification: gitlab
08_03_00__gitlab_internal_extension_markdown__markdown_preview_api_request_overrides__003:
- spec_txt_example_position: 694
+ spec_example_position: 694
source_specification: gitlab
08_03_00__gitlab_internal_extension_markdown__markdown_preview_api_request_overrides__004:
- spec_txt_example_position: 695
+ spec_example_position: 695
source_specification: gitlab
08_03_00__gitlab_internal_extension_markdown__markdown_preview_api_request_overrides__005:
- spec_txt_example_position: 696
+ spec_example_position: 696
source_specification: gitlab
08_03_00__gitlab_internal_extension_markdown__markdown_preview_api_request_overrides__006:
- spec_txt_example_position: 697
+ spec_example_position: 697
source_specification: gitlab
diff --git a/glfm_specification/example_snapshots/html.yml b/glfm_specification/output_example_snapshots/html.yml
index ef2ba39f925..ef2ba39f925 100644
--- a/glfm_specification/example_snapshots/html.yml
+++ b/glfm_specification/output_example_snapshots/html.yml
diff --git a/glfm_specification/example_snapshots/markdown.yml b/glfm_specification/output_example_snapshots/markdown.yml
index 867108a6cc5..867108a6cc5 100644
--- a/glfm_specification/example_snapshots/markdown.yml
+++ b/glfm_specification/output_example_snapshots/markdown.yml
diff --git a/glfm_specification/example_snapshots/prosemirror_json.yml b/glfm_specification/output_example_snapshots/prosemirror_json.yml
index de54518a574..de54518a574 100644
--- a/glfm_specification/example_snapshots/prosemirror_json.yml
+++ b/glfm_specification/output_example_snapshots/prosemirror_json.yml
diff --git a/glfm_specification/output/spec.html b/glfm_specification/output_example_snapshots/snapshot_spec.html
index e57cd344618..c78d41e1392 100644
--- a/glfm_specification/output/spec.html
+++ b/glfm_specification/output_example_snapshots/snapshot_spec.html
@@ -3,80 +3,77 @@
<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="6:1-6:14" dir="auto">
-<a id="user-content-introduction" class="anchor" href="#introduction" aria-hidden="true"></a>Introduction</h1>
-<p data-sourcepos="8:1-8:84" dir="auto">TODO: Write a GitLab-specific version of the GitHub Flavored Markdown intro section.</p>
-<h1 data-sourcepos="10:1-10:15" dir="auto">
+<h1 data-sourcepos="5:1-5:15" dir="auto">
<a id="user-content-preliminaries" class="anchor" href="#preliminaries" aria-hidden="true"></a>Preliminaries</h1>
-<h2 data-sourcepos="12:1-12:23" dir="auto">
+<h2 data-sourcepos="7:1-7: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="14:1-15:9" dir="auto">Any sequence of [characters] is a valid CommonMark
+<p data-sourcepos="9:1-10:9" dir="auto">Any sequence of [characters] is a valid CommonMark
document.</p>
-<p data-sourcepos="17:1-20:26" dir="auto">A <a href="@">character</a> is a Unicode code point. Although some
+<p data-sourcepos="12:1-15: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="22:1-24:22" dir="auto">This spec does not specify an encoding; it thinks of lines as composed
+<p data-sourcepos="17:1-19: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="26:1-28:50" dir="auto">A <a href="@">line</a> is a sequence of zero or more [characters]
+<p data-sourcepos="21:1-23: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="30:1-32:18" dir="auto">A <a href="@">line ending</a> is a newline (<code>U+000A</code>), a carriage return
+<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
(<code>U+000D</code>) not followed by a newline, or a carriage return and a
following newline.</p>
-<p data-sourcepos="34:1-35:59" dir="auto">A line containing no characters, or a line containing only spaces
+<p data-sourcepos="29:1-30: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="37:1-37:73" dir="auto">The following definitions of character classes will be used in this spec:</p>
-<p data-sourcepos="39:1-41:52" dir="auto">A <a href="@">whitespace character</a> is a space
+<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
(<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="43:1-44:12" dir="auto"><a href="@">Whitespace</a> is a sequence of one or more [whitespace
+<p data-sourcepos="38:1-39:12" dir="auto"><a href="@">Whitespace</a> is a sequence of one or more [whitespace
characters].</p>
-<p data-sourcepos="46:1-49:11" dir="auto">A <a href="@">Unicode whitespace character</a> is
+<p data-sourcepos="41:1-44: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="51:1-52:40" dir="auto"><a href="@">Unicode whitespace</a> is a sequence of one
+<p data-sourcepos="46:1-47:40" dir="auto"><a href="@">Unicode whitespace</a> is a sequence of one
or more [Unicode whitespace characters].</p>
-<p data-sourcepos="54:1-54:25" dir="auto">A <a href="@">space</a> is <code>U+0020</code>.</p>
-<p data-sourcepos="56:1-57:37" dir="auto">A <a href="@">non-whitespace character</a> is any character
+<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
that is not a [whitespace character].</p>
-<p data-sourcepos="59:1-64:38" dir="auto">An <a href="@">ASCII punctuation character</a>
+<p data-sourcepos="54:1-59:38" dir="auto">An <a href="@">ASCII punctuation character</a>
is <code>!</code>, <code>"</code>, <code>#</code>, <code>$</code>, <code>%</code>, <code>&amp;</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>&lt;</code>, <code>=</code>, <code>&gt;</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="66:1-68:76" dir="auto">A <a href="@">punctuation character</a> is an [ASCII
+<p data-sourcepos="61:1-63: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="70:1-70:7" dir="auto">
+<h2 data-sourcepos="65:1-65:7" dir="auto">
<a id="user-content-tabs" class="anchor" href="#tabs" aria-hidden="true"></a>Tabs</h2>
-<p data-sourcepos="72:1-75:16" dir="auto">Tabs in lines are not expanded to [spaces]. However,
+<p data-sourcepos="67:1-70: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="77:1-80:8" dir="auto">Thus, for example, a tab can be used instead of four spaces
+<p data-sourcepos="72:1-75: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="82:1-87:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">→foo→baz→→bim</span>
+<pre data-sourcepos="77:1-82:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">→foo→baz→→bim</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;pre&gt;&lt;code&gt;foo→baz→→bim</span>
<span id="LC4" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="89:1-94:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> →foo→baz→→bim</span>
+<pre data-sourcepos="84:1-89:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> →foo→baz→→bim</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;pre&gt;&lt;code&gt;foo→baz→→bim</span>
<span id="LC4" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="96:1-103:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> a→a</span>
+<pre data-sourcepos="91:1-98:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;pre&gt;&lt;code&gt;a→a</span>
@@ -84,11 +81,11 @@ spaces.)</p>
<span id="LC6" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="105:1-107:38" dir="auto">In the following example, a continuation paragraph of a list
+<p data-sourcepos="100:1-102: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="109:1-120:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - foo</span>
+<pre data-sourcepos="104:1-115:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -101,7 +98,7 @@ as indentation with four spaces would:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="122:1-134:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span>
+<pre data-sourcepos="117:1-129:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -114,7 +111,7 @@ as indentation with four spaces would:</p>
<span id="LC11" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="136:1-143:36" dir="auto">Normally the <code>&gt;</code> that begins a block quote may be followed
+<p data-sourcepos="131:1-138:36" dir="auto">Normally the <code>&gt;</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>&gt;</code> is followed by a tab,
which is treated as if it were expanded into three spaces.
@@ -123,7 +120,7 @@ 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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="145:1-152:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt;→→foo</span>
+<pre data-sourcepos="140:1-147:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt;→→foo</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;blockquote&gt;</span>
<span id="LC4" class="line" lang="plaintext">&lt;pre&gt;&lt;code&gt; foo</span>
@@ -132,7 +129,7 @@ code block starting with two spaces.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="154:1-163:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-→→foo</span>
+<pre data-sourcepos="149:1-158:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;ul&gt;</span>
<span id="LC4" class="line" lang="plaintext">&lt;li&gt;</span>
@@ -143,7 +140,7 @@ code block starting with two spaces.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="166:1-173:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo</span>
+<pre data-sourcepos="161:1-168:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;pre&gt;&lt;code&gt;foo</span>
@@ -152,7 +149,7 @@ code block starting with two spaces.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="175:1-191:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - foo</span>
+<pre data-sourcepos="170:1-186:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -170,36 +167,36 @@ code block starting with two spaces.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="193:1-197:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">#→Foo</span>
+<pre data-sourcepos="188:1-192:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;h1&gt;Foo&lt;/h1&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="199:1-203:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*→*→*→</span>
+<pre data-sourcepos="194:1-198:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;hr /&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="206:1-206:22" dir="auto">
+<h2 data-sourcepos="201:1-201:22" dir="auto">
<a id="user-content-insecure-characters" class="anchor" href="#insecure-characters" aria-hidden="true"></a>Insecure characters</h2>
-<p data-sourcepos="208:1-209:42" dir="auto">For security reasons, the Unicode character <code>U+0000</code> must be replaced
+<p data-sourcepos="203:1-204: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="211:1-211:20" dir="auto">
+<h1 data-sourcepos="206:1-206: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="213:1-218:54" dir="auto">We can think of a document as a sequence of
+<p data-sourcepos="208:1-213: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="220:1-220:13" dir="auto">
+<h2 data-sourcepos="215:1-215:13" dir="auto">
<a id="user-content-precedence" class="anchor" href="#precedence" aria-hidden="true"></a>Precedence</h2>
-<p data-sourcepos="222:1-224:59" dir="auto">Indicators of block structure always take precedence over indicators
+<p data-sourcepos="217:1-219: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="226:1-234:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- `one</span>
+<pre data-sourcepos="221:1-229:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;ul&gt;</span>
@@ -208,7 +205,7 @@ two items, not a list with one item containing a code span:</p>
<span id="LC7" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="237:1-244:66" dir="auto">This means that parsing can proceed in two steps: first, the block
+<p data-sourcepos="232:1-239: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
@@ -216,24 +213,24 @@ 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="246:1-246:35" dir="auto">
+<h2 data-sourcepos="241:1-241: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="248:1-251:13" dir="auto">We can divide blocks into two types:
+<p data-sourcepos="243:1-246: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="253:1-253:13" dir="auto">
+<h1 data-sourcepos="248:1-248:13" dir="auto">
<a id="user-content-leaf-blocks" class="anchor" href="#leaf-blocks" aria-hidden="true"></a>Leaf blocks</h1>
-<p data-sourcepos="255:1-256:18" dir="auto">This section describes the different kinds of leaf block that make up a
+<p data-sourcepos="250:1-251:18" dir="auto">This section describes the different kinds of leaf block that make up a
Markdown document.</p>
-<h2 data-sourcepos="258:1-258:18" dir="auto">
+<h2 data-sourcepos="253:1-253:18" dir="auto">
<a id="user-content-thematic-breaks" class="anchor" href="#thematic-breaks" aria-hidden="true"></a>Thematic breaks</h2>
-<p data-sourcepos="260:1-263:20" dir="auto">A line consisting of 0-3 spaces of indentation, followed by a sequence
+<p data-sourcepos="255:1-258: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="265:1-273:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***</span>
+<pre data-sourcepos="260:1-268:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -242,22 +239,22 @@ optionally by any number of spaces or tabs, forms a
<span id="LC7" class="line" lang="plaintext">&lt;hr /&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="276:1-276:17" dir="auto">Wrong characters:</p>
+<p data-sourcepos="271:1-271:17" dir="auto">Wrong characters:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="278:1-282:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">+++</span>
+<pre data-sourcepos="273:1-277:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;+++&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="285:1-289:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">===</span>
+<pre data-sourcepos="280:1-284:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;===&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="292:1-292:22" dir="auto">Not enough characters:</p>
+<p data-sourcepos="287:1-287:22" dir="auto">Not enough characters:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="294:1-302:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">--</span>
+<pre data-sourcepos="289:1-297:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -266,9 +263,9 @@ optionally by any number of spaces or tabs, forms a
<span id="LC7" class="line" lang="plaintext">__&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="305:1-305:39" dir="auto">One to three spaces indent are allowed:</p>
+<p data-sourcepos="300:1-300:39" dir="auto">One to three spaces indent are allowed:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="307:1-315:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ***</span>
+<pre data-sourcepos="302:1-310:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -277,58 +274,58 @@ optionally by any number of spaces or tabs, forms a
<span id="LC7" class="line" lang="plaintext">&lt;hr /&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="318:1-318:24" dir="auto">Four spaces is too many:</p>
+<p data-sourcepos="313:1-313:24" dir="auto">Four spaces is too many:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="320:1-325:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ***</span>
+<pre data-sourcepos="315:1-320:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;pre&gt;&lt;code&gt;***</span>
<span id="LC4" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="328:1-334:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span>
+<pre data-sourcepos="323:1-329:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;Foo</span>
<span id="LC5" class="line" lang="plaintext">***&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="337:1-337:39" dir="auto">More than three characters may be used:</p>
+<p data-sourcepos="332:1-332:39" dir="auto">More than three characters may be used:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="339:1-343:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_____________________________________</span>
+<pre data-sourcepos="334:1-338:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;hr /&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="346:1-346:42" dir="auto">Spaces are allowed between the characters:</p>
+<p data-sourcepos="341:1-341:42" dir="auto">Spaces are allowed between the characters:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="348:1-352:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - - -</span>
+<pre data-sourcepos="343:1-347:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;hr /&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="355:1-359:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ** * ** * ** * **</span>
+<pre data-sourcepos="350:1-354:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;hr /&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="362:1-366:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- - - -</span>
+<pre data-sourcepos="357:1-361:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;hr /&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="369:1-369:30" dir="auto">Spaces are allowed at the end:</p>
+<p data-sourcepos="364:1-364:30" dir="auto">Spaces are allowed at the end:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="371:1-375:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- - - - </span>
+<pre data-sourcepos="366:1-370:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;hr /&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="378:1-378:51" dir="auto">However, no other characters may occur in the line:</p>
+<p data-sourcepos="373:1-373:51" dir="auto">However, no other characters may occur in the line:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="380:1-390:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_ _ _ _ a</span>
+<pre data-sourcepos="375:1-385:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -339,17 +336,17 @@ optionally by any number of spaces or tabs, forms a
<span id="LC9" class="line" lang="plaintext">&lt;p&gt;---a---&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="393:1-394:33" dir="auto">It is required that all of the [non-whitespace characters] be the same.
+<p data-sourcepos="388:1-389: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="396:1-400:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> *-*</span>
+<pre data-sourcepos="391:1-395:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;-&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="403:1-403:56" dir="auto">Thematic breaks do not need blank lines before or after:</p>
+<p data-sourcepos="398:1-398:56" dir="auto">Thematic breaks do not need blank lines before or after:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="405:1-417:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span>
+<pre data-sourcepos="400:1-412:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -362,9 +359,9 @@ So, this is not a thematic break:</p>
<span id="LC11" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="420:1-420:42" dir="auto">Thematic breaks can interrupt a paragraph:</p>
+<p data-sourcepos="415:1-415:42" dir="auto">Thematic breaks can interrupt a paragraph:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="422:1-430:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span>
+<pre data-sourcepos="417:1-425:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -373,13 +370,13 @@ So, this is not a thematic break:</p>
<span id="LC7" class="line" lang="plaintext">&lt;p&gt;bar&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="433:1-437:71" dir="auto">If a line of dashes that meets the above conditions for being a
+<p data-sourcepos="428:1-432: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="439:1-446:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span>
+<pre data-sourcepos="434:1-441:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -387,10 +384,10 @@ this is a setext heading, not a paragraph followed by a thematic break:</p>
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;bar&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="449:1-450:63" dir="auto">When both a thematic break and a list item are possible
+<p data-sourcepos="444:1-445: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="452:1-464:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* Foo</span>
+<pre data-sourcepos="447:1-459:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -403,9 +400,9 @@ interpretations of a line, the thematic break takes precedence:</p>
<span id="LC11" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="467:1-467:68" dir="auto">If you want a thematic break in a list item, use a different bullet:</p>
+<p data-sourcepos="462:1-462:68" dir="auto">If you want a thematic break in a list item, use a different bullet:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="469:1-479:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- Foo</span>
+<pre data-sourcepos="464:1-474:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;ul&gt;</span>
@@ -416,9 +413,9 @@ interpretations of a line, the thematic break takes precedence:</p>
<span id="LC9" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="482:1-482:15" dir="auto">
+<h2 data-sourcepos="477:1-477:15" dir="auto">
<a id="user-content-atx-headings" class="anchor" href="#atx-headings" aria-hidden="true"></a>ATX headings</h2>
-<p data-sourcepos="484:1-494:35" dir="auto">An <a href="@">ATX heading</a>
+<p data-sourcepos="479:1-489: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.
@@ -429,9 +426,9 @@ 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="496:1-496:16" dir="auto">Simple headings:</p>
+<p data-sourcepos="491:1-491:16" dir="auto">Simple headings:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="498:1-512:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># foo</span>
+<pre data-sourcepos="493:1-507:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -446,14 +443,14 @@ characters in the opening sequence.</p>
<span id="LC13" class="line" lang="plaintext">&lt;h6&gt;foo&lt;/h6&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="515:1-515:46" dir="auto">More than six <code>#</code> characters is not a heading:</p>
+<p data-sourcepos="510:1-510:46" dir="auto">More than six <code>#</code> characters is not a heading:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="517:1-521:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">####### foo</span>
+<pre data-sourcepos="512:1-516:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;####### foo&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="524:1-530:9" dir="auto">At least one space is required between the <code>#</code> characters and the
+<p data-sourcepos="519:1-525: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
@@ -461,7 +458,7 @@ space was required by the
and it helps prevent things like the following from being parsed as
headings:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="532:1-539:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">#5 bolt</span>
+<pre data-sourcepos="527:1-534:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -469,30 +466,30 @@ headings:</p>
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;#hashtag&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="542:1-542:56" dir="auto">This is not a heading, because the first <code>#</code> is escaped:</p>
+<p data-sourcepos="537:1-537:56" dir="auto">This is not a heading, because the first <code>#</code> is escaped:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="544:1-548:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\## foo</span>
+<pre data-sourcepos="539:1-543:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;## foo&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="551:1-551:31" dir="auto">Contents are parsed as inlines:</p>
+<p data-sourcepos="546:1-546:31" dir="auto">Contents are parsed as inlines:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="553:1-557:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># foo *bar* \*baz\*</span>
+<pre data-sourcepos="548:1-552:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;h1&gt;foo &lt;em&gt;bar&lt;/em&gt; *baz*&lt;/h1&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="560:1-560:71" dir="auto">Leading and trailing [whitespace] is ignored in parsing inline content:</p>
+<p data-sourcepos="555:1-555:71" dir="auto">Leading and trailing [whitespace] is ignored in parsing inline content:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="562:1-566:32" class="code highlight js-syntax-highlight language-plaintext" lang="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" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;h1&gt;foo&lt;/h1&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="569:1-569:44" dir="auto">One to three spaces indentation are allowed:</p>
+<p data-sourcepos="564:1-564:44" dir="auto">One to three spaces indentation are allowed:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="571:1-579:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ### foo</span>
+<pre data-sourcepos="566:1-574:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">.</span>
@@ -501,67 +498,67 @@ headings:</p>
<span id="LC7" class="line" lang="plaintext">&lt;h1&gt;foo&lt;/h1&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="582:1-582:25" dir="auto">Four spaces are too much:</p>
+<p data-sourcepos="577:1-577:25" dir="auto">Four spaces are too much:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="584:1-589:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> # foo</span>
+<pre data-sourcepos="579:1-584:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;pre&gt;&lt;code&gt;# foo</span>
<span id="LC4" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="592:1-598:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span>
+<pre data-sourcepos="587:1-593:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo</span>
<span id="LC5" class="line" lang="plaintext"># bar&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="601:1-601:49" dir="auto">A closing sequence of <code>#</code> characters is optional:</p>
+<p data-sourcepos="596:1-596:49" dir="auto">A closing sequence of <code>#</code> characters is optional:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="603:1-609:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">## foo ##</span>
+<pre data-sourcepos="598:1-604:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;h2&gt;foo&lt;/h2&gt;</span>
<span id="LC5" class="line" lang="plaintext">&lt;h3&gt;bar&lt;/h3&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="612:1-612:55" dir="auto">It need not be the same length as the opening sequence:</p>
+<p data-sourcepos="607:1-607:55" dir="auto">It need not be the same length as the opening sequence:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="614:1-620:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># foo ##################################</span>
+<pre data-sourcepos="609:1-615:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;h1&gt;foo&lt;/h1&gt;</span>
<span id="LC5" class="line" lang="plaintext">&lt;h5&gt;foo&lt;/h5&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="623:1-623:46" dir="auto">Spaces are allowed after the closing sequence:</p>
+<p data-sourcepos="618:1-618:46" dir="auto">Spaces are allowed after the closing sequence:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="625:1-629:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">### foo ### </span>
+<pre data-sourcepos="620:1-624:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;h3&gt;foo&lt;/h3&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="632:1-634:8" dir="auto">A sequence of <code>#</code> characters with anything but [spaces] following it
+<p data-sourcepos="627:1-629: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="636:1-640:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">### foo ### b</span>
+<pre data-sourcepos="631:1-635:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">### foo ### b</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;h3&gt;foo ### b&lt;/h3&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="643:1-643:49" dir="auto">The closing sequence must be preceded by a space:</p>
+<p data-sourcepos="638:1-638:49" dir="auto">The closing sequence must be preceded by a space:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="645:1-649:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># foo#</span>
+<pre data-sourcepos="640:1-644:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;h1&gt;foo#&lt;/h1&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="652:1-653:24" dir="auto">Backslash-escaped <code>#</code> characters do not count as part
+<p data-sourcepos="647:1-648:24" dir="auto">Backslash-escaped <code>#</code> characters do not count as part
of the closing sequence:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="655:1-663:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">### foo \###</span>
+<pre data-sourcepos="650:1-658:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">.</span>
@@ -570,10 +567,10 @@ of the closing sequence:</p>
<span id="LC7" class="line" lang="plaintext">&lt;h1&gt;foo #&lt;/h1&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="666:1-667:41" dir="auto">ATX headings need not be separated from surrounding content by blank
+<p data-sourcepos="661:1-662:41" dir="auto">ATX headings need not be separated from surrounding content by blank
lines, and they can interrupt paragraphs:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="669:1-677:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">****</span>
+<pre data-sourcepos="664:1-672:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -583,7 +580,7 @@ lines, and they can interrupt paragraphs:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="680:1-688:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo bar</span>
+<pre data-sourcepos="675:1-683:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -592,9 +589,9 @@ lines, and they can interrupt paragraphs:</p>
<span id="LC7" class="line" lang="plaintext">&lt;p&gt;Bar foo&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="691:1-691:26" dir="auto">ATX headings can be empty:</p>
+<p data-sourcepos="686:1-686:26" dir="auto">ATX headings can be empty:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="693:1-701:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">## </span>
+<pre data-sourcepos="688:1-696:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -603,9 +600,9 @@ lines, and they can interrupt paragraphs:</p>
<span id="LC7" class="line" lang="plaintext">&lt;h3&gt;&lt;/h3&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="704:1-704:18" dir="auto">
+<h2 data-sourcepos="699:1-699:18" dir="auto">
<a id="user-content-setext-headings" class="anchor" href="#setext-headings" aria-hidden="true"></a>Setext headings</h2>
-<p data-sourcepos="706:1-714:54" dir="auto">A <a href="@">setext heading</a> consists of one or more
+<p data-sourcepos="701:1-709: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
@@ -614,24 +611,24 @@ 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="716:1-721:40" dir="auto">A <a href="@">setext heading underline</a> is a sequence of
+<p data-sourcepos="711:1-716: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="723:1-727:8" dir="auto">The heading is a level 1 heading if <code>=</code> characters are used in
+<p data-sourcepos="718:1-722: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="729:1-732:5" dir="auto">In general, a setext heading need not be preceded or followed by a
+<p data-sourcepos="724:1-727: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="734:1-734:16" dir="auto">Simple examples:</p>
+<p data-sourcepos="729:1-729:16" dir="auto">Simple examples:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="736:1-745:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo *bar*</span>
+<pre data-sourcepos="731:1-740:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -641,9 +638,9 @@ them.</p>
<span id="LC8" class="line" lang="plaintext">&lt;h2&gt;Foo &lt;em&gt;bar&lt;/em&gt;&lt;/h2&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="748:1-748:54" dir="auto">The content of the header may span more than one line:</p>
+<p data-sourcepos="743:1-743:54" dir="auto">The content of the header may span more than one line:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="750:1-757:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo *bar</span>
+<pre data-sourcepos="745:1-752:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -651,12 +648,12 @@ them.</p>
<span id="LC6" class="line" lang="plaintext">baz&lt;/em&gt;&lt;/h1&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="759:1-762:13" dir="auto">The contents are the result of parsing the headings's raw
+<p data-sourcepos="754:1-757: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="764:1-771:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> Foo *bar</span>
+<pre data-sourcepos="759:1-766:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -664,9 +661,9 @@ concatenating the lines and removing initial and final
<span id="LC6" class="line" lang="plaintext">baz&lt;/em&gt;&lt;/h1&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="774:1-774:34" dir="auto">The underlining can be any length:</p>
+<p data-sourcepos="769:1-769:34" dir="auto">The underlining can be any length:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="776:1-785:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span>
+<pre data-sourcepos="771:1-780:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -676,10 +673,10 @@ concatenating the lines and removing initial and final
<span id="LC8" class="line" lang="plaintext">&lt;h1&gt;Foo&lt;/h1&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="788:1-789:33" dir="auto">The heading content can be indented up to three spaces, and need
+<p data-sourcepos="783:1-784:33" dir="auto">The heading content can be indented up to three spaces, and need
not line up with the underlining:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="791:1-804:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> Foo</span>
+<pre data-sourcepos="786:1-799:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -693,9 +690,9 @@ not line up with the underlining:</p>
<span id="LC12" class="line" lang="plaintext">&lt;h1&gt;Foo&lt;/h1&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="807:1-807:31" dir="auto">Four spaces indent is too much:</p>
+<p data-sourcepos="802:1-802:31" dir="auto">Four spaces indent is too much:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="809:1-822:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> Foo</span>
+<pre data-sourcepos="804:1-817:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -709,27 +706,27 @@ not line up with the underlining:</p>
<span id="LC12" class="line" lang="plaintext">&lt;hr /&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="825:1-826:25" dir="auto">The setext heading underline can be indented up to three spaces, and
+<p data-sourcepos="820:1-821:25" dir="auto">The setext heading underline can be indented up to three spaces, and
may have trailing spaces:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="828:1-833:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span>
+<pre data-sourcepos="823:1-828:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;h2&gt;Foo&lt;/h2&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="836:1-836:24" dir="auto">Four spaces is too much:</p>
+<p data-sourcepos="831:1-831:24" dir="auto">Four spaces is too much:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="838:1-844:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span>
+<pre data-sourcepos="833:1-839:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;Foo</span>
<span id="LC5" class="line" lang="plaintext">---&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="847:1-847:60" dir="auto">The setext heading underline cannot contain internal spaces:</p>
+<p data-sourcepos="842:1-842:60" dir="auto">The setext heading underline cannot contain internal spaces:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="849:1-860:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span>
+<pre data-sourcepos="844:1-855:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -741,26 +738,26 @@ may have trailing spaces:</p>
<span id="LC10" class="line" lang="plaintext">&lt;hr /&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="863:1-863:62" dir="auto">Trailing spaces in the content line do not cause a line break:</p>
+<p data-sourcepos="858:1-858:62" dir="auto">Trailing spaces in the content line do not cause a line break:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="865:1-870:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo </span>
+<pre data-sourcepos="860:1-865:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;h2&gt;Foo&lt;/h2&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="873:1-873:32" dir="auto">Nor does a backslash at the end:</p>
+<p data-sourcepos="868:1-868:32" dir="auto">Nor does a backslash at the end:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="875:1-880:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo\</span>
+<pre data-sourcepos="870:1-875:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;h2&gt;Foo\&lt;/h2&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="883:1-884:66" dir="auto">Since indicators of block structure take precedence over
+<p data-sourcepos="878:1-879:66" dir="auto">Since indicators of block structure take precedence over
indicators of inline structure, the following are setext headings:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="886:1-899:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`Foo</span>
+<pre data-sourcepos="881:1-894:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -774,10 +771,10 @@ indicators of inline structure, the following are setext headings:</p>
<span id="LC12" class="line" lang="plaintext">&lt;p&gt;of dashes&amp;quot;/&amp;gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="902:1-903:36" dir="auto">The setext heading underline cannot be a [lazy continuation
+<p data-sourcepos="897:1-898:36" dir="auto">The setext heading underline cannot be a [lazy continuation
line] in a list item or block quote:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="905:1-913:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; Foo</span>
+<pre data-sourcepos="900:1-908:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; 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">&lt;blockquote&gt;</span>
@@ -787,7 +784,7 @@ line] in a list item or block quote:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="916:1-926:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; foo</span>
+<pre data-sourcepos="911:1-921:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; 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>
@@ -799,7 +796,7 @@ line] in a list item or block quote:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="929:1-937:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- Foo</span>
+<pre data-sourcepos="924:1-932:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;ul&gt;</span>
@@ -808,11 +805,11 @@ line] in a list item or block quote:</p>
<span id="LC7" class="line" lang="plaintext">&lt;hr /&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="940:1-942:25" dir="auto">A blank line is needed between a paragraph and a following
+<p data-sourcepos="935:1-937: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="944:1-951:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span>
+<pre data-sourcepos="939:1-946:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -820,10 +817,10 @@ of the heading's content:</p>
<span id="LC6" class="line" lang="plaintext">Bar&lt;/h2&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="954:1-955:16" dir="auto">But in general a blank line is not required before or after
+<p data-sourcepos="949:1-950:16" dir="auto">But in general a blank line is not required before or after
setext headings:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="957:1-969:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">---</span>
+<pre data-sourcepos="952:1-964:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -836,19 +833,19 @@ setext headings:</p>
<span id="LC11" class="line" lang="plaintext">&lt;p&gt;Baz&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="972:1-972:32" dir="auto">Setext headings cannot be empty:</p>
+<p data-sourcepos="967:1-967:32" dir="auto">Setext headings cannot be empty:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="974:1-979:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></span>
+<pre data-sourcepos="969:1-974:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;====&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="982:1-984:55" dir="auto">Setext heading text lines must not be interpretable as block
+<p data-sourcepos="977:1-979: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="986:1-992:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">---</span>
+<pre data-sourcepos="981:1-987:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;hr /&gt;</span>
@@ -856,7 +853,7 @@ in these examples gets interpreted as a thematic break:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="995:1-1003:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span>
+<pre data-sourcepos="990:1-998:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;ul&gt;</span>
@@ -866,7 +863,7 @@ in these examples gets interpreted as a thematic break:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1006:1-1013:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo</span>
+<pre data-sourcepos="1001:1-1008:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;pre&gt;&lt;code&gt;foo</span>
@@ -875,7 +872,7 @@ in these examples gets interpreted as a thematic break:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1016:1-1024:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; foo</span>
+<pre data-sourcepos="1011:1-1019:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; 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">&lt;blockquote&gt;</span>
@@ -884,38 +881,38 @@ in these examples gets interpreted as a thematic break:</p>
<span id="LC7" class="line" lang="plaintext">&lt;hr /&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1027:1-1028:22" dir="auto">If you want a heading with <code>&gt; foo</code> as its literal text, you can
+<p data-sourcepos="1022:1-1023:22" dir="auto">If you want a heading with <code>&gt; foo</code> as its literal text, you can
use backslash escapes:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1030:1-1035:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\&gt; foo</span>
+<pre data-sourcepos="1025:1-1030:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\&gt; 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">&lt;h2&gt;&amp;gt; foo&lt;/h2&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1038:1-1040:48" dir="auto"><strong>Compatibility note:</strong> Most existing Markdown implementations
+<p data-sourcepos="1033:1-1035: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="1042:1-1047:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">Foo</span>
+<pre data-sourcepos="1037:1-1042:3" class="code highlight js-syntax-highlight language-markdown" lang="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="1049:1-1049:44" dir="auto">One can find four different interpretations:</p>
-<ol data-sourcepos="1051:1-1055:0" dir="auto">
-<li data-sourcepos="1051:1-1051:50">paragraph "Foo", heading "bar", paragraph "baz"</li>
-<li data-sourcepos="1052:1-1052:55">paragraph "Foo bar", thematic break, paragraph "baz"</li>
-<li data-sourcepos="1053:1-1053:30">paragraph "Foo bar --- baz"</li>
-<li data-sourcepos="1054:1-1055:0">heading "Foo bar", paragraph "baz"</li>
+<p data-sourcepos="1044:1-1044:44" dir="auto">One can find four different interpretations:</p>
+<ol data-sourcepos="1046:1-1050:0" dir="auto">
+<li data-sourcepos="1046:1-1046:50">paragraph "Foo", heading "bar", paragraph "baz"</li>
+<li data-sourcepos="1047:1-1047:55">paragraph "Foo bar", thematic break, paragraph "baz"</li>
+<li data-sourcepos="1048:1-1048:30">paragraph "Foo bar --- baz"</li>
+<li data-sourcepos="1049:1-1050:0">heading "Foo bar", paragraph "baz"</li>
</ol>
-<p data-sourcepos="1056:1-1059:43" dir="auto">We find interpretation 4 most natural, and interpretation 4
+<p data-sourcepos="1051:1-1054: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1061:1-1071:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span>
+<pre data-sourcepos="1056:1-1066:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -926,10 +923,10 @@ put a blank line after the first paragraph:</p>
<span id="LC9" class="line" lang="plaintext">&lt;p&gt;baz&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1074:1-1075:19" dir="auto">Authors who want interpretation 2 can put blank lines around
+<p data-sourcepos="1069:1-1070:19" dir="auto">Authors who want interpretation 2 can put blank lines around
the thematic break,</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1077:1-1089:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span>
+<pre data-sourcepos="1072:1-1084:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -942,10 +939,10 @@ the thematic break,</p>
<span id="LC11" class="line" lang="plaintext">&lt;p&gt;baz&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1092:1-1093:19" dir="auto">or use a thematic break that cannot count as a [setext heading
+<p data-sourcepos="1087:1-1088:19" dir="auto">or use a thematic break that cannot count as a [setext heading
underline], such as</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1095:1-1105:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span>
+<pre data-sourcepos="1090:1-1100:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -956,9 +953,9 @@ underline], such as</p>
<span id="LC9" class="line" lang="plaintext">&lt;p&gt;baz&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1108:1-1108:60" dir="auto">Authors who want interpretation 3 can use backslash escapes:</p>
+<p data-sourcepos="1103:1-1103:60" dir="auto">Authors who want interpretation 3 can use backslash escapes:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1110:1-1120:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span>
+<pre data-sourcepos="1105:1-1115:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -969,21 +966,21 @@ underline], such as</p>
<span id="LC9" class="line" lang="plaintext">baz&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="1123:1-1123:23" dir="auto">
+<h2 data-sourcepos="1118:1-1118: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="1125:1-1131:44" dir="auto">An <a href="@">indented code block</a> is composed of one or more
+<p data-sourcepos="1120:1-1126: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="1133:1-1136:11" dir="auto">An indented code block cannot interrupt a paragraph, so there must be
+<p data-sourcepos="1128:1-1131: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1138:1-1145:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> a simple</span>
+<pre data-sourcepos="1133:1-1140:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;pre&gt;&lt;code&gt;a simple</span>
@@ -991,11 +988,11 @@ paragraph.)</p>
<span id="LC6" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1148:1-1150:65" dir="auto">If there is any ambiguity between an interpretation of indentation
+<p data-sourcepos="1143:1-1145: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1152:1-1163:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - foo</span>
+<pre data-sourcepos="1147:1-1158:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1008,7 +1005,7 @@ item][list items], the list item interpretation takes precedence:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1166:1-1179:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. foo</span>
+<pre data-sourcepos="1161:1-1174:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -1022,10 +1019,10 @@ item][list items], the list item interpretation takes precedence:</p>
<span id="LC12" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1183:1-1184:12" dir="auto">The contents of a code block are literal text, and do not get parsed
+<p data-sourcepos="1178:1-1179:12" dir="auto">The contents of a code block are literal text, and do not get parsed
as Markdown:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1186:1-1197:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> &lt;a/&gt;</span>
+<pre data-sourcepos="1181:1-1192:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> &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>
@@ -1037,9 +1034,9 @@ as Markdown:</p>
<span id="LC10" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1200:1-1200:51" dir="auto">Here we have three chunks separated by blank lines:</p>
+<p data-sourcepos="1195:1-1195:51" dir="auto">Here we have three chunks separated by blank lines:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1202:1-1219:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> chunk1</span>
+<pre data-sourcepos="1197:1-1214:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1057,10 +1054,10 @@ as Markdown:</p>
<span id="LC16" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1222:1-1223:24" dir="auto">Any initial spaces beyond four will be included in the content, even
+<p data-sourcepos="1217:1-1218:24" dir="auto">Any initial spaces beyond four will be included in the content, even
in interior blank lines:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1225:1-1234:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> chunk1</span>
+<pre data-sourcepos="1220:1-1229:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1070,10 +1067,10 @@ in interior blank lines:</p>
<span id="LC8" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1237:1-1238:37" dir="auto">An indented code block cannot interrupt a paragraph. (This
+<p data-sourcepos="1232:1-1233:37" dir="auto">An indented code block cannot interrupt a paragraph. (This
allows hanging indents and the like.)</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1240:1-1247:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span>
+<pre data-sourcepos="1235:1-1242:32" class="code highlight js-syntax-highlight language-plaintext" lang="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,11 +1078,11 @@ allows hanging indents and the like.)</p>
<span id="LC6" class="line" lang="plaintext">bar&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1250:1-1252:20" dir="auto">However, any non-blank line with fewer than four leading spaces ends
+<p data-sourcepos="1245:1-1247: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1254:1-1261:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo</span>
+<pre data-sourcepos="1249:1-1256:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;pre&gt;&lt;code&gt;foo</span>
@@ -1093,10 +1090,10 @@ after indented code:</p>
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;bar&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1264:1-1265:7" dir="auto">And indented code can occur immediately before and after other kinds of
+<p data-sourcepos="1259:1-1260:7" dir="auto">And indented code can occur immediately before and after other kinds of
blocks:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1267:1-1282:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># Heading</span>
+<pre data-sourcepos="1262:1-1277:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1112,9 +1109,9 @@ blocks:</p>
<span id="LC14" class="line" lang="plaintext">&lt;hr /&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1285:1-1285:53" dir="auto">The first line can be indented more than four spaces:</p>
+<p data-sourcepos="1280:1-1280:53" dir="auto">The first line can be indented more than four spaces:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1287:1-1294:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo</span>
+<pre data-sourcepos="1282:1-1289:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;pre&gt;&lt;code&gt; foo</span>
@@ -1122,10 +1119,10 @@ blocks:</p>
<span id="LC6" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1297:1-1298:23" dir="auto">Blank lines preceding or following an indented code block
+<p data-sourcepos="1292:1-1293:23" dir="auto">Blank lines preceding or following an indented code block
are not included in it:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1300:1-1309:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"></span>
+<pre data-sourcepos="1295:1-1304:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1135,29 +1132,29 @@ are not included in it:</p>
<span id="LC8" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1312:1-1312:57" dir="auto">Trailing spaces are included in the code block's content:</p>
+<p data-sourcepos="1307:1-1307:57" dir="auto">Trailing spaces are included in the code block's content:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1314:1-1319:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo </span>
+<pre data-sourcepos="1309:1-1314:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;pre&gt;&lt;code&gt;foo </span>
<span id="LC4" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="1323:1-1323:21" dir="auto">
+<h2 data-sourcepos="1318:1-1318: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="1325:1-1329:61" dir="auto">A <a href="@">code fence</a> is a sequence
+<p data-sourcepos="1320:1-1324: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="1331:1-1337:34" dir="auto">The line with the opening code fence may optionally contain some text
+<p data-sourcepos="1326:1-1332: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="1339:1-1346:43" dir="auto">The content of the code block consists of all subsequent lines, until
+<p data-sourcepos="1334:1-1341: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
@@ -1165,7 +1162,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="1348:1-1356:25" dir="auto">The closing code fence may be indented up to three spaces, and may be
+<p data-sourcepos="1343:1-1351: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
@@ -1174,16 +1171,16 @@ 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="1358:1-1359:36" dir="auto">A fenced code block may interrupt a paragraph, and does not require
+<p data-sourcepos="1353:1-1354: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="1361:1-1365:42" dir="auto">The content of a code fence is treated as literal text, not parsed
+<p data-sourcepos="1356:1-1360: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="1367:1-1367:40" dir="auto">Here is a simple example with backticks:</p>
+<p data-sourcepos="1362:1-1362:40" dir="auto">Here is a simple example with backticks:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1369:1-1378:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span>
+<pre data-sourcepos="1364:1-1373:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span>
<span id="LC2" class="line" lang="plaintext">&lt;</span>
<span id="LC3" class="line" lang="plaintext"> &gt;</span>
<span id="LC4" class="line" lang="plaintext">```</span>
@@ -1193,9 +1190,9 @@ particular treatment of the [info string].</p>
<span id="LC8" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1381:1-1381:12" dir="auto">With tildes:</p>
+<p data-sourcepos="1376:1-1376:12" dir="auto">With tildes:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1383:1-1392:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~</span>
+<pre data-sourcepos="1378:1-1387:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~</span>
<span id="LC2" class="line" lang="plaintext">&lt;</span>
<span id="LC3" class="line" lang="plaintext"> &gt;</span>
<span id="LC4" class="line" lang="plaintext">~~~</span>
@@ -1205,19 +1202,19 @@ particular treatment of the [info string].</p>
<span id="LC8" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1394:1-1394:41" dir="auto">Fewer than three backticks is not enough:</p>
+<p data-sourcepos="1389:1-1389:41" dir="auto">Fewer than three backticks is not enough:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1396:1-1402:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``</span>
+<pre data-sourcepos="1391:1-1397:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;code&gt;foo&lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1404:1-1405:6" dir="auto">The closing code fence must use the same character as the opening
+<p data-sourcepos="1399:1-1400:6" dir="auto">The closing code fence must use the same character as the opening
fence:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1407:1-1416:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span>
+<pre data-sourcepos="1402:1-1411:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1228,7 +1225,7 @@ fence:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1419:1-1428:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~</span>
+<pre data-sourcepos="1414:1-1423:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1238,9 +1235,9 @@ fence:</p>
<span id="LC8" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1431:1-1431:69" dir="auto">The closing code fence must be at least as long as the opening fence:</p>
+<p data-sourcepos="1426:1-1426:69" dir="auto">The closing code fence must be at least as long as the opening fence:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1433:1-1442:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">````</span>
+<pre data-sourcepos="1428:1-1437:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1251,7 +1248,7 @@ fence:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1445:1-1454:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~~</span>
+<pre data-sourcepos="1440:1-1449:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1261,16 +1258,16 @@ fence:</p>
<span id="LC8" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1457:1-1458:74" dir="auto">Unclosed code blocks are closed by the end of the document
+<p data-sourcepos="1452:1-1453: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1460:1-1464:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span>
+<pre data-sourcepos="1455:1-1459:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;pre&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1467:1-1477:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`````</span>
+<pre data-sourcepos="1462:1-1472:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1282,7 +1279,7 @@ fence:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1480:1-1491:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; ```</span>
+<pre data-sourcepos="1475:1-1486:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; ```</span>
<span id="LC2" class="line" lang="plaintext">&gt; aaa</span>
<span id="LC3" class="line" lang="plaintext"></span>
<span id="LC4" class="line" lang="plaintext">bbb</span>
@@ -1294,9 +1291,9 @@ fence:</p>
<span id="LC10" class="line" lang="plaintext">&lt;p&gt;bbb&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1494:1-1494:53" dir="auto">A code block can have all empty lines as its content:</p>
+<p data-sourcepos="1489:1-1489:53" dir="auto">A code block can have all empty lines as its content:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1496:1-1505:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span>
+<pre data-sourcepos="1491:1-1500:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1306,19 +1303,19 @@ fence:</p>
<span id="LC8" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1508:1-1508:26" dir="auto">A code block can be empty:</p>
+<p data-sourcepos="1503:1-1503:26" dir="auto">A code block can be empty:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1510:1-1515:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span>
+<pre data-sourcepos="1505:1-1510:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;pre&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1518:1-1520:11" dir="auto">Fences can be indented. If the opening fence is indented,
+<p data-sourcepos="1513:1-1515: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1522:1-1531:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ```</span>
+<pre data-sourcepos="1517:1-1526:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1329,7 +1326,7 @@ if present:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1534:1-1545:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ```</span>
+<pre data-sourcepos="1529:1-1540:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1342,7 +1339,7 @@ if present:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1548:1-1559:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ```</span>
+<pre data-sourcepos="1543:1-1554:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1354,9 +1351,9 @@ if present:</p>
<span id="LC10" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1562:1-1562:56" dir="auto">Four spaces indentation produces an indented code block:</p>
+<p data-sourcepos="1557:1-1557:56" dir="auto">Four spaces indentation produces an indented code block:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1564:1-1573:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ```</span>
+<pre data-sourcepos="1559:1-1568:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1366,10 +1363,10 @@ if present:</p>
<span id="LC8" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1576:1-1577:41" dir="auto">Closing fences may be indented by 0-3 spaces, and their indentation
+<p data-sourcepos="1571:1-1572: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1579:1-1586:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span>
+<pre data-sourcepos="1574:1-1581:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1378,7 +1375,7 @@ need not match that of the opening fence:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1589:1-1596:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ```</span>
+<pre data-sourcepos="1584:1-1591:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1386,9 +1383,9 @@ need not match that of the opening fence:</p>
<span id="LC6" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1599:1-1599:61" dir="auto">This is not a closing fence, because it is indented 4 spaces:</p>
+<p data-sourcepos="1594:1-1594:61" dir="auto">This is not a closing fence, because it is indented 4 spaces:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1601:1-1609:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span>
+<pre data-sourcepos="1596:1-1604:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1397,9 +1394,9 @@ need not match that of the opening fence:</p>
<span id="LC7" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1613:1-1613:65" dir="auto">Code fences (opening and closing) cannot contain internal spaces:</p>
+<p data-sourcepos="1608:1-1608:65" dir="auto">Code fences (opening and closing) cannot contain internal spaces:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1615:1-1621:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``` ```</span>
+<pre data-sourcepos="1610:1-1616:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;code&gt; &lt;/code&gt;</span>
@@ -1407,7 +1404,7 @@ need not match that of the opening fence:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1624:1-1632:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~~~~</span>
+<pre data-sourcepos="1619:1-1627:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1416,10 +1413,10 @@ need not match that of the opening fence:</p>
<span id="LC7" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1635:1-1636:53" dir="auto">Fenced code blocks can interrupt paragraphs, and can be followed
+<p data-sourcepos="1630:1-1631:53" dir="auto">Fenced code blocks can interrupt paragraphs, and can be followed
directly by paragraphs, without a blank line between:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1638:1-1649:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span>
+<pre data-sourcepos="1633:1-1644:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1431,10 +1428,10 @@ directly by paragraphs, without a blank line between:</p>
<span id="LC10" class="line" lang="plaintext">&lt;p&gt;baz&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1652:1-1653:34" dir="auto">Other blocks can also occur before and after fenced code blocks
+<p data-sourcepos="1647:1-1648:34" dir="auto">Other blocks can also occur before and after fenced code blocks
without an intervening blank line:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1655:1-1667:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span>
+<pre data-sourcepos="1650:1-1662:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1447,14 +1444,14 @@ without an intervening blank line:</p>
<span id="LC11" class="line" lang="plaintext">&lt;h1&gt;baz&lt;/h1&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1670:1-1675:45" dir="auto">An [info string] can be provided after the opening code fence.
+<p data-sourcepos="1665:1-1670: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1677:1-1688:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```ruby</span>
+<pre data-sourcepos="1672:1-1683:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1467,7 +1464,7 @@ 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="1691:1-1702:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~~ ruby startline=3 $%@#$</span>
+<pre data-sourcepos="1686:1-1697:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1480,24 +1477,24 @@ 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="1705:1-1710:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">````;</span>
+<pre data-sourcepos="1700:1-1705:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;pre&gt;&lt;code class="language-;"&gt;&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1713:1-1713:65" dir="auto">[Info strings] for backtick code blocks cannot contain backticks:</p>
+<p data-sourcepos="1708:1-1708:65" dir="auto">[Info strings] for backtick code blocks cannot contain backticks:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1715:1-1721:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``` aa ```</span>
+<pre data-sourcepos="1710:1-1716:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;&lt;code&gt;aa&lt;/code&gt;</span>
<span id="LC5" class="line" lang="plaintext">foo&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1724:1-1724:70" dir="auto">[Info strings] for tilde code blocks can contain backticks and tildes:</p>
+<p data-sourcepos="1719:1-1719:70" dir="auto">[Info strings] for tilde code blocks can contain backticks and tildes:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1726:1-1733:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~ aa ``` ~~~</span>
+<pre data-sourcepos="1721:1-1728:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -1505,9 +1502,9 @@ of <code>language-</code> followed by the language name.</p>
<span id="LC6" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1736:1-1736:47" dir="auto">Closing code fences cannot have [info strings]:</p>
+<p data-sourcepos="1731:1-1731:47" dir="auto">Closing code fences cannot have [info strings]:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1738:1-1745:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span>
+<pre data-sourcepos="1733:1-1740:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -1515,11 +1512,11 @@ of <code>language-</code> followed by the language name.</p>
<span id="LC6" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="1749:1-1749:14" dir="auto">
+<h2 data-sourcepos="1744:1-1744:14" dir="auto">
<a id="user-content-html-blocks" class="anchor" href="#html-blocks" aria-hidden="true"></a>HTML blocks</h2>
-<p data-sourcepos="1751:1-1752:53" dir="auto">An <a href="@">HTML block</a> is a group of lines that is treated
+<p data-sourcepos="1746:1-1747: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="1754:1-1762:50" dir="auto">There are seven kinds of [HTML block], which can be defined by their
+<p data-sourcepos="1749:1-1757: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
@@ -1528,35 +1525,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="1764:1-1805:0" dir="auto">
-<li data-sourcepos="1764:1-1770:0">
-<p data-sourcepos="1764:5-1769:30"><strong>Start condition:</strong> line begins with the string <code>&lt;script</code>,
+<ol data-sourcepos="1759:1-1800:0" dir="auto">
+<li data-sourcepos="1759:1-1765:0">
+<p data-sourcepos="1759:5-1764:30"><strong>Start condition:</strong> line begins with the string <code>&lt;script</code>,
<code>&lt;pre</code>, or <code>&lt;style</code> (case-insensitive), followed by whitespace,
the string <code>&gt;</code>, or the end of the line.<br>
<strong>End condition:</strong> line contains an end tag
<code>&lt;/script&gt;</code>, <code>&lt;/pre&gt;</code>, or <code>&lt;/style&gt;</code> (case-insensitive; it
need not match the start tag).</p>
</li>
-<li data-sourcepos="1771:1-1773:0">
-<p data-sourcepos="1771:5-1772:51"><strong>Start condition:</strong> line begins with the string <code>&lt;!--</code>.<br>
+<li data-sourcepos="1766:1-1768:0">
+<p data-sourcepos="1766:5-1767:51"><strong>Start condition:</strong> line begins with the string <code>&lt;!--</code>.<br>
<strong>End condition:</strong> line contains the string <code>--&gt;</code>.</p>
</li>
-<li data-sourcepos="1774:1-1776:0">
-<p data-sourcepos="1774:5-1775:49"><strong>Start condition:</strong> line begins with the string <code>&lt;?</code>.<br>
+<li data-sourcepos="1769:1-1771:0">
+<p data-sourcepos="1769:5-1770:49"><strong>Start condition:</strong> line begins with the string <code>&lt;?</code>.<br>
<strong>End condition:</strong> line contains the string <code>?&gt;</code>.</p>
</li>
-<li data-sourcepos="1777:1-1780:0">
-<p data-sourcepos="1777:5-1779:51"><strong>Start condition:</strong> line begins with the string <code>&lt;!</code>
+<li data-sourcepos="1772:1-1775:0">
+<p data-sourcepos="1772:5-1774:51"><strong>Start condition:</strong> line begins with the string <code>&lt;!</code>
followed by an uppercase ASCII letter.<br>
<strong>End condition:</strong> line contains the character <code>&gt;</code>.</p>
</li>
-<li data-sourcepos="1781:1-1784:0">
-<p data-sourcepos="1781:5-1783:50"><strong>Start condition:</strong> line begins with the string
+<li data-sourcepos="1776:1-1779:0">
+<p data-sourcepos="1776:5-1778:50"><strong>Start condition:</strong> line begins with the string
<code>&lt;![CDATA[</code>.<br>
<strong>End condition:</strong> line contains the string <code>]]&gt;</code>.</p>
</li>
-<li data-sourcepos="1785:1-1799:0">
-<p data-sourcepos="1785:5-1798:54"><strong>Start condition:</strong> line begins the string <code>&lt;</code> or <code>&lt;/</code>
+<li data-sourcepos="1780:1-1794:0">
+<p data-sourcepos="1780:5-1793:54"><strong>Start condition:</strong> line begins the string <code>&lt;</code> or <code>&lt;/</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>,
@@ -1571,25 +1568,25 @@ by [whitespace], the end of the line, the string <code>&gt;</code>, or
the string <code>/&gt;</code>.<br>
<strong>End condition:</strong> line is followed by a [blank line].</p>
</li>
-<li data-sourcepos="1800:1-1805:0">
-<p data-sourcepos="1800:5-1804:54"><strong>Start condition:</strong> line begins with a complete [open tag]
+<li data-sourcepos="1795:1-1800:0">
+<p data-sourcepos="1795:5-1799: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="1806:1-1811:19" dir="auto">HTML blocks continue until they are closed by their appropriate
+<p data-sourcepos="1801:1-1806: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="1813:1-1815:51" dir="auto">For instance, <code>&lt;pre&gt;</code> within a HTML block started by <code>&lt;table&gt;</code> will not affect
+<p data-sourcepos="1808:1-1810:51" dir="auto">For instance, <code>&lt;pre&gt;</code> within a HTML block started by <code>&lt;table&gt;</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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1817:1-1832:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;table&gt;&lt;tr&gt;&lt;td&gt;</span>
+<pre data-sourcepos="1812:1-1827:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;table&gt;&lt;tr&gt;&lt;td&gt;</span>
<span id="LC2" class="line" lang="plaintext">&lt;pre&gt;</span>
<span id="LC3" class="line" lang="plaintext">**Hello**,</span>
<span id="LC4" class="line" lang="plaintext"></span>
@@ -1605,17 +1602,17 @@ will end at any blank line. This can be surprising:</p>
<span id="LC14" class="line" lang="plaintext">&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1834:1-1836:55" dir="auto">In this case, the HTML block is terminated by the newline — the <code>**Hello**</code>
+<p data-sourcepos="1829:1-1831: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="1838:1-1841:65" dir="auto">All types of [HTML blocks] except type 7 may interrupt
+<p data-sourcepos="1833:1-1836: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="1843:1-1844:10" dir="auto">Some simple examples follow. Here are some basic HTML blocks
+<p data-sourcepos="1838:1-1839:10" dir="auto">Some simple examples follow. Here are some basic HTML blocks
of type 6:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1846:1-1865:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;table&gt;</span>
+<pre data-sourcepos="1841:1-1860:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;table&gt;</span>
<span id="LC2" class="line" lang="plaintext"> &lt;tr&gt;</span>
<span id="LC3" class="line" lang="plaintext"> &lt;td&gt;</span>
<span id="LC4" class="line" lang="plaintext"> hi</span>
@@ -1636,7 +1633,7 @@ of type 6:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1868:1-1876:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> &lt;div&gt;</span>
+<pre data-sourcepos="1863:1-1871:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> &lt;div&gt;</span>
<span id="LC2" class="line" lang="plaintext"> *hello*</span>
<span id="LC3" class="line" lang="plaintext"> &lt;foo&gt;&lt;a&gt;</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -1645,18 +1642,18 @@ of type 6:</p>
<span id="LC7" class="line" lang="plaintext"> &lt;foo&gt;&lt;a&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1879:1-1879:42" dir="auto">A block can also start with a closing tag:</p>
+<p data-sourcepos="1874:1-1874:42" dir="auto">A block can also start with a closing tag:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1881:1-1887:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;/div&gt;</span>
+<pre data-sourcepos="1876:1-1882:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;/div&gt;</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">&lt;/div&gt;</span>
<span id="LC5" class="line" lang="plaintext">*foo*</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1890:1-1890:68" dir="auto">Here we have two HTML blocks with a Markdown paragraph between them:</p>
+<p data-sourcepos="1885:1-1885:68" dir="auto">Here we have two HTML blocks with a Markdown paragraph between them:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1892:1-1902:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;DIV CLASS="foo"&gt;</span>
+<pre data-sourcepos="1887:1-1897:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;DIV CLASS="foo"&gt;</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>
@@ -1667,10 +1664,10 @@ of type 6:</p>
<span id="LC9" class="line" lang="plaintext">&lt;/DIV&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1905:1-1906:47" dir="auto">The tag on the first line can be partial, as long
+<p data-sourcepos="1900:1-1901: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1908:1-1916:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div id="foo"</span>
+<pre data-sourcepos="1903:1-1911:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div id="foo"</span>
<span id="LC2" class="line" lang="plaintext"> class="bar"&gt;</span>
<span id="LC3" class="line" lang="plaintext">&lt;/div&gt;</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -1680,7 +1677,7 @@ as it is split where there would be whitespace:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1919:1-1927:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div id="foo" class="bar</span>
+<pre data-sourcepos="1914:1-1922:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div id="foo" class="bar</span>
<span id="LC2" class="line" lang="plaintext"> baz"&gt;</span>
<span id="LC3" class="line" lang="plaintext">&lt;/div&gt;</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -1689,9 +1686,9 @@ as it is split where there would be whitespace:</p>
<span id="LC7" class="line" lang="plaintext">&lt;/div&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1930:1-1930:31" dir="auto">An open tag need not be closed:</p>
+<p data-sourcepos="1925:1-1925:31" dir="auto">An open tag need not be closed:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1931:1-1940:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div&gt;</span>
+<pre data-sourcepos="1926:1-1935:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div&gt;</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>
@@ -1701,10 +1698,10 @@ as it is split where there would be whitespace:</p>
<span id="LC8" class="line" lang="plaintext">&lt;p&gt;&lt;em&gt;bar&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1944:1-1945:17" dir="auto">A partial tag need not even be completed (garbage
+<p data-sourcepos="1939:1-1940:17" dir="auto">A partial tag need not even be completed (garbage
in, garbage out):</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1947:1-1953:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div id="foo"</span>
+<pre data-sourcepos="1942:1-1948:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div id="foo"</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">&lt;div id="foo"</span>
@@ -1712,33 +1709,33 @@ in, garbage out):</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1956:1-1962:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div class</span>
+<pre data-sourcepos="1951:1-1957:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div class</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">&lt;div class</span>
<span id="LC5" class="line" lang="plaintext">foo</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1965:1-1966:35" dir="auto">The initial tag doesn't even need to be a valid
+<p data-sourcepos="1960:1-1961:35" dir="auto">The initial tag doesn't even need to be a valid
tag, as long as it starts like one:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1968:1-1974:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div *???-&amp;&amp;&amp;-&lt;---</span>
+<pre data-sourcepos="1963:1-1969:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div *???-&amp;&amp;&amp;-&lt;---</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">&lt;div *???-&amp;&amp;&amp;-&lt;---</span>
<span id="LC5" class="line" lang="plaintext">*foo*</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1977:1-1978:7" dir="auto">In type 6 blocks, the initial tag need not be on a line by
+<p data-sourcepos="1972:1-1973:7" dir="auto">In type 6 blocks, the initial tag need not be on a line by
itself:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1980:1-1984:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div&gt;&lt;a href="bar"&gt;*foo*&lt;/a&gt;&lt;/div&gt;</span>
+<pre data-sourcepos="1975:1-1979:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div&gt;&lt;a href="bar"&gt;*foo*&lt;/a&gt;&lt;/div&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;div&gt;&lt;a href="bar"&gt;*foo*&lt;/a&gt;&lt;/div&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="1987:1-1995:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;table&gt;&lt;tr&gt;&lt;td&gt;</span>
+<pre data-sourcepos="1982:1-1990:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;table&gt;&lt;tr&gt;&lt;td&gt;</span>
<span id="LC2" class="line" lang="plaintext">foo</span>
<span id="LC3" class="line" lang="plaintext">&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -1747,13 +1744,13 @@ itself:</p>
<span id="LC7" class="line" lang="plaintext">&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="1998:1-2002:43" dir="auto">Everything until the next blank line or end of document
+<p data-sourcepos="1993:1-1997: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2004:1-2014:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div&gt;&lt;/div&gt;</span>
+<pre data-sourcepos="1999:1-2009:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div&gt;&lt;/div&gt;</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>
@@ -1764,11 +1761,11 @@ line or the end of the document is reached:</p>
<span id="LC9" class="line" lang="plaintext">```</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2017:1-2019:51" dir="auto">To start an [HTML block] with a tag that is <em>not</em> in the
+<p data-sourcepos="2012:1-2014: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2021:1-2029:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href="foo"&gt;</span>
+<pre data-sourcepos="2016:1-2024:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href="foo"&gt;</span>
<span id="LC2" class="line" lang="plaintext">*bar*</span>
<span id="LC3" class="line" lang="plaintext">&lt;/a&gt;</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -1777,9 +1774,9 @@ itself on the first line (and it must be complete):</p>
<span id="LC7" class="line" lang="plaintext">&lt;/a&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2032:1-2032:49" dir="auto">In type 7 blocks, the [tag name] can be anything:</p>
+<p data-sourcepos="2027:1-2027:49" dir="auto">In type 7 blocks, the [tag name] can be anything:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2034:1-2042:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;Warning&gt;</span>
+<pre data-sourcepos="2029:1-2037:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;Warning&gt;</span>
<span id="LC2" class="line" lang="plaintext">*bar*</span>
<span id="LC3" class="line" lang="plaintext">&lt;/Warning&gt;</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -1789,7 +1786,7 @@ itself on the first line (and it must be complete):</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2045:1-2053:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;i class="foo"&gt;</span>
+<pre data-sourcepos="2040:1-2048:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;i class="foo"&gt;</span>
<span id="LC2" class="line" lang="plaintext">*bar*</span>
<span id="LC3" class="line" lang="plaintext">&lt;/i&gt;</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -1799,20 +1796,20 @@ itself on the first line (and it must be complete):</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2056:1-2062:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;/ins&gt;</span>
+<pre data-sourcepos="2051:1-2057:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;/ins&gt;</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">&lt;/ins&gt;</span>
<span id="LC5" class="line" lang="plaintext">*bar*</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2065:1-2069:59" dir="auto">These rules are designed to allow us to work with tags that
+<p data-sourcepos="2060:1-2064: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>&lt;del&gt;</code> tag is a nice example. We can surround content with
<code>&lt;del&gt;</code> tags in three different ways. In this case, we get a raw
HTML block, because the <code>&lt;del&gt;</code> tag is on a line by itself:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2071:1-2079:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;del&gt;</span>
+<pre data-sourcepos="2066:1-2074:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;del&gt;</span>
<span id="LC2" class="line" lang="plaintext">*foo*</span>
<span id="LC3" class="line" lang="plaintext">&lt;/del&gt;</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -1821,11 +1818,11 @@ HTML block, because the <code>&lt;del&gt;</code> tag is on a line by itself:</p>
<span id="LC7" class="line" lang="plaintext">&lt;/del&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2082:1-2084:54" dir="auto">In this case, we get a raw HTML block that just includes
+<p data-sourcepos="2077:1-2079:54" dir="auto">In this case, we get a raw HTML block that just includes
the <code>&lt;del&gt;</code> tag (because it ends with the following blank
line). So the contents get interpreted as CommonMark:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2086:1-2096:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;del&gt;</span>
+<pre data-sourcepos="2081:1-2091:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;del&gt;</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>
@@ -1836,25 +1833,25 @@ line). So the contents get interpreted as CommonMark:</p>
<span id="LC9" class="line" lang="plaintext">&lt;/del&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2099:1-2102:29" dir="auto">Finally, in this case, the <code>&lt;del&gt;</code> tags are interpreted
+<p data-sourcepos="2094:1-2097:29" dir="auto">Finally, in this case, the <code>&lt;del&gt;</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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2104:1-2108:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;del&gt;*foo*&lt;/del&gt;</span>
+<pre data-sourcepos="2099:1-2103:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;del&gt;*foo*&lt;/del&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;del&gt;&lt;em&gt;foo&lt;/em&gt;&lt;/del&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2111:1-2116:50" dir="auto">HTML tags designed to contain literal content
+<p data-sourcepos="2106:1-2111: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="2118:1-2118:19" dir="auto">A pre tag (type 1):</p>
+<p data-sourcepos="2113:1-2113:19" dir="auto">A pre tag (type 1):</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2120:1-2136:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;pre language="haskell"&gt;&lt;code&gt;</span>
+<pre data-sourcepos="2115:1-2131:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;pre language="haskell"&gt;&lt;code&gt;</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>
@@ -1871,9 +1868,9 @@ As a result, these blocks can contain blank lines:</p>
<span id="LC15" class="line" lang="plaintext">&lt;p&gt;okay&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2139:1-2139:22" dir="auto">A script tag (type 1):</p>
+<p data-sourcepos="2134:1-2134:22" dir="auto">A script tag (type 1):</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2141:1-2155:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;script type="text/javascript"&gt;</span>
+<pre data-sourcepos="2136:1-2150:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;script type="text/javascript"&gt;</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>
@@ -1888,9 +1885,9 @@ As a result, these blocks can contain blank lines:</p>
<span id="LC13" class="line" lang="plaintext">&lt;p&gt;okay&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2158:1-2158:21" dir="auto">A style tag (type 1):</p>
+<p data-sourcepos="2153:1-2153:21" dir="auto">A style tag (type 1):</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2160:1-2176:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;style</span>
+<pre data-sourcepos="2155:1-2171:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;style</span>
<span id="LC2" class="line" lang="plaintext"> type="text/css"&gt;</span>
<span id="LC3" class="line" lang="plaintext">h1 {color:red;}</span>
<span id="LC4" class="line" lang="plaintext"></span>
@@ -1907,11 +1904,11 @@ As a result, these blocks can contain blank lines:</p>
<span id="LC15" class="line" lang="plaintext">&lt;p&gt;okay&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2179:1-2181:28" dir="auto">If there is no matching end tag, the block will end at the
+<p data-sourcepos="2174:1-2176: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2183:1-2193:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;style</span>
+<pre data-sourcepos="2178:1-2188:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;style</span>
<span id="LC2" class="line" lang="plaintext"> type="text/css"&gt;</span>
<span id="LC3" class="line" lang="plaintext"></span>
<span id="LC4" class="line" lang="plaintext">foo</span>
@@ -1923,7 +1920,7 @@ or [list item][list items]):</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2196:1-2207:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; &lt;div&gt;</span>
+<pre data-sourcepos="2191:1-2202:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; &lt;div&gt;</span>
<span id="LC2" class="line" lang="plaintext">&gt; foo</span>
<span id="LC3" class="line" lang="plaintext"></span>
<span id="LC4" class="line" lang="plaintext">bar</span>
@@ -1936,7 +1933,7 @@ or [list item][list items]):</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2210:1-2220:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- &lt;div&gt;</span>
+<pre data-sourcepos="2205:1-2215:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- &lt;div&gt;</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">&lt;ul&gt;</span>
@@ -1947,9 +1944,9 @@ or [list item][list items]):</p>
<span id="LC9" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2223:1-2223:56" dir="auto">The end tag can occur on the same line as the start tag:</p>
+<p data-sourcepos="2218:1-2218:56" dir="auto">The end tag can occur on the same line as the start tag:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2225:1-2231:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;style&gt;p{color:red;}&lt;/style&gt;</span>
+<pre data-sourcepos="2220:1-2226:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;style&gt;p{color:red;}&lt;/style&gt;</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">&lt;style&gt;p{color:red;}&lt;/style&gt;</span>
@@ -1957,17 +1954,17 @@ or [list item][list items]):</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2234:1-2240:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;!-- foo --&gt;*bar*</span>
+<pre data-sourcepos="2229:1-2235:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;!-- foo --&gt;*bar*</span>
<span id="LC2" class="line" lang="plaintext">*baz*</span>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;!-- foo --&gt;*bar*</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;em&gt;baz&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2243:1-2244:45" dir="auto">Note that anything on the last line after the
+<p data-sourcepos="2238:1-2239:45" dir="auto">Note that anything on the last line after the
end tag will be included in the [HTML block]:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2246:1-2254:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;script&gt;</span>
+<pre data-sourcepos="2241:1-2249:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;script&gt;</span>
<span id="LC2" class="line" lang="plaintext">foo</span>
<span id="LC3" class="line" lang="plaintext">&lt;/script&gt;1. *bar*</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -1976,9 +1973,9 @@ end tag will be included in the [HTML block]:</p>
<span id="LC7" class="line" lang="plaintext">&lt;/script&gt;1. *bar*</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2257:1-2257:19" dir="auto">A comment (type 2):</p>
+<p data-sourcepos="2252:1-2252:19" dir="auto">A comment (type 2):</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2259:1-2271:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;!-- Foo</span>
+<pre data-sourcepos="2254:1-2266:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;!-- 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 --&gt;</span>
@@ -1991,9 +1988,9 @@ end tag will be included in the [HTML block]:</p>
<span id="LC11" class="line" lang="plaintext">&lt;p&gt;okay&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2275:1-2275:34" dir="auto">A processing instruction (type 3):</p>
+<p data-sourcepos="2270:1-2270:34" dir="auto">A processing instruction (type 3):</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2277:1-2291:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;?php</span>
+<pre data-sourcepos="2272:1-2286:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;?php</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext"> echo '&gt;';</span>
<span id="LC4" class="line" lang="plaintext"></span>
@@ -2008,16 +2005,16 @@ end tag will be included in the [HTML block]:</p>
<span id="LC13" class="line" lang="plaintext">&lt;p&gt;okay&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2294:1-2294:23" dir="auto">A declaration (type 4):</p>
+<p data-sourcepos="2289:1-2289:23" dir="auto">A declaration (type 4):</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2296:1-2300:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;!DOCTYPE html&gt;</span>
+<pre data-sourcepos="2291:1-2295:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;!DOCTYPE html&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;!DOCTYPE html&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2303:1-2303:15" dir="auto">CDATA (type 5):</p>
+<p data-sourcepos="2298:1-2298:15" dir="auto">CDATA (type 5):</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2305:1-2333:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;![CDATA[</span>
+<pre data-sourcepos="2300:1-2328:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;![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 &lt; b &amp;&amp; a &lt; 0) then {</span>
@@ -2046,9 +2043,9 @@ end tag will be included in the [HTML block]:</p>
<span id="LC27" class="line" lang="plaintext">&lt;p&gt;okay&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2336:1-2336:54" dir="auto">The opening tag can be indented 1-3 spaces, but not 4:</p>
+<p data-sourcepos="2331:1-2331:54" dir="auto">The opening tag can be indented 1-3 spaces, but not 4:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2338:1-2346:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> &lt;!-- foo --&gt;</span>
+<pre data-sourcepos="2333:1-2341:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> &lt;!-- foo --&gt;</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext"> &lt;!-- foo --&gt;</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2058,7 +2055,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="2349:1-2357:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> &lt;div&gt;</span>
+<pre data-sourcepos="2344:1-2352:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> &lt;div&gt;</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext"> &lt;div&gt;</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2067,10 +2064,10 @@ end tag will be included in the [HTML block]:</p>
<span id="LC7" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2360:1-2361:25" dir="auto">An HTML block of types 1--6 can interrupt a paragraph, and need not be
+<p data-sourcepos="2355:1-2356: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2363:1-2373:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span>
+<pre data-sourcepos="2358:1-2368:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;div&gt;</span>
<span id="LC3" class="line" lang="plaintext">bar</span>
<span id="LC4" class="line" lang="plaintext">&lt;/div&gt;</span>
@@ -2081,11 +2078,11 @@ preceded by a blank line.</p>
<span id="LC9" class="line" lang="plaintext">&lt;/div&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2376:1-2378:7" dir="auto">However, a following blank line is needed, except at the end of
+<p data-sourcepos="2371:1-2373: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2380:1-2390:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div&gt;</span>
+<pre data-sourcepos="2375:1-2385:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div&gt;</span>
<span id="LC2" class="line" lang="plaintext">bar</span>
<span id="LC3" class="line" lang="plaintext">&lt;/div&gt;</span>
<span id="LC4" class="line" lang="plaintext">*foo*</span>
@@ -2096,9 +2093,9 @@ block]:</p>
<span id="LC9" class="line" lang="plaintext">*foo*</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2393:1-2393:51" dir="auto">HTML blocks of type 7 cannot interrupt a paragraph:</p>
+<p data-sourcepos="2388:1-2388:51" dir="auto">HTML blocks of type 7 cannot interrupt a paragraph:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2395:1-2403:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span>
+<pre data-sourcepos="2390:1-2398:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;a href="bar"&gt;</span>
<span id="LC3" class="line" lang="plaintext">baz</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2107,25 +2104,25 @@ block]:</p>
<span id="LC7" class="line" lang="plaintext">baz&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2406:1-2407:26" dir="auto">This rule differs from John Gruber's original Markdown syntax
+<p data-sourcepos="2401:1-2402:26" dir="auto">This rule differs from John Gruber's original Markdown syntax
specification, which says:</p>
-<blockquote data-sourcepos="2409:1-2412:51" dir="auto">
-<p data-sourcepos="2409:3-2412:51">The only restrictions are that block-level HTML elements —
+<blockquote data-sourcepos="2404:1-2407:51" dir="auto">
+<p data-sourcepos="2404:3-2407:51">The only restrictions are that block-level HTML elements —
e.g. <code>&lt;div&gt;</code>, <code>&lt;table&gt;</code>, <code>&lt;pre&gt;</code>, <code>&lt;p&gt;</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="2414:1-2415:5" dir="auto">In some ways Gruber's rule is more restrictive than the one given
+<p data-sourcepos="2409:1-2410:5" dir="auto">In some ways Gruber's rule is more restrictive than the one given
here:</p>
-<ul data-sourcepos="2417:1-2421:0" dir="auto">
-<li data-sourcepos="2417:1-2417:61">It requires that an HTML block be preceded by a blank line.</li>
-<li data-sourcepos="2418:1-2418:49">It does not allow the start tag to be indented.</li>
-<li data-sourcepos="2419:1-2421:0">It requires a matching end tag, which it also does not allow to
+<ul data-sourcepos="2412:1-2416:0" dir="auto">
+<li data-sourcepos="2412:1-2412:61">It requires that an HTML block be preceded by a blank line.</li>
+<li data-sourcepos="2413:1-2413:49">It does not allow the start tag to be indented.</li>
+<li data-sourcepos="2414:1-2416:0">It requires a matching end tag, which it also does not allow to
be indented.</li>
</ul>
-<p data-sourcepos="2422:1-2423:34" dir="auto">Most Markdown implementations (including some of Gruber's own) do not
+<p data-sourcepos="2417:1-2418:34" dir="auto">Most Markdown implementations (including some of Gruber's own) do not
respect all of these restrictions.</p>
-<p data-sourcepos="2425:1-2432:61" dir="auto">There is one respect, however, in which Gruber's rule is more liberal
+<p data-sourcepos="2420:1-2427: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
@@ -2133,9 +2130,9 @@ 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="2434:1-2434:8" dir="auto">Compare:</p>
+<p data-sourcepos="2429:1-2429:8" dir="auto">Compare:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2436:1-2446:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div&gt;</span>
+<pre data-sourcepos="2431:1-2441:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div&gt;</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>
@@ -2147,7 +2144,7 @@ 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="2449:1-2457:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div&gt;</span>
+<pre data-sourcepos="2444:1-2452:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;div&gt;</span>
<span id="LC2" class="line" lang="plaintext">*Emphasized* text.</span>
<span id="LC3" class="line" lang="plaintext">&lt;/div&gt;</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2156,17 +2153,17 @@ simply separate the Markdown from the HTML using blank lines:</p>
<span id="LC7" class="line" lang="plaintext">&lt;/div&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2460:1-2464:22" dir="auto">Some Markdown implementations have adopted a convention of
+<p data-sourcepos="2455:1-2459: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="2466:1-2469:59" dir="auto">The main potential drawback is that one can no longer paste HTML
+<p data-sourcepos="2461:1-2464: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2471:1-2491:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;table&gt;</span>
+<pre data-sourcepos="2466:1-2486:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;table&gt;</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext">&lt;tr&gt;</span>
<span id="LC4" class="line" lang="plaintext"></span>
@@ -2187,11 +2184,11 @@ HTML are usually followed by HTML block tags. For example:</p>
<span id="LC19" class="line" lang="plaintext">&lt;/table&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2494:1-2496:23" dir="auto">There are problems, however, if the inner tags are indented
+<p data-sourcepos="2489:1-2491: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2498:1-2519:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;table&gt;</span>
+<pre data-sourcepos="2493:1-2514:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;table&gt;</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext"> &lt;tr&gt;</span>
<span id="LC4" class="line" lang="plaintext"></span>
@@ -2213,13 +2210,13 @@ an indented code block:</p>
<span id="LC20" class="line" lang="plaintext">&lt;/table&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2522:1-2525:26" dir="auto">Fortunately, blank lines are usually not necessary and can be
+<p data-sourcepos="2517:1-2520:26" dir="auto">Fortunately, blank lines are usually not necessary and can be
deleted. The exception is inside <code>&lt;pre&gt;</code> tags, but as described
[above][HTML blocks], raw HTML blocks starting with <code>&lt;pre&gt;</code>
<em>can</em> contain blank lines.</p>
-<h2 data-sourcepos="2527:1-2527:29" dir="auto">
+<h2 data-sourcepos="2522:1-2522: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="2529:1-2537:61" dir="auto">A <a href="@">link reference definition</a>
+<p data-sourcepos="2524:1-2532: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],
@@ -2228,14 +2225,14 @@ 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="2539:1-2544:5" dir="auto">A [link reference definition]
+<p data-sourcepos="2534:1-2539: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2546:1-2552:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url "title"</span>
+<pre data-sourcepos="2541:1-2547:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2243,7 +2240,7 @@ them.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2555:1-2563:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> [foo]: </span>
+<pre data-sourcepos="2550:1-2558:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -2253,7 +2250,7 @@ them.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2566:1-2572:32" class="code highlight js-syntax-highlight language-plaintext" lang="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="2561:1-2567:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2261,7 +2258,7 @@ them.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2575:1-2583:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[Foo bar]:</span>
+<pre data-sourcepos="2570:1-2578:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;my url&gt;</span>
<span id="LC3" class="line" lang="plaintext">'title'</span>
<span id="LC4" class="line" lang="plaintext"></span>
@@ -2270,9 +2267,9 @@ them.</p>
<span id="LC7" class="line" lang="plaintext">&lt;p&gt;&lt;a href="my%20url" title="title"&gt;Foo bar&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2586:1-2586:41" dir="auto">The title may extend over multiple lines:</p>
+<p data-sourcepos="2581:1-2581:41" dir="auto">The title may extend over multiple lines:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2588:1-2602:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url '</span>
+<pre data-sourcepos="2583:1-2597:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -2287,9 +2284,9 @@ them.</p>
<span id="LC13" class="line" lang="plaintext">"&gt;foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2605:1-2605:43" dir="auto">However, it may not contain a [blank line]:</p>
+<p data-sourcepos="2600:1-2600:43" dir="auto">However, it may not contain a [blank line]:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2607:1-2617:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url 'title</span>
+<pre data-sourcepos="2602:1-2612:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -2300,9 +2297,9 @@ them.</p>
<span id="LC9" class="line" lang="plaintext">&lt;p&gt;[foo]&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2620:1-2620:25" dir="auto">The title may be omitted:</p>
+<p data-sourcepos="2615:1-2615:25" dir="auto">The title may be omitted:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2622:1-2629:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]:</span>
+<pre data-sourcepos="2617:1-2624:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -2310,9 +2307,9 @@ them.</p>
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/url"&gt;foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2632:1-2632:40" dir="auto">The link destination may not be omitted:</p>
+<p data-sourcepos="2627:1-2627:40" dir="auto">The link destination may not be omitted:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2634:1-2641:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]:</span>
+<pre data-sourcepos="2629:1-2636:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2320,20 +2317,20 @@ them.</p>
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;[foo]&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2643:2-2644:16" dir="auto">However, an empty link destination may be specified using
+<p data-sourcepos="2638:2-2639:16" dir="auto">However, an empty link destination may be specified using
angle brackets:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2646:1-2652:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: &lt;&gt;</span>
+<pre data-sourcepos="2641:1-2647:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: &lt;&gt;</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>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href=""&gt;foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2654:1-2655:11" dir="auto">The title must be separated from the link destination by
+<p data-sourcepos="2649:1-2650:11" dir="auto">The title must be separated from the link destination by
whitespace:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2657:1-2664:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: &lt;bar&gt;(baz)</span>
+<pre data-sourcepos="2652:1-2659:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: &lt;bar&gt;(baz)</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>
@@ -2341,29 +2338,29 @@ whitespace:</p>
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;[foo]&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2667:1-2668:24" dir="auto">Both title and destination can contain backslash escapes
+<p data-sourcepos="2662:1-2663:24" dir="auto">Both title and destination can contain backslash escapes
and literal backslashes:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2670:1-2676:32" class="code highlight js-syntax-highlight language-plaintext" lang="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="2665:1-2671:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/url%5Cbar*baz" title="foo&amp;quot;bar\baz"&gt;foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2679:1-2679:52" dir="auto">A link can come before its corresponding definition:</p>
+<p data-sourcepos="2674:1-2674:52" dir="auto">A link can come before its corresponding definition:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2681:1-2687:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span>
+<pre data-sourcepos="2676:1-2682:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href="url"&gt;foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2690:1-2691:11" dir="auto">If there are several matching definitions, the first one takes
+<p data-sourcepos="2685:1-2686:11" dir="auto">If there are several matching definitions, the first one takes
precedence:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2693:1-2700:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span>
+<pre data-sourcepos="2688:1-2695:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -2371,10 +2368,10 @@ precedence:</p>
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;&lt;a href="first"&gt;foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2703:1-2704:33" dir="auto">As noted in the section on [Links], matching of labels is
+<p data-sourcepos="2698:1-2699:33" dir="auto">As noted in the section on [Links], matching of labels is
case-insensitive (see [matches]).</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2706:1-2712:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[FOO]: /url</span>
+<pre data-sourcepos="2701:1-2707:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2382,23 +2379,23 @@ case-insensitive (see [matches]).</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2715:1-2721:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[ΑΓΩ]: /φου</span>
+<pre data-sourcepos="2710:1-2716:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/%CF%86%CE%BF%CF%85"&gt;αγω&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2724:1-2725:39" dir="auto">Here is a link reference definition with no corresponding link.
+<p data-sourcepos="2719:1-2720:39" dir="auto">Here is a link reference definition with no corresponding link.
It contributes nothing to the document.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2727:1-2730:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url</span>
+<pre data-sourcepos="2722:1-2725:32" class="code highlight js-syntax-highlight language-plaintext" lang="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></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2733:1-2733:20" dir="auto">Here is another one:</p>
+<p data-sourcepos="2728:1-2728:20" dir="auto">Here is another one:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2735:1-2742:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[</span>
+<pre data-sourcepos="2730:1-2737:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -2406,26 +2403,26 @@ It contributes nothing to the document.</p>
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;bar&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2745:1-2746:44" dir="auto">This is not a link reference definition, because there are
+<p data-sourcepos="2740:1-2741:44" dir="auto">This is not a link reference definition, because there are
[non-whitespace characters] after the title:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2748:1-2752:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url "title" ok</span>
+<pre data-sourcepos="2743:1-2747:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url "title" ok</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;[foo]: /url &amp;quot;title&amp;quot; ok&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2755:1-2755:57" dir="auto">This is a link reference definition, but it has no title:</p>
+<p data-sourcepos="2750:1-2750:57" dir="auto">This is a link reference definition, but it has no title:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2757:1-2762:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url</span>
+<pre data-sourcepos="2752:1-2757:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;&amp;quot;title&amp;quot; ok&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2765:1-2766:12" dir="auto">This is not a link reference definition, because it is indented
+<p data-sourcepos="2760:1-2761:12" dir="auto">This is not a link reference definition, because it is indented
four spaces:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2768:1-2776:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> [foo]: /url "title"</span>
+<pre data-sourcepos="2763:1-2771:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2434,10 +2431,10 @@ four spaces:</p>
<span id="LC7" class="line" lang="plaintext">&lt;p&gt;[foo]&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2779:1-2780:13" dir="auto">This is not a link reference definition, because it occurs inside
+<p data-sourcepos="2774:1-2775:13" dir="auto">This is not a link reference definition, because it occurs inside
a code block:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2782:1-2792:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```</span>
+<pre data-sourcepos="2777:1-2787:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -2448,9 +2445,9 @@ a code block:</p>
<span id="LC9" class="line" lang="plaintext">&lt;p&gt;[foo]&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2795:1-2795:59" dir="auto">A [link reference definition] cannot interrupt a paragraph.</p>
+<p data-sourcepos="2790:1-2790:59" dir="auto">A [link reference definition] cannot interrupt a paragraph.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2797:1-2806:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span>
+<pre data-sourcepos="2792:1-2801:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -2460,10 +2457,10 @@ a code block:</p>
<span id="LC8" class="line" lang="plaintext">&lt;p&gt;[bar]&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2809:1-2810:65" dir="auto">However, it can directly follow other block elements, such as headings
+<p data-sourcepos="2804:1-2805: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2812:1-2821:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"># [Foo]</span>
+<pre data-sourcepos="2807:1-2816:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&gt; bar</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2474,7 +2471,7 @@ and thematic breaks, and it need not be followed by a blank line.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2823:1-2831:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url</span>
+<pre data-sourcepos="2818:1-2826:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -2484,7 +2481,7 @@ and thematic breaks, and it need not be followed by a blank line.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2833:1-2840:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url</span>
+<pre data-sourcepos="2828:1-2835:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2492,10 +2489,10 @@ and thematic breaks, and it need not be followed by a blank line.</p>
<span id="LC6" class="line" lang="plaintext">&lt;a href="/url"&gt;foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2843:1-2844:61" dir="auto">Several [link reference definitions]
+<p data-sourcepos="2838:1-2839:61" dir="auto">Several [link reference definitions]
can occur one after another, without intervening blank lines.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2846:1-2859:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /foo-url "foo"</span>
+<pre data-sourcepos="2841:1-2854:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -2509,12 +2506,12 @@ can occur one after another, without intervening blank lines.</p>
<span id="LC12" class="line" lang="plaintext">&lt;a href="/baz-url"&gt;baz&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2862:1-2865:12" dir="auto">[Link reference definitions] can occur
+<p data-sourcepos="2857:1-2860: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2867:1-2875:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span>
+<pre data-sourcepos="2862:1-2870:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&gt; [foo]: /url</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2523,27 +2520,27 @@ are defined:</p>
<span id="LC7" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2878:1-2882:19" dir="auto">Whether something is a [link reference definition] is
+<p data-sourcepos="2873:1-2877: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2884:1-2887:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url</span>
+<pre data-sourcepos="2879:1-2882:32" class="code highlight js-syntax-highlight language-plaintext" lang="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></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="2890:1-2890:13" dir="auto">
+<h2 data-sourcepos="2885:1-2885:13" dir="auto">
<a id="user-content-paragraphs" class="anchor" href="#paragraphs" aria-hidden="true"></a>Paragraphs</h2>
-<p data-sourcepos="2892:1-2897:13" dir="auto">A sequence of non-blank lines that cannot be interpreted as other
+<p data-sourcepos="2887:1-2892: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="2899:1-2899:37" dir="auto">A simple example with two paragraphs:</p>
+<p data-sourcepos="2894:1-2894:37" dir="auto">A simple example with two paragraphs:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2901:1-2908:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aaa</span>
+<pre data-sourcepos="2896:1-2903:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2551,9 +2548,9 @@ is formed by concatenating the lines and removing initial and final
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;bbb&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2911:1-2911:58" dir="auto">Paragraphs can contain multiple lines, but no blank lines:</p>
+<p data-sourcepos="2906:1-2906:58" dir="auto">Paragraphs can contain multiple lines, but no blank lines:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2913:1-2924:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aaa</span>
+<pre data-sourcepos="2908:1-2919:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -2565,9 +2562,9 @@ is formed by concatenating the lines and removing initial and final
<span id="LC10" class="line" lang="plaintext">ddd&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2927:1-2927:54" dir="auto">Multiple blank lines between paragraph have no effect:</p>
+<p data-sourcepos="2922:1-2922:54" dir="auto">Multiple blank lines between paragraph have no effect:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2929:1-2937:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aaa</span>
+<pre data-sourcepos="2924:1-2932:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -2576,19 +2573,19 @@ is formed by concatenating the lines and removing initial and final
<span id="LC7" class="line" lang="plaintext">&lt;p&gt;bbb&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2940:1-2940:27" dir="auto">Leading spaces are skipped:</p>
+<p data-sourcepos="2935:1-2935:27" dir="auto">Leading spaces are skipped:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2942:1-2948:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> aaa</span>
+<pre data-sourcepos="2937:1-2943:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;aaa</span>
<span id="LC5" class="line" lang="plaintext">bbb&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2951:1-2952:40" dir="auto">Lines after the first may be indented any amount, since indented
+<p data-sourcepos="2946:1-2947:40" dir="auto">Lines after the first may be indented any amount, since indented
code blocks cannot interrupt paragraphs.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2954:1-2962:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aaa</span>
+<pre data-sourcepos="2949:1-2957:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2597,10 +2594,10 @@ code blocks cannot interrupt paragraphs.</p>
<span id="LC7" class="line" lang="plaintext">ccc&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2965:1-2966:44" dir="auto">However, the first line may be indented at most three spaces,
+<p data-sourcepos="2960:1-2961:44" dir="auto">However, the first line may be indented at most three spaces,
or an indented code block will be triggered:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2968:1-2974:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> aaa</span>
+<pre data-sourcepos="2963:1-2969:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;aaa</span>
@@ -2608,7 +2605,7 @@ or an indented code block will be triggered:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2977:1-2984:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> aaa</span>
+<pre data-sourcepos="2972:1-2979:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;pre&gt;&lt;code&gt;aaa</span>
@@ -2616,25 +2613,25 @@ or an indented code block will be triggered:</p>
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;bbb&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="2987:1-2989:7" dir="auto">Final spaces are stripped before inline parsing, so a paragraph
+<p data-sourcepos="2982:1-2984: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="2991:1-2997:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aaa </span>
+<pre data-sourcepos="2986:1-2992:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;aaa&lt;br /&gt;</span>
<span id="LC5" class="line" lang="plaintext">bbb&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="3000:1-3000:14" dir="auto">
+<h2 data-sourcepos="2995:1-2995:14" dir="auto">
<a id="user-content-blank-lines" class="anchor" href="#blank-lines" aria-hidden="true"></a>Blank lines</h2>
-<p data-sourcepos="3002:1-3004:22" dir="auto">[Blank lines] between block-level elements are ignored,
+<p data-sourcepos="2997:1-2999: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="3006:1-3006:70" dir="auto">Blank lines at the beginning and end of the document are also ignored.</p>
+<p data-sourcepos="3001:1-3001:70" dir="auto">Blank lines at the beginning and end of the document are also ignored.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3008:1-3020:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> </span>
+<pre data-sourcepos="3003:1-3015:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -2648,23 +2645,23 @@ is [tight] or [loose].</p>
<copy-code></copy-code>
</div>
<div>
-<h2 data-sourcepos="3024:1-3024:21">
+<h2 data-sourcepos="3019:1-3019:21">
<a id="user-content-tables-extension" class="anchor" href="#tables-extension" aria-hidden="true"></a>Tables (extension)</h2>
-<p data-sourcepos="3026:1-3027:10">GFM enables the <code>table</code> extension, where an additional leaf block type is
+<p data-sourcepos="3021:1-3022:10">GFM enables the <code>table</code> extension, where an additional leaf block type is
available.</p>
-<p data-sourcepos="3029:1-3031:23">A <a href="@">table</a> is an arrangement of data with rows and columns, consisting of a
+<p data-sourcepos="3024:1-3026: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="3033:1-3037:23">Each row consists of cells containing arbitrary text, in which [inlines] are
+<p data-sourcepos="3028:1-3032: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="3039:1-3041:40">The <a href="@">delimiter row</a> consists of cells whose only content are hyphens (<code>-</code>),
+<p data-sourcepos="3034:1-3036: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3043:1-3062:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| foo | bar |</span>
+<pre data-sourcepos="3038:1-3057:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2684,10 +2681,10 @@ right, or center alignment respectively.</p>
<span id="LC18" class="line" lang="plaintext">&lt;/table&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3064:1-3065:74">Cells in one column don't need to match length, though it's easier to read if
+<p data-sourcepos="3059:1-3060: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3067:1-3086:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | defghi |</span>
+<pre data-sourcepos="3062:1-3081:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2707,10 +2704,10 @@ they are. Likewise, use of leading and trailing pipes may be inconsistent:</p>
<span id="LC18" class="line" lang="plaintext">&lt;/table&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3088:1-3089:13">Include a pipe in a cell's content by escaping it, including inside other
+<p data-sourcepos="3083:1-3084:13">Include a pipe in a cell's content by escaping it, including inside other
inline spans:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3091:1-3112:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| f\|oo |</span>
+<pre data-sourcepos="3086:1-3107:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -2732,10 +2729,10 @@ inline spans:</p>
<span id="LC20" class="line" lang="plaintext">&lt;/table&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3114:1-3115:22">The table is broken at the first empty line, or beginning of another
+<p data-sourcepos="3109:1-3110:22">The table is broken at the first empty line, or beginning of another
block-level structure:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3117:1-3140:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | def |</span>
+<pre data-sourcepos="3112:1-3135:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&gt; bar</span>
@@ -2760,7 +2757,7 @@ block-level structure:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3142:1-3169:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | def |</span>
+<pre data-sourcepos="3137:1-3164:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -2788,10 +2785,10 @@ block-level structure:</p>
<span id="LC26" class="line" lang="plaintext">&lt;p&gt;bar&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3171:1-3172:31">The header row must match the [delimiter row] in the number of cells. If not,
+<p data-sourcepos="3166:1-3167:31">The header row must match the [delimiter row] in the number of cells. If not,
a table will not be recognized:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3174:1-3182:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | def |</span>
+<pre data-sourcepos="3169:1-3177:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">.</span>
@@ -2800,11 +2797,11 @@ a table will not be recognized:</p>
<span id="LC7" class="line" lang="plaintext">| bar |&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3184:1-3186:65">The remainder of the table's rows may vary in the number of cells. If there
+<p data-sourcepos="3179:1-3181: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3188:1-3212:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | def |</span>
+<pre data-sourcepos="3183:1-3207:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -2829,9 +2826,9 @@ cells are inserted. If there are greater, the excess is ignored:</p>
<span id="LC23" class="line" lang="plaintext">&lt;/table&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3214:1-3214:75">If there are no rows in the body, no <code>&lt;tbody&gt;</code> is generated in HTML output:</p>
+<p data-sourcepos="3209:1-3209:75">If there are no rows in the body, no <code>&lt;tbody&gt;</code> is generated in HTML output:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3216:1-3228:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">| abc | def |</span>
+<pre data-sourcepos="3211:1-3223:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;table&gt;</span>
@@ -2845,39 +2842,39 @@ cells are inserted. If there are greater, the excess is ignored:</p>
<copy-code></copy-code>
</div>
</div>
-<h1 data-sourcepos="3232:1-3232:18" dir="auto">
+<h1 data-sourcepos="3227:1-3227:18" dir="auto">
<a id="user-content-container-blocks" class="anchor" href="#container-blocks" aria-hidden="true"></a>Container blocks</h1>
-<p data-sourcepos="3234:1-3237:45" dir="auto">A <a href="#container-blocks">container block</a> is a block that has other
+<p data-sourcepos="3229:1-3232: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="3239:1-3240:26" dir="auto">We define the syntax for container blocks recursively. The general
+<p data-sourcepos="3234:1-3235:26" dir="auto">We define the syntax for container blocks recursively. The general
form of the definition is:</p>
-<blockquote data-sourcepos="3242:1-3244:35" dir="auto">
-<p data-sourcepos="3242:3-3244:35">If X is a sequence of blocks, then the result of
+<blockquote data-sourcepos="3237:1-3239:35" dir="auto">
+<p data-sourcepos="3237:3-3239: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="3246:1-3250:52" dir="auto">So, we explain what counts as a block quote or list item by explaining
+<p data-sourcepos="3241:1-3245: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="3252:1-3252:15" dir="auto">
+<h2 data-sourcepos="3247:1-3247:15" dir="auto">
<a id="user-content-block-quotes" class="anchor" href="#block-quotes" aria-hidden="true"></a>Block quotes</h2>
-<p data-sourcepos="3254:1-3256:78" dir="auto">A <a href="@">block quote marker</a>
+<p data-sourcepos="3249:1-3251:78" dir="auto">A <a href="@">block quote marker</a>
consists of 0-3 spaces of initial indent, plus (a) the character <code>&gt;</code> together
with a following space, or (b) a single character <code>&gt;</code> not followed by a space.</p>
-<p data-sourcepos="3258:1-3258:42" dir="auto">The following rules define [block quotes]:</p>
-<ol data-sourcepos="3260:1-3277:0" dir="auto">
-<li data-sourcepos="3260:1-3264:0">
-<p data-sourcepos="3260:5-3263:54"><strong>Basic case.</strong> If a string of lines <em>Ls</em> constitute a sequence
+<p data-sourcepos="3253:1-3253:42" dir="auto">The following rules define [block quotes]:</p>
+<ol data-sourcepos="3255:1-3272:0" dir="auto">
+<li data-sourcepos="3255:1-3259:0">
+<p data-sourcepos="3255:5-3258: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="3265:1-3274:0">
-<p data-sourcepos="3265:5-3273:48"><strong>Laziness.</strong> If a string of lines <em>Ls</em> constitute a <a href="#block-quotes">block
+<li data-sourcepos="3260:1-3269:0">
+<p data-sourcepos="3260:5-3268: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
@@ -2887,15 +2884,15 @@ 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="3275:1-3277:0">
-<p data-sourcepos="3275:5-3276:65"><strong>Consecutiveness.</strong> A document cannot contain two [block
+<li data-sourcepos="3270:1-3272:0">
+<p data-sourcepos="3270:5-3271: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="3278:1-3278:54" dir="auto">Nothing else counts as a <a href="#block-quotes">block quote</a>.</p>
-<p data-sourcepos="3280:1-3280:25" dir="auto">Here is a simple example:</p>
+<p data-sourcepos="3273:1-3273:54" dir="auto">Nothing else counts as a <a href="#block-quotes">block quote</a>.</p>
+<p data-sourcepos="3275:1-3275:25" dir="auto">Here is a simple example:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3282:1-3292:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; # Foo</span>
+<pre data-sourcepos="3277:1-3287:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&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">.</span>
@@ -2906,9 +2903,9 @@ quotes] in a row unless there is a [blank line] between them.</p>
<span id="LC9" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3295:1-3295:51" dir="auto">The spaces after the <code>&gt;</code> characters can be omitted:</p>
+<p data-sourcepos="3290:1-3290:51" dir="auto">The spaces after the <code>&gt;</code> characters can be omitted:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3297:1-3307:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt;# Foo</span>
+<pre data-sourcepos="3292:1-3302:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&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">.</span>
@@ -2919,9 +2916,9 @@ quotes] in a row unless there is a [blank line] between them.</p>
<span id="LC9" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3310:1-3310:46" dir="auto">The <code>&gt;</code> characters can be indented 1-3 spaces:</p>
+<p data-sourcepos="3305:1-3305:46" dir="auto">The <code>&gt;</code> characters can be indented 1-3 spaces:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3312:1-3322:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> &gt; # Foo</span>
+<pre data-sourcepos="3307:1-3317:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> &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">.</span>
@@ -2932,9 +2929,9 @@ quotes] in a row unless there is a [blank line] between them.</p>
<span id="LC9" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3325:1-3325:34" dir="auto">Four spaces gives us a code block:</p>
+<p data-sourcepos="3320:1-3320:34" dir="auto">Four spaces gives us a code block:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3327:1-3336:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> &gt; # Foo</span>
+<pre data-sourcepos="3322:1-3331:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> &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">.</span>
@@ -2944,10 +2941,10 @@ quotes] in a row unless there is a [blank line] between them.</p>
<span id="LC8" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3339:1-3340:30" dir="auto">The Laziness clause allows us to omit the <code>&gt;</code> before
+<p data-sourcepos="3334:1-3335:30" dir="auto">The Laziness clause allows us to omit the <code>&gt;</code> before
[paragraph continuation text]:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3342:1-3352:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; # Foo</span>
+<pre data-sourcepos="3337:1-3347:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; # Foo</span>
<span id="LC2" class="line" lang="plaintext">&gt; bar</span>
<span id="LC3" class="line" lang="plaintext">baz</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2958,10 +2955,10 @@ quotes] in a row unless there is a [blank line] between them.</p>
<span id="LC9" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3355:1-3356:19" dir="auto">A block quote can contain some lazy and some non-lazy
+<p data-sourcepos="3350:1-3351:19" dir="auto">A block quote can contain some lazy and some non-lazy
continuation lines:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3358:1-3368:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; bar</span>
+<pre data-sourcepos="3353:1-3363:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; bar</span>
<span id="LC2" class="line" lang="plaintext">baz</span>
<span id="LC3" class="line" lang="plaintext">&gt; foo</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -2972,17 +2969,17 @@ continuation lines:</p>
<span id="LC9" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3371:1-3373:61" dir="auto">Laziness only applies to lines that would have been continuations of
+<p data-sourcepos="3366:1-3368: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>&gt; </code> cannot be omitted in the second line of</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3375:1-3378:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">&gt; foo</span></span>
+<pre data-sourcepos="3370:1-3373:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">&gt; foo</span></span>
<span id="LC2" class="line" lang="markdown"><span class="gt">&gt; ---</span></span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3380:1-3380:29" dir="auto">without changing the meaning:</p>
+<p data-sourcepos="3375:1-3375:29" dir="auto">without changing the meaning:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3382:1-3390:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; foo</span>
+<pre data-sourcepos="3377:1-3385:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; 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">&lt;blockquote&gt;</span>
@@ -2991,15 +2988,15 @@ For example, the <code>&gt; </code> cannot be omitted in the second line of</p>
<span id="LC7" class="line" lang="plaintext">&lt;hr /&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3393:1-3393:52" dir="auto">Similarly, if we omit the <code>&gt; </code> in the second line of</p>
+<p data-sourcepos="3388:1-3388:52" dir="auto">Similarly, if we omit the <code>&gt; </code> in the second line of</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3395:1-3398:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">&gt; - foo</span></span>
+<pre data-sourcepos="3390:1-3393:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">&gt; - foo</span></span>
<span id="LC2" class="line" lang="markdown"><span class="gt">&gt; - bar</span></span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3400:1-3400:47" dir="auto">then the block quote ends after the first line:</p>
+<p data-sourcepos="3395:1-3395:47" dir="auto">then the block quote ends after the first line:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3402:1-3414:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; - foo</span>
+<pre data-sourcepos="3397:1-3409:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; - 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">&lt;blockquote&gt;</span>
@@ -3012,10 +3009,10 @@ For example, the <code>&gt; </code> cannot be omitted in the second line of</p>
<span id="LC11" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3417:1-3418:53" dir="auto">For the same reason, we can't omit the <code>&gt; </code> in front of
+<p data-sourcepos="3412:1-3413:53" dir="auto">For the same reason, we can't omit the <code>&gt; </code> in front of
subsequent lines of an indented or fenced code block:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3420:1-3430:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; foo</span>
+<pre data-sourcepos="3415:1-3425:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; 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">&lt;blockquote&gt;</span>
@@ -3027,7 +3024,7 @@ subsequent lines of an indented or fenced code block:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3433:1-3443:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; ```</span>
+<pre data-sourcepos="3428:1-3438:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; ```</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>
@@ -3038,10 +3035,10 @@ subsequent lines of an indented or fenced code block:</p>
<span id="LC9" class="line" lang="plaintext">&lt;pre&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3446:1-3447:19" dir="auto">Note that in the following case, we have a [lazy
+<p data-sourcepos="3441:1-3442:19" dir="auto">Note that in the following case, we have a [lazy
continuation line]:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3449:1-3457:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; foo</span>
+<pre data-sourcepos="3444:1-3452:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; 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">&lt;blockquote&gt;</span>
@@ -3050,25 +3047,25 @@ continuation line]:</p>
<span id="LC7" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3460:1-3460:24" dir="auto">To see why, note that in</p>
+<p data-sourcepos="3455:1-3455:24" dir="auto">To see why, note that in</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3462:1-3465:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">&gt; foo</span></span>
+<pre data-sourcepos="3457:1-3460:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">&gt; foo</span></span>
<span id="LC2" class="line" lang="markdown"><span class="gt">&gt; - bar</span></span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3467:1-3469:61" dir="auto">the <code>- bar</code> is indented too far to start a list, and can't
+<p data-sourcepos="3462:1-3464: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="3471:1-3471:27" dir="auto">A block quote can be empty:</p>
+<p data-sourcepos="3466:1-3466:27" dir="auto">A block quote can be empty:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3473:1-3478:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt;</span>
+<pre data-sourcepos="3468:1-3473:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;blockquote&gt;</span>
<span id="LC4" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3481:1-3488:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt;</span>
+<pre data-sourcepos="3476:1-3483:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt;</span>
<span id="LC2" class="line" lang="plaintext">&gt; </span>
<span id="LC3" class="line" lang="plaintext">&gt; </span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3076,9 +3073,9 @@ interrupt paragraphs, so it is [paragraph continuation text].</p>
<span id="LC6" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3491:1-3491:52" dir="auto">A block quote can have initial or final blank lines:</p>
+<p data-sourcepos="3486:1-3486:52" dir="auto">A block quote can have initial or final blank lines:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3493:1-3501:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt;</span>
+<pre data-sourcepos="3488:1-3496:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt;</span>
<span id="LC2" class="line" lang="plaintext">&gt; foo</span>
<span id="LC3" class="line" lang="plaintext">&gt; </span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3087,9 +3084,9 @@ interrupt paragraphs, so it is [paragraph continuation text].</p>
<span id="LC7" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3504:1-3504:43" dir="auto">A blank line always separates block quotes:</p>
+<p data-sourcepos="3499:1-3499:43" dir="auto">A blank line always separates block quotes:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3506:1-3517:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; foo</span>
+<pre data-sourcepos="3501:1-3512:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; foo</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext">&gt; bar</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3101,14 +3098,14 @@ interrupt paragraphs, so it is [paragraph continuation text].</p>
<span id="LC10" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3520:1-3523:44" dir="auto">(Most current Markdown implementations, including John Gruber's
+<p data-sourcepos="3515:1-3518: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="3525:1-3526:28" dir="auto">Consecutiveness means that if we put these block quotes together,
+<p data-sourcepos="3520:1-3521:28" dir="auto">Consecutiveness means that if we put these block quotes together,
we get a single block quote:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3528:1-3536:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; foo</span>
+<pre data-sourcepos="3523:1-3531:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; foo</span>
<span id="LC2" class="line" lang="plaintext">&gt; bar</span>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;blockquote&gt;</span>
@@ -3117,9 +3114,9 @@ we get a single block quote:</p>
<span id="LC7" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3539:1-3539:46" dir="auto">To get a block quote with two paragraphs, use:</p>
+<p data-sourcepos="3534:1-3534:46" dir="auto">To get a block quote with two paragraphs, use:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3541:1-3550:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; foo</span>
+<pre data-sourcepos="3536:1-3545:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; foo</span>
<span id="LC2" class="line" lang="plaintext">&gt;</span>
<span id="LC3" class="line" lang="plaintext">&gt; bar</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3129,9 +3126,9 @@ we get a single block quote:</p>
<span id="LC8" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3553:1-3553:38" dir="auto">Block quotes can interrupt paragraphs:</p>
+<p data-sourcepos="3548:1-3548:38" dir="auto">Block quotes can interrupt paragraphs:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3555:1-3563:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span>
+<pre data-sourcepos="3550:1-3558:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&gt; bar</span>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;foo&lt;/p&gt;</span>
@@ -3140,10 +3137,10 @@ we get a single block quote:</p>
<span id="LC7" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3566:1-3567:7" dir="auto">In general, blank lines are not needed before or after block
+<p data-sourcepos="3561:1-3562:7" dir="auto">In general, blank lines are not needed before or after block
quotes:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3569:1-3581:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; aaa</span>
+<pre data-sourcepos="3564:1-3576:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; aaa</span>
<span id="LC2" class="line" lang="plaintext">***</span>
<span id="LC3" class="line" lang="plaintext">&gt; bbb</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3156,10 +3153,10 @@ quotes:</p>
<span id="LC11" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3584:1-3585:40" dir="auto">However, because of laziness, a blank line is needed between
+<p data-sourcepos="3579:1-3580:40" dir="auto">However, because of laziness, a blank line is needed between
a block quote and a following paragraph:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3587:1-3595:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; bar</span>
+<pre data-sourcepos="3582:1-3590:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; bar</span>
<span id="LC2" class="line" lang="plaintext">baz</span>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;blockquote&gt;</span>
@@ -3169,7 +3166,7 @@ a block quote and a following paragraph:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3598:1-3607:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; bar</span>
+<pre data-sourcepos="3593:1-3602:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; bar</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext">baz</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3180,7 +3177,7 @@ a block quote and a following paragraph:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3610:1-3619:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; bar</span>
+<pre data-sourcepos="3605:1-3614:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; bar</span>
<span id="LC2" class="line" lang="plaintext">&gt;</span>
<span id="LC3" class="line" lang="plaintext">baz</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3190,11 +3187,11 @@ a block quote and a following paragraph:</p>
<span id="LC8" class="line" lang="plaintext">&lt;p&gt;baz&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3622:1-3624:19" dir="auto">It is a consequence of the Laziness rule that any number
+<p data-sourcepos="3617:1-3619:19" dir="auto">It is a consequence of the Laziness rule that any number
of initial <code>&gt;</code>s may be omitted on a continuation line of a
nested block quote:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3626:1-3638:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; &gt; &gt; foo</span>
+<pre data-sourcepos="3621:1-3633:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; &gt; &gt; 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">&lt;blockquote&gt;</span>
@@ -3208,7 +3205,7 @@ nested block quote:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3641:1-3655:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt;&gt;&gt; foo</span>
+<pre data-sourcepos="3636:1-3650:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt;&gt;&gt; foo</span>
<span id="LC2" class="line" lang="plaintext">&gt; bar</span>
<span id="LC3" class="line" lang="plaintext">&gt;&gt;baz</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3223,12 +3220,12 @@ nested block quote:</p>
<span id="LC13" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3658:1-3661:8" dir="auto">When including an indented code block in a block quote,
+<p data-sourcepos="3653:1-3656:8" dir="auto">When including an indented code block in a block quote,
remember that the [block quote marker] includes
both the <code>&gt;</code> and a following space. So <em>five spaces</em> are needed after
the <code>&gt;</code>:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3663:1-3675:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; code</span>
+<pre data-sourcepos="3658:1-3670:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; code</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext">&gt; not code</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3241,21 +3238,21 @@ the <code>&gt;</code>:</p>
<span id="LC11" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="3679:1-3679:13" dir="auto">
+<h2 data-sourcepos="3674:1-3674:13" dir="auto">
<a id="user-content-list-items" class="anchor" href="#list-items" aria-hidden="true"></a>List items</h2>
-<p data-sourcepos="3681:1-3682:49" dir="auto">A <a href="@">list marker</a> is a
+<p data-sourcepos="3676:1-3677:49" dir="auto">A <a href="@">list marker</a> is a
[bullet list marker] or an [ordered list marker].</p>
-<p data-sourcepos="3684:1-3685:32" dir="auto">A <a href="@">bullet list marker</a>
+<p data-sourcepos="3679:1-3680:32" dir="auto">A <a href="@">bullet list marker</a>
is a <code>-</code>, <code>+</code>, or <code>*</code> character.</p>
-<p data-sourcepos="3687:1-3691:18" dir="auto">An <a href="@">ordered list marker</a>
+<p data-sourcepos="3682:1-3686: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="3693:1-3693:40" dir="auto">The following rules define [list items]:</p>
-<ol data-sourcepos="3695:1-3714:0" dir="auto">
-<li data-sourcepos="3695:1-3714:0">
-<p data-sourcepos="3695:5-3703:45"><strong>Basic case.</strong> If a sequence of lines <em>Ls</em> constitute a sequence of
+<p data-sourcepos="3688:1-3688:40" dir="auto">The following rules define [list items]:</p>
+<ol data-sourcepos="3690:1-3709:0" dir="auto">
+<li data-sourcepos="3690:1-3709:0">
+<p data-sourcepos="3690:5-3698: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
@@ -3264,21 +3261,21 @@ 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="3705:5-3705:15">Exceptions:</p>
-<ol data-sourcepos="3707:5-3714:0">
-<li data-sourcepos="3707:5-3711:57">When the first list item in a [list] interrupts
+<p data-sourcepos="3700:5-3700:15">Exceptions:</p>
+<ol data-sourcepos="3702:5-3709:0">
+<li data-sourcepos="3702:5-3706: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="3712:5-3714:0">If any line is a [thematic break][thematic breaks] then
+<li data-sourcepos="3707:5-3709: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="3715:1-3715:34" dir="auto">For example, let <em>Ls</em> be the lines</p>
+<p data-sourcepos="3710:1-3710:34" dir="auto">For example, let <em>Ls</em> be the lines</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3717:1-3732:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">A paragraph</span>
+<pre data-sourcepos="3712:1-3727:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3294,11 +3291,11 @@ that line is not a list item.</li>
<span id="LC14" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3735:1-3737:30" dir="auto">And let <em>M</em> be the marker <code>1.</code>, and <em>N</em> = 2. Then rule #1 says
+<p data-sourcepos="3730:1-3732: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3739:1-3758:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. A paragraph</span>
+<pre data-sourcepos="3734:1-3753:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3318,17 +3315,17 @@ and the same contents as <em>Ls</em>:</p>
<span id="LC18" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3761:1-3767:5" dir="auto">The most important thing to notice is that the position of
+<p data-sourcepos="3756:1-3762: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="3769:1-3770:24" dir="auto">Here are some examples showing how far content must be indented to be
+<p data-sourcepos="3764:1-3765:24" dir="auto">Here are some examples showing how far content must be indented to be
put under the list item:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3772:1-3781:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- one</span>
+<pre data-sourcepos="3767:1-3776:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3339,7 +3336,7 @@ put under the list item:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3784:1-3795:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- one</span>
+<pre data-sourcepos="3779:1-3790:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3352,7 +3349,7 @@ put under the list item:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3798:1-3808:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - one</span>
+<pre data-sourcepos="3793:1-3803:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3364,7 +3361,7 @@ put under the list item:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3811:1-3822:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> - one</span>
+<pre data-sourcepos="3806:1-3817:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3376,7 +3373,7 @@ put under the list item:</p>
<span id="LC10" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3825:1-3831:13" dir="auto">It is tempting to think of this in terms of columns: the continuation
+<p data-sourcepos="3820:1-3826: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
@@ -3384,7 +3381,7 @@ 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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3833:1-3848:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> &gt; &gt; 1. one</span>
+<pre data-sourcepos="3828:1-3843:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> &gt; &gt; 1. one</span>
<span id="LC2" class="line" lang="plaintext">&gt;&gt;</span>
<span id="LC3" class="line" lang="plaintext">&gt;&gt; two</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3400,15 +3397,15 @@ this example:</p>
<span id="LC14" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3851:1-3853:67" dir="auto">Here <code>two</code> occurs in the same column as the list marker <code>1.</code>,
+<p data-sourcepos="3846:1-3848: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="3855:1-3858:38" dir="auto">The converse is also possible. In the following example, the word <code>two</code>
+<p data-sourcepos="3850:1-3853: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3860:1-3873:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt;&gt;- one</span>
+<pre data-sourcepos="3855:1-3868:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt;&gt;- one</span>
<span id="LC2" class="line" lang="plaintext">&gt;&gt;</span>
<span id="LC3" class="line" lang="plaintext"> &gt; &gt; two</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3422,10 +3419,10 @@ far enough past the blockquote marker:</p>
<span id="LC12" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3876:1-3877:51" dir="auto">Note that at least one space is needed between the list marker and
+<p data-sourcepos="3871:1-3872: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3879:1-3886:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-one</span>
+<pre data-sourcepos="3874:1-3881:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3433,10 +3430,10 @@ any following content, so these are not list items:</p>
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;2.two&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3889:1-3890:15" dir="auto">A list item may contain blocks that are separated by more than
+<p data-sourcepos="3884:1-3885:15" dir="auto">A list item may contain blocks that are separated by more than
one blank line.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3892:1-3904:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span>
+<pre data-sourcepos="3887:1-3899:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3449,9 +3446,9 @@ one blank line.</p>
<span id="LC11" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3907:1-3907:42" dir="auto">A list item may contain any kind of block:</p>
+<p data-sourcepos="3902:1-3902:42" dir="auto">A list item may contain any kind of block:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3909:1-3931:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. foo</span>
+<pre data-sourcepos="3904:1-3926:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3474,10 +3471,10 @@ one blank line.</p>
<span id="LC21" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3934:1-3935:43" dir="auto">A list item that contains an indented code block will preserve
+<p data-sourcepos="3929:1-3930:43" dir="auto">A list item that contains an indented code block will preserve
empty lines within the code block verbatim.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3937:1-3955:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- Foo</span>
+<pre data-sourcepos="3932:1-3950:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3496,9 +3493,9 @@ empty lines within the code block verbatim.</p>
<span id="LC17" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3957:1-3957:65" dir="auto">Note that ordered list start numbers must be nine digits or less:</p>
+<p data-sourcepos="3952:1-3952:65" dir="auto">Note that ordered list start numbers must be nine digits or less:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3959:1-3965:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">123456789. ok</span>
+<pre data-sourcepos="3954:1-3960:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">123456789. ok</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;ol start="123456789"&gt;</span>
<span id="LC4" class="line" lang="plaintext">&lt;li&gt;ok&lt;/li&gt;</span>
@@ -3506,14 +3503,14 @@ 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="3968:1-3972:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1234567890. not ok</span>
+<pre data-sourcepos="3963:1-3967:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1234567890. not ok</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;1234567890. not ok&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3975:1-3975:33" dir="auto">A start number may begin with 0s:</p>
+<p data-sourcepos="3970:1-3970:33" dir="auto">A start number may begin with 0s:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3977:1-3983:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">0. ok</span>
+<pre data-sourcepos="3972:1-3978:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">0. ok</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;ol start="0"&gt;</span>
<span id="LC4" class="line" lang="plaintext">&lt;li&gt;ok&lt;/li&gt;</span>
@@ -3521,22 +3518,22 @@ 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="3986:1-3992:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">003. ok</span>
+<pre data-sourcepos="3981:1-3987:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">003. ok</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;ol start="3"&gt;</span>
<span id="LC4" class="line" lang="plaintext">&lt;li&gt;ok&lt;/li&gt;</span>
<span id="LC5" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="3995:1-3995:35" dir="auto">A start number may not be negative:</p>
+<p data-sourcepos="3990:1-3990:35" dir="auto">A start number may not be negative:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="3997:1-4001:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-1. not ok</span>
+<pre data-sourcepos="3992:1-3996:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-1. not ok</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;-1. not ok&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<ol start="2" data-sourcepos="4005:1-4015:0" dir="auto">
-<li data-sourcepos="4005:1-4015:0">
+<ol start="2" data-sourcepos="4000:1-4010:0" dir="auto">
+<li data-sourcepos="4000:1-4010: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
@@ -3548,11 +3545,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="4016:1-4018:39" dir="auto">An indented code block will have to be indented four spaces beyond
+<p data-sourcepos="4011:1-4013: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4020:1-4032:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span>
+<pre data-sourcepos="4015:1-4027:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3565,9 +3562,9 @@ In the following case that is 6 spaces:</p>
<span id="LC11" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4035:1-4035:33" dir="auto">And in this case it is 11 spaces:</p>
+<p data-sourcepos="4030:1-4030:33" dir="auto">And in this case it is 11 spaces:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4037:1-4049:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 10. foo</span>
+<pre data-sourcepos="4032:1-4044:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3580,11 +3577,11 @@ In the following case that is 6 spaces:</p>
<span id="LC11" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4052:1-4054:12" dir="auto">If the <em>first</em> block in the list item is an indented code block,
+<p data-sourcepos="4047:1-4049: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4056:1-4068:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> indented code</span>
+<pre data-sourcepos="4051:1-4063:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3598,7 +3595,7 @@ list marker:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4071:1-4087:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. indented code</span>
+<pre data-sourcepos="4066:1-4082:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3615,10 +3612,10 @@ list marker:</p>
<span id="LC15" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4090:1-4091:22" dir="auto">Note that an additional space indent is interpreted as space
+<p data-sourcepos="4085:1-4086:22" dir="auto">Note that an additional space indent is interpreted as space
inside the code block:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4093:1-4109:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. indented code</span>
+<pre data-sourcepos="4088:1-4104:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3635,7 +3632,7 @@ inside the code block:</p>
<span id="LC15" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4112:1-4118:55" dir="auto">Note that rules #1 and #2 only apply to two cases: (a) cases
+<p data-sourcepos="4107:1-4113: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
@@ -3643,7 +3640,7 @@ 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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4120:1-4127:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> foo</span>
+<pre data-sourcepos="4115:1-4122:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3652,7 +3649,7 @@ indenting the whole thing and prepending a list marker:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4130:1-4139:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span>
+<pre data-sourcepos="4125:1-4134:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3662,12 +3659,12 @@ indenting the whole thing and prepending a list marker:</p>
<span id="LC8" class="line" lang="plaintext">&lt;p&gt;bar&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4142:1-4145:15" dir="auto">This is not a significant restriction, because when a block begins
+<p data-sourcepos="4137:1-4140: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4147:1-4158:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span>
+<pre data-sourcepos="4142:1-4153:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3679,8 +3676,8 @@ the above case:</p>
<span id="LC10" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<ol start="3" data-sourcepos="4161:1-4172:0" dir="auto">
-<li data-sourcepos="4161:1-4172:0">
+<ol start="3" data-sourcepos="4156:1-4167:0" dir="auto">
+<li data-sourcepos="4156:1-4167: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
@@ -3693,9 +3690,9 @@ 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="4173:1-4173:72" dir="auto">Here are some list items that start with a blank line but are not empty:</p>
+<p data-sourcepos="4168:1-4168:72" dir="auto">Here are some list items that start with a blank line but are not empty:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4175:1-4196:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-</span>
+<pre data-sourcepos="4170:1-4191:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3717,10 +3714,10 @@ start number, based on the ordered list marker.</li>
<span id="LC20" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4198:1-4199:66" dir="auto">When the list item starts with a blank line, the number of spaces
+<p data-sourcepos="4193:1-4194: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4201:1-4208:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- </span>
+<pre data-sourcepos="4196:1-4203:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;ul&gt;</span>
@@ -3728,11 +3725,11 @@ following the list marker doesn't change the required indentation:</p>
<span id="LC6" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4211:1-4213:5" dir="auto">A list item can begin with at most one blank line.
+<p data-sourcepos="4206:1-4208: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4215:1-4224:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-</span>
+<pre data-sourcepos="4210:1-4219:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3742,9 +3739,9 @@ item:</p>
<span id="LC8" class="line" lang="plaintext">&lt;p&gt;foo&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4227:1-4227:34" dir="auto">Here is an empty bullet list item:</p>
+<p data-sourcepos="4222:1-4222:34" dir="auto">Here is an empty bullet list item:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4229:1-4239:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span>
+<pre data-sourcepos="4224:1-4234:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3755,9 +3752,9 @@ item:</p>
<span id="LC9" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4242:1-4242:72" dir="auto">It does not matter whether there are spaces following the [list marker]:</p>
+<p data-sourcepos="4237:1-4237:72" dir="auto">It does not matter whether there are spaces following the [list marker]:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4244:1-4254:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span>
+<pre data-sourcepos="4239:1-4249:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3768,9 +3765,9 @@ item:</p>
<span id="LC9" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4257:1-4257:35" dir="auto">Here is an empty ordered list item:</p>
+<p data-sourcepos="4252:1-4252:35" dir="auto">Here is an empty ordered list item:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4259:1-4269:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. foo</span>
+<pre data-sourcepos="4254:1-4264:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -3781,18 +3778,18 @@ item:</p>
<span id="LC9" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4272:1-4272:48" dir="auto">A list may start or end with an empty list item:</p>
+<p data-sourcepos="4267:1-4267:48" dir="auto">A list may start or end with an empty list item:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4274:1-4280:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*</span>
+<pre data-sourcepos="4269:1-4275:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;ul&gt;</span>
<span id="LC4" class="line" lang="plaintext">&lt;li&gt;&lt;/li&gt;</span>
<span id="LC5" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4282:1-4282:57" dir="auto">However, an empty list item cannot interrupt a paragraph:</p>
+<p data-sourcepos="4277:1-4277:57" dir="auto">However, an empty list item cannot interrupt a paragraph:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4284:1-4295:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span>
+<pre data-sourcepos="4279:1-4290:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3804,17 +3801,17 @@ item:</p>
<span id="LC10" class="line" lang="plaintext">1.&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<ol start="4" data-sourcepos="4298:1-4303:0" dir="auto">
-<li data-sourcepos="4298:1-4303:0">
+<ol start="4" data-sourcepos="4293:1-4298:0" dir="auto">
+<li data-sourcepos="4293:1-4298: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="4304:1-4304:19" dir="auto">Indented one space:</p>
+<p data-sourcepos="4299:1-4299:19" dir="auto">Indented one space:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4306:1-4325:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span>
+<pre data-sourcepos="4301:1-4320:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3834,9 +3831,9 @@ empty, then it need not be indented.</li>
<span id="LC18" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4328:1-4328:20" dir="auto">Indented two spaces:</p>
+<p data-sourcepos="4323:1-4323:20" dir="auto">Indented two spaces:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4330:1-4349:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span>
+<pre data-sourcepos="4325:1-4344:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3856,9 +3853,9 @@ empty, then it need not be indented.</li>
<span id="LC18" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4352:1-4352:22" dir="auto">Indented three spaces:</p>
+<p data-sourcepos="4347:1-4347:22" dir="auto">Indented three spaces:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4354:1-4373:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span>
+<pre data-sourcepos="4349:1-4368:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3878,9 +3875,9 @@ empty, then it need not be indented.</li>
<span id="LC18" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4376:1-4376:38" dir="auto">Four spaces indent gives a code block:</p>
+<p data-sourcepos="4371:1-4371:38" dir="auto">Four spaces indent gives a code block:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4378:1-4393:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span>
+<pre data-sourcepos="4373:1-4388:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3896,8 +3893,8 @@ empty, then it need not be indented.</li>
<span id="LC14" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<ol start="5" data-sourcepos="4397:1-4405:0" dir="auto">
-<li data-sourcepos="4397:1-4405:0">
+<ol start="5" data-sourcepos="4392:1-4400:0" dir="auto">
+<li data-sourcepos="4392:1-4400: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
@@ -3907,9 +3904,9 @@ 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="4406:1-4406:50" dir="auto">Here is an example with [lazy continuation lines]:</p>
+<p data-sourcepos="4401:1-4401:50" dir="auto">Here is an example with [lazy continuation lines]:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4408:1-4427:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span>
+<pre data-sourcepos="4403:1-4422:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -3929,9 +3926,9 @@ lines are called
<span id="LC18" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4430:1-4430:37" dir="auto">Indentation can be partially deleted:</p>
+<p data-sourcepos="4425:1-4425:37" dir="auto">Indentation can be partially deleted:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4432:1-4440:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> 1. A paragraph</span>
+<pre data-sourcepos="4427:1-4435:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;ol&gt;</span>
@@ -3940,9 +3937,9 @@ lines are called
<span id="LC7" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4443:1-4443:63" dir="auto">These examples show how laziness can work in nested structures:</p>
+<p data-sourcepos="4438:1-4438:63" dir="auto">These examples show how laziness can work in nested structures:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4445:1-4459:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; 1. &gt; Blockquote</span>
+<pre data-sourcepos="4440:1-4454:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; 1. &gt; Blockquote</span>
<span id="LC2" class="line" lang="plaintext">continued here.</span>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;blockquote&gt;</span>
@@ -3958,7 +3955,7 @@ lines are called
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4462:1-4476:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; 1. &gt; Blockquote</span>
+<pre data-sourcepos="4457:1-4471:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&gt; 1. &gt; Blockquote</span>
<span id="LC2" class="line" lang="plaintext">&gt; continued here.</span>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;blockquote&gt;</span>
@@ -3973,18 +3970,18 @@ lines are called
<span id="LC13" class="line" lang="plaintext">&lt;/blockquote&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<ol start="6" data-sourcepos="4480:1-4482:0" dir="auto">
-<li data-sourcepos="4480:1-4482:0">
+<ol start="6" data-sourcepos="4475:1-4477:0" dir="auto">
+<li data-sourcepos="4475:1-4477: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="4483:1-4486:17" dir="auto">The rules for sublists follow from the general rules
+<p data-sourcepos="4478:1-4481: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="4488:1-4488:43" dir="auto">So, in this case we need two spaces indent:</p>
+<p data-sourcepos="4483:1-4483:43" dir="auto">So, in this case we need two spaces indent:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4490:1-4511:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span>
+<pre data-sourcepos="4485:1-4506:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4006,9 +4003,9 @@ in the list item.</p>
<span id="LC20" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4514:1-4514:18" dir="auto">One is not enough:</p>
+<p data-sourcepos="4509:1-4509:18" dir="auto">One is not enough:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4516:1-4528:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span>
+<pre data-sourcepos="4511:1-4523:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4021,9 +4018,9 @@ in the list item.</p>
<span id="LC11" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4531:1-4531:52" dir="auto">Here we need four, because the list marker is wider:</p>
+<p data-sourcepos="4526:1-4526:52" dir="auto">Here we need four, because the list marker is wider:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4533:1-4544:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">10) foo</span>
+<pre data-sourcepos="4528:1-4539:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;ol start="10"&gt;</span>
@@ -4035,9 +4032,9 @@ in the list item.</p>
<span id="LC10" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4547:1-4547:20" dir="auto">Three is not enough:</p>
+<p data-sourcepos="4542:1-4542:20" dir="auto">Three is not enough:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4549:1-4559:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">10) foo</span>
+<pre data-sourcepos="4544:1-4554:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;ol start="10"&gt;</span>
@@ -4048,9 +4045,9 @@ in the list item.</p>
<span id="LC9" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4562:1-4562:45" dir="auto">A list may be the first block in a list item:</p>
+<p data-sourcepos="4557:1-4557:45" dir="auto">A list may be the first block in a list item:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4564:1-4574:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- - foo</span>
+<pre data-sourcepos="4559:1-4569:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;ul&gt;</span>
<span id="LC4" class="line" lang="plaintext">&lt;li&gt;</span>
@@ -4062,7 +4059,7 @@ in the list item.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4577:1-4591:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. - 2. foo</span>
+<pre data-sourcepos="4572:1-4586:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. - 2. foo</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;ol&gt;</span>
<span id="LC4" class="line" lang="plaintext">&lt;li&gt;</span>
@@ -4077,9 +4074,9 @@ in the list item.</p>
<span id="LC13" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4594:1-4594:34" dir="auto">A list item can contain a heading:</p>
+<p data-sourcepos="4589:1-4589:34" dir="auto">A list item can contain a heading:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4596:1-4610:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- # Foo</span>
+<pre data-sourcepos="4591:1-4605:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4094,38 +4091,38 @@ in the list item.</p>
<span id="LC13" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h3 data-sourcepos="4613:1-4613:14" dir="auto">
+<h3 data-sourcepos="4608:1-4608:14" dir="auto">
<a id="user-content-motivation" class="anchor" href="#motivation" aria-hidden="true"></a>Motivation</h3>
-<p data-sourcepos="4615:1-4615:64" dir="auto">John Gruber's Markdown spec says the following about list items:</p>
-<ol data-sourcepos="4617:1-4636:0" dir="auto">
-<li data-sourcepos="4617:1-4620:0">
-<p data-sourcepos="4617:4-4619:20">"List markers typically start at the left margin, but may be indented
+<p data-sourcepos="4610:1-4610:64" dir="auto">John Gruber's Markdown spec says the following about list items:</p>
+<ol data-sourcepos="4612:1-4631:0" dir="auto">
+<li data-sourcepos="4612:1-4615:0">
+<p data-sourcepos="4612:4-4614: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="4621:1-4623:0">
-<p data-sourcepos="4621:4-4622:48">"To make lists look nice, you can wrap items with hanging indents....
+<li data-sourcepos="4616:1-4618:0">
+<p data-sourcepos="4616:4-4617: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="4624:1-4627:0">
-<p data-sourcepos="4624:4-4626:8">"List items may consist of multiple paragraphs. Each subsequent
+<li data-sourcepos="4619:1-4622:0">
+<p data-sourcepos="4619:4-4621: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="4628:1-4630:0">
-<p data-sourcepos="4628:4-4629:55">"It looks nice if you indent every line of the subsequent paragraphs,
+<li data-sourcepos="4623:1-4625:0">
+<p data-sourcepos="4623:4-4624: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="4631:1-4633:0">
-<p data-sourcepos="4631:4-4632:35">"To put a blockquote within a list item, the blockquote's <code>&gt;</code>
+<li data-sourcepos="4626:1-4628:0">
+<p data-sourcepos="4626:4-4627:35">"To put a blockquote within a list item, the blockquote's <code>&gt;</code>
delimiters need to be indented."</p>
</li>
-<li data-sourcepos="4634:1-4636:0">
-<p data-sourcepos="4634:4-4635:44">"To put a code block within a list item, the code block needs to be
+<li data-sourcepos="4629:1-4631:0">
+<p data-sourcepos="4629:4-4630: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="4637:1-4646:18" dir="auto">These rules specify that a paragraph under a list item must be indented
+<p data-sourcepos="4632:1-4641: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
@@ -4135,7 +4132,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="4648:1-4659:48" dir="auto">The four-space rule is clear and principled, and if the reference
+<p data-sourcepos="4643:1-4654: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
@@ -4147,33 +4144,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="4661:1-4666:45" dir="auto">Unfortunately, given the divergences between implementations, there
+<p data-sourcepos="4656:1-4661: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="4668:1-4674:22" dir="auto">The strategy here is to let the width and indentation of the list marker
+<p data-sourcepos="4663:1-4669: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="4676:1-4678:39" dir="auto">This rule is superior, we claim, to any rule requiring a fixed level of
+<p data-sourcepos="4671:1-4673: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="4680:1-4686:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="p">-</span> foo</span>
+<pre data-sourcepos="4675:1-4681:3" class="code highlight js-syntax-highlight language-markdown" lang="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="4688:1-4688:60" dir="auto">should be parsed as two lists with an intervening paragraph,</p>
+<p data-sourcepos="4683:1-4683: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="4690:1-4698:3" class="code highlight js-syntax-highlight language-html" lang="html" v-pre="true"><code><span id="LC1" class="line" lang="html"><span class="nt">&lt;ul&gt;</span></span>
+<pre data-sourcepos="4685:1-4693:3" class="code highlight js-syntax-highlight language-html" lang="html" v-pre="true"><code><span id="LC1" class="line" lang="html"><span class="nt">&lt;ul&gt;</span></span>
<span id="LC2" class="line" lang="html"><span class="nt">&lt;li&gt;</span>foo<span class="nt">&lt;/li&gt;</span></span>
<span id="LC3" class="line" lang="html"><span class="nt">&lt;/ul&gt;</span></span>
<span id="LC4" class="line" lang="html"><span class="nt">&lt;p&gt;</span>bar<span class="nt">&lt;/p&gt;</span></span>
@@ -4182,9 +4179,9 @@ unnatural. It is quite unintuitive that</p>
<span id="LC7" class="line" lang="html"><span class="nt">&lt;/ul&gt;</span></span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4700:1-4700:58" dir="auto">as the four-space rule demands, rather than a single list,</p>
+<p data-sourcepos="4695:1-4695: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="4702:1-4712:3" class="code highlight js-syntax-highlight language-html" lang="html" v-pre="true"><code><span id="LC1" class="line" lang="html"><span class="nt">&lt;ul&gt;</span></span>
+<pre data-sourcepos="4697:1-4707:3" class="code highlight js-syntax-highlight language-html" lang="html" v-pre="true"><code><span id="LC1" class="line" lang="html"><span class="nt">&lt;ul&gt;</span></span>
<span id="LC2" class="line" lang="html"><span class="nt">&lt;li&gt;</span></span>
<span id="LC3" class="line" lang="html"><span class="nt">&lt;p&gt;</span>foo<span class="nt">&lt;/p&gt;</span></span>
<span id="LC4" class="line" lang="html"><span class="nt">&lt;p&gt;</span>bar<span class="nt">&lt;/p&gt;</span></span>
@@ -4195,22 +4192,22 @@ unnatural. It is quite unintuitive that</p>
<span id="LC9" class="line" lang="html"><span class="nt">&lt;/ul&gt;</span></span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4714:1-4715:62" dir="auto">The choice of four spaces is arbitrary. It can be learned, but it is
+<p data-sourcepos="4709:1-4710: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="4717:1-4721:20" dir="auto">Would it help to adopt a two-space rule? The problem is that such
+<p data-sourcepos="4712:1-4716: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="4723:1-4727:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="p"> -</span> one</span>
+<pre data-sourcepos="4718:1-4722:3" class="code highlight js-syntax-highlight language-markdown" lang="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="4729:1-4729:59" dir="auto">as a single list item, with <code>two</code> a continuation paragraph:</p>
+<p data-sourcepos="4724:1-4724: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="4731:1-4738:3" class="code highlight js-syntax-highlight language-html" lang="html" v-pre="true"><code><span id="LC1" class="line" lang="html"><span class="nt">&lt;ul&gt;</span></span>
+<pre data-sourcepos="4726:1-4733:3" class="code highlight js-syntax-highlight language-html" lang="html" v-pre="true"><code><span id="LC1" class="line" lang="html"><span class="nt">&lt;ul&gt;</span></span>
<span id="LC2" class="line" lang="html"><span class="nt">&lt;li&gt;</span></span>
<span id="LC3" class="line" lang="html"><span class="nt">&lt;p&gt;</span>one<span class="nt">&lt;/p&gt;</span></span>
<span id="LC4" class="line" lang="html"><span class="nt">&lt;p&gt;</span>two<span class="nt">&lt;/p&gt;</span></span>
@@ -4218,16 +4215,16 @@ original list marker to be included in the list item. For example,
<span id="LC6" class="line" lang="html"><span class="nt">&lt;/ul&gt;</span></span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4740:1-4740:13" dir="auto">and similarly</p>
+<p data-sourcepos="4735:1-4735:13" dir="auto">and similarly</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4742:1-4746:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">&gt; - one</span></span>
+<pre data-sourcepos="4737:1-4741:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">&gt; - one</span></span>
<span id="LC2" class="line" lang="markdown"><span class="gt">&gt;</span></span>
<span id="LC3" class="line" lang="markdown"><span class="gt">&gt; two</span></span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4748:1-4748:2" dir="auto">as</p>
+<p data-sourcepos="4743:1-4743:2" dir="auto">as</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4750:1-4759:3" class="code highlight js-syntax-highlight language-html" lang="html" v-pre="true"><code><span id="LC1" class="line" lang="html"><span class="nt">&lt;blockquote&gt;</span></span>
+<pre data-sourcepos="4745:1-4754:3" class="code highlight js-syntax-highlight language-html" lang="html" v-pre="true"><code><span id="LC1" class="line" lang="html"><span class="nt">&lt;blockquote&gt;</span></span>
<span id="LC2" class="line" lang="html"><span class="nt">&lt;ul&gt;</span></span>
<span id="LC3" class="line" lang="html"><span class="nt">&lt;li&gt;</span></span>
<span id="LC4" class="line" lang="html"><span class="nt">&lt;p&gt;</span>one<span class="nt">&lt;/p&gt;</span></span>
@@ -4237,33 +4234,33 @@ original list marker to be included in the list item. For example,
<span id="LC8" class="line" lang="html"><span class="nt">&lt;/blockquote&gt;</span></span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4761:1-4761:30" dir="auto">This is extremely unintuitive.</p>
-<p data-sourcepos="4763:1-4768:52" dir="auto">Rather than requiring a fixed indent from the margin, we could require
+<p data-sourcepos="4756:1-4756:30" dir="auto">This is extremely unintuitive.</p>
+<p data-sourcepos="4758:1-4763: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="4770:1-4774:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="p"> 10.</span> foo</span>
+<pre data-sourcepos="4765:1-4769:3" class="code highlight js-syntax-highlight language-markdown" lang="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="4776:1-4779:62" dir="auto">Arguably this text does read like a list item with <code>bar</code> as a subparagraph,
+<p data-sourcepos="4771:1-4774: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="4781:1-4785:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="p">1.</span> foo</span>
+<pre data-sourcepos="4776:1-4780:3" class="code highlight js-syntax-highlight language-markdown" lang="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="4787:1-4789:28" dir="auto">where the code is indented eight spaces. The spec above, by contrast, will
+<p data-sourcepos="4782:1-4784: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="4791:1-4797:62" dir="auto">The one case that needs special treatment is a list item that <em>starts</em>
+<p data-sourcepos="4786:1-4792: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
@@ -4271,26 +4268,26 @@ 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="4801:1-4801:30">
+<h2 data-sourcepos="4796:1-4796: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="4803:1-4804:26">GFM enables the <code>tasklist</code> extension, where an additional processing step is
+<p data-sourcepos="4798:1-4799:26">GFM enables the <code>tasklist</code> extension, where an additional processing step is
performed on [list items].</p>
-<p data-sourcepos="4806:1-4808:46">A <a href="@">task list item</a> is a [list item][list items] where the first block in it
+<p data-sourcepos="4801:1-4803: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="4810:1-4812:55">A <a href="@">task list item marker</a> consists of an optional number of spaces, a left
+<p data-sourcepos="4805:1-4807: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="4814:1-4815:70">When rendered, the [task list item marker] is replaced with a semantic checkbox element;
+<p data-sourcepos="4809:1-4810:70">When rendered, the [task list item marker] is replaced with a semantic checkbox element;
in an HTML output, this would be an <code>&lt;input type="checkbox"&gt;</code> element.</p>
-<p data-sourcepos="4817:1-4818:50">If the character between the brackets is a whitespace character, the checkbox
+<p data-sourcepos="4812:1-4813:50">If the character between the brackets is a whitespace character, the checkbox
is unchecked. Otherwise, the checkbox is checked.</p>
-<p data-sourcepos="4820:1-4823:28">This spec does not define how the checkbox elements are interacted with: in practice,
+<p data-sourcepos="4815:1-4818: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4825:1-4833:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [ ] foo</span>
+<pre data-sourcepos="4820:1-4828:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;ul&gt;</span>
@@ -4299,9 +4296,9 @@ the final rendered document.</p>
<span id="LC7" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4835:1-4835:37">Task lists can be arbitrarily nested:</p>
+<p data-sourcepos="4830:1-4830:37">Task lists can be arbitrarily nested:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4837:1-4852:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [x] foo</span>
+<pre data-sourcepos="4832:1-4847:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4318,35 +4315,35 @@ the final rendered document.</p>
<copy-code></copy-code>
</div>
</div>
-<h2 data-sourcepos="4856:1-4856:8" dir="auto">
+<h2 data-sourcepos="4851:1-4851:8" dir="auto">
<a id="user-content-lists" class="anchor" href="#lists" aria-hidden="true"></a>Lists</h2>
-<p data-sourcepos="4858:1-4860:46" dir="auto">A <a href="@">list</a> is a sequence of one or more
+<p data-sourcepos="4853:1-4855: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="4862:1-4867:30" dir="auto">Two list items are <a href="@">of the same type</a>
+<p data-sourcepos="4857:1-4862: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="4869:1-4873:39" dir="auto">A list is an <a href="@">ordered list</a>
+<p data-sourcepos="4864:1-4868: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="4875:1-4878:12" dir="auto">The <a href="@">start number</a>
+<p data-sourcepos="4870:1-4873: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="4880:1-4885:65" dir="auto">A list is <a href="@">loose</a> if any of its constituent
+<p data-sourcepos="4875:1-4880: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>&lt;p&gt;</code> tags, while paragraphs in a tight list are not.)</p>
-<p data-sourcepos="4887:1-4887:64" dir="auto">Changing the bullet or ordered list delimiter starts a new list:</p>
+<p data-sourcepos="4882:1-4882:64" dir="auto">Changing the bullet or ordered list delimiter starts a new list:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4889:1-4901:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span>
+<pre data-sourcepos="4884:1-4896:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4360,7 +4357,7 @@ wrapped in <code>&lt;p&gt;</code> tags, while paragraphs in a tight list are not
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4904:1-4916:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. foo</span>
+<pre data-sourcepos="4899:1-4911:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -4373,11 +4370,11 @@ wrapped in <code>&lt;p&gt;</code> tags, while paragraphs in a tight list are not
<span id="LC11" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4919:1-4921:5" dir="auto">In CommonMark, a list can interrupt a paragraph. That is,
+<p data-sourcepos="4914:1-4916: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4923:1-4933:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo</span>
+<pre data-sourcepos="4918:1-4928:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4388,74 +4385,74 @@ list:</p>
<span id="LC9" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="4935:1-4936:37" dir="auto"><code>Markdown.pl</code> does not allow this, through fear of triggering a list
+<p data-sourcepos="4930:1-4931: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="4938:1-4941:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">The number of windows in my house is</span>
+<pre data-sourcepos="4933:1-4936:3" class="code highlight js-syntax-highlight language-markdown" lang="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="4943:1-4945:6" dir="auto">Oddly, though, <code>Markdown.pl</code> <em>does</em> allow a blockquote to
+<p data-sourcepos="4938:1-4940: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="4947:1-4949:35" dir="auto">In CommonMark, we do allow lists to interrupt paragraphs, for
+<p data-sourcepos="4942:1-4944: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="4951:1-4956:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">I need to buy</span>
+<pre data-sourcepos="4946:1-4951:3" class="code highlight js-syntax-highlight language-markdown" lang="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="4958:1-4958:29" dir="auto">Second, we are attracted to a</p>
-<blockquote data-sourcepos="4960:1-4963:54" dir="auto">
-<p data-sourcepos="4960:3-4963:54"><a href="@">principle of uniformity</a>:
+<p data-sourcepos="4953:1-4953:29" dir="auto">Second, we are attracted to a</p>
+<blockquote data-sourcepos="4955:1-4958:54" dir="auto">
+<p data-sourcepos="4955:3-4958: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="4965:1-4966:47" dir="auto">(Indeed, the spec for [list items] and [block quotes] presupposes
+<p data-sourcepos="4960:1-4961: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="4968:1-4973:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="p"> *</span> I need to buy</span>
+<pre data-sourcepos="4963:1-4968:3" class="code highlight js-syntax-highlight language-markdown" lang="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="4975:1-4978:4" dir="auto">is a list item containing a paragraph followed by a nested sublist,
+<p data-sourcepos="4970:1-4973: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>&lt;p&gt;</code> tags, since the list is "tight"),
then</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="4980:1-4985:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">I need to buy</span>
+<pre data-sourcepos="4975:1-4980:3" class="code highlight js-syntax-highlight language-markdown" lang="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="4987:1-4987:61" dir="auto">by itself should be a paragraph followed by a nested sublist.</p>
-<p data-sourcepos="4989:1-4994:30" dir="auto">Since it is well established Markdown practice to allow lists to
+<p data-sourcepos="4982:1-4982:61" dir="auto">by itself should be a paragraph followed by a nested sublist.</p>
+<p data-sourcepos="4984:1-4989: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="4996:1-4998:28" dir="auto">In order to solve of unwanted lists in paragraphs with
+<p data-sourcepos="4991:1-4993: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5000:1-5006:32" class="code highlight js-syntax-highlight language-plaintext" lang="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="4995:1-5001:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;The number of windows in my house is</span>
<span id="LC5" class="line" lang="plaintext">14. The number of doors is 6.&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5008:1-5008:51" dir="auto">We may still get an unintended result in cases like</p>
+<p data-sourcepos="5003:1-5003:51" dir="auto">We may still get an unintended result in cases like</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5010:1-5018:32" class="code highlight js-syntax-highlight language-plaintext" lang="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="5005:1-5013:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;The number of windows in my house is&lt;/p&gt;</span>
@@ -4464,10 +4461,10 @@ interrupt paragraphs. Thus,</p>
<span id="LC7" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5020:1-5020:57" dir="auto">but this rule should prevent most spurious list captures.</p>
-<p data-sourcepos="5022:1-5022:53" dir="auto">There can be any number of blank lines between items:</p>
+<p data-sourcepos="5015:1-5015:57" dir="auto">but this rule should prevent most spurious list captures.</p>
+<p data-sourcepos="5017:1-5017:53" dir="auto">There can be any number of blank lines between items:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5024:1-5043:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span>
+<pre data-sourcepos="5019:1-5038:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4488,7 +4485,7 @@ interrupt paragraphs. Thus,</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5045:1-5067:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span>
+<pre data-sourcepos="5040:1-5062:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4511,12 +4508,12 @@ interrupt paragraphs. Thus,</p>
<span id="LC21" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5070:1-5073:8" dir="auto">To separate consecutive lists of the same type, or to separate a
+<p data-sourcepos="5065:1-5068: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5075:1-5093:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span>
+<pre data-sourcepos="5070:1-5088:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;!-- --&gt;</span>
@@ -4536,7 +4533,7 @@ comment:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5096:1-5119:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- foo</span>
+<pre data-sourcepos="5091:1-5114:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4560,12 +4557,12 @@ comment:</p>
<span id="LC22" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5122:1-5125:5" dir="auto">List items need not be indented to the same level. The following
+<p data-sourcepos="5117:1-5120: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5127:1-5145:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span>
+<pre data-sourcepos="5122:1-5140:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4585,7 +4582,7 @@ item:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5148:1-5166:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. a</span>
+<pre data-sourcepos="5143:1-5161:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4604,11 +4601,11 @@ item:</p>
<span id="LC17" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5168:1-5170:52" dir="auto">Note, however, that list items may not be indented more than
+<p data-sourcepos="5163:1-5165: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5172:1-5186:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span>
+<pre data-sourcepos="5167:1-5181:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4623,11 +4620,11 @@ line, because it is indented more than three spaces:</p>
<span id="LC13" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5188:1-5190:11" dir="auto">And here, <code>3. c</code> is treated as in indented code block,
+<p data-sourcepos="5183:1-5185: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5192:1-5209:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. a</span>
+<pre data-sourcepos="5187:1-5204:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4645,10 +4642,10 @@ blank line.</p>
<span id="LC16" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5212:1-5213:22" dir="auto">This is a loose list, because there is a blank line between
+<p data-sourcepos="5207:1-5208:22" dir="auto">This is a loose list, because there is a blank line between
two of the list items:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5215:1-5232:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span>
+<pre data-sourcepos="5210:1-5227:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4666,9 +4663,9 @@ two of the list items:</p>
<span id="LC16" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5235:1-5235:37" dir="auto">So is this, with a empty second item:</p>
+<p data-sourcepos="5230:1-5230:37" dir="auto">So is this, with a empty second item:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5237:1-5252:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* a</span>
+<pre data-sourcepos="5232:1-5247:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4684,11 +4681,11 @@ two of the list items:</p>
<span id="LC14" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5255:1-5257:31" dir="auto">These are loose lists, even though there is no space between the items,
+<p data-sourcepos="5250:1-5252: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5259:1-5278:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span>
+<pre data-sourcepos="5254:1-5273:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4709,7 +4706,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="5281:1-5299:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span>
+<pre data-sourcepos="5276:1-5294:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4728,9 +4725,9 @@ with a blank line between them:</p>
<span id="LC17" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5302:1-5302:66" dir="auto">This is a tight list, because the blank lines are in a code block:</p>
+<p data-sourcepos="5297:1-5297:66" dir="auto">This is a tight list, because the blank lines are in a code block:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5304:1-5323:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span>
+<pre data-sourcepos="5299:1-5318:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4750,11 +4747,11 @@ with a blank line between them:</p>
<span id="LC18" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5326:1-5328:24" dir="auto">This is a tight list, because the blank line is between two
+<p data-sourcepos="5321:1-5323: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5330:1-5348:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span>
+<pre data-sourcepos="5325:1-5343:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4773,10 +4770,10 @@ the outer list is tight:</p>
<span id="LC17" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5351:1-5352:12" dir="auto">This is a tight list, because the blank line is inside the
+<p data-sourcepos="5346:1-5347:12" dir="auto">This is a tight list, because the blank line is inside the
block quote:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5354:1-5368:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* a</span>
+<pre data-sourcepos="5349:1-5363:32" class="code highlight js-syntax-highlight language-plaintext" lang="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"> &gt; b</span>
<span id="LC3" class="line" lang="plaintext"> &gt;</span>
<span id="LC4" class="line" lang="plaintext">* c</span>
@@ -4791,10 +4788,10 @@ block quote:</p>
<span id="LC13" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5371:1-5372:33" dir="auto">This list is tight, because the consecutive block elements
+<p data-sourcepos="5366:1-5367:33" dir="auto">This list is tight, because the consecutive block elements
are not separated by blank lines:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5374:1-5392:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span>
+<pre data-sourcepos="5369:1-5387:32" class="code highlight js-syntax-highlight language-plaintext" lang="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"> &gt; b</span>
<span id="LC3" class="line" lang="plaintext"> ```</span>
<span id="LC4" class="line" lang="plaintext"> c</span>
@@ -4813,9 +4810,9 @@ are not separated by blank lines:</p>
<span id="LC17" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5395:1-5395:33" dir="auto">A single-paragraph list is tight:</p>
+<p data-sourcepos="5390:1-5390:33" dir="auto">A single-paragraph list is tight:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5397:1-5403:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span>
+<pre data-sourcepos="5392:1-5398:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;ul&gt;</span>
<span id="LC4" class="line" lang="plaintext">&lt;li&gt;a&lt;/li&gt;</span>
@@ -4823,7 +4820,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="5406:1-5417:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span>
+<pre data-sourcepos="5401:1-5412:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;ul&gt;</span>
@@ -4835,10 +4832,10 @@ are not separated by blank lines:</p>
<span id="LC10" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5420:1-5421:36" dir="auto">This list is loose, because of the blank line between the
+<p data-sourcepos="5415:1-5416:36" dir="auto">This list is loose, because of the blank line between the
two block elements in the list item:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5423:1-5437:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">1. ```</span>
+<pre data-sourcepos="5418:1-5432:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4853,9 +4850,9 @@ two block elements in the list item:</p>
<span id="LC13" class="line" lang="plaintext">&lt;/ol&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5440:1-5440:51" dir="auto">Here the outer list is loose, the inner list tight:</p>
+<p data-sourcepos="5435:1-5435:51" dir="auto">Here the outer list is loose, the inner list tight:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5442:1-5457:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* foo</span>
+<pre data-sourcepos="5437:1-5452:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4872,7 +4869,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="5460:1-5485:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- a</span>
+<pre data-sourcepos="5455:1-5480:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4898,40 +4895,40 @@ two block elements in the list item:</p>
<span id="LC24" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h1 data-sourcepos="5488:1-5488:9" dir="auto">
+<h1 data-sourcepos="5483:1-5483:9" dir="auto">
<a id="user-content-inlines" class="anchor" href="#inlines" aria-hidden="true"></a>Inlines</h1>
-<p data-sourcepos="5490:1-5492:21" dir="auto">Inlines are parsed sequentially from the beginning of the character
+<p data-sourcepos="5485:1-5487: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5494:1-5498:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`hi`lo`</span>
+<pre data-sourcepos="5489:1-5493:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`hi`lo`</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;code&gt;hi&lt;/code&gt;lo`&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5500:1-5501:9" dir="auto"><code>hi</code> is parsed as code, leaving the backtick at the end as a literal
+<p data-sourcepos="5495:1-5496:9" dir="auto"><code>hi</code> is parsed as code, leaving the backtick at the end as a literal
backtick.</p>
-<h2 data-sourcepos="5504:1-5504:20" dir="auto">
+<h2 data-sourcepos="5499:1-5499:20" dir="auto">
<a id="user-content-backslash-escapes" class="anchor" href="#backslash-escapes" aria-hidden="true"></a>Backslash escapes</h2>
-<p data-sourcepos="5506:1-5506:57" dir="auto">Any ASCII punctuation character may be backslash-escaped:</p>
+<p data-sourcepos="5501:1-5501:57" dir="auto">Any ASCII punctuation character may be backslash-escaped:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5508:1-5512:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\!\"\#\$\%\&amp;\'\(\)\*\+\,\-\.\/\:\;\&lt;\=\&gt;\?\@\[\\\]\^\_\`\{\|\}\~</span>
+<pre data-sourcepos="5503:1-5507:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\!\"\#\$\%\&amp;\'\(\)\*\+\,\-\.\/\:\;\&lt;\=\&gt;\?\@\[\\\]\^\_\`\{\|\}\~</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;!&amp;quot;#$%&amp;amp;'()*+,-./:;&amp;lt;=&amp;gt;?@[\]^_`{|}~&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5515:1-5516:12" dir="auto">Backslashes before other characters are treated as literal
+<p data-sourcepos="5510:1-5511:12" dir="auto">Backslashes before other characters are treated as literal
backslashes:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5518:1-5522:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\→\A\a\ \3\φ\«</span>
+<pre data-sourcepos="5513:1-5517:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\→\A\a\ \3\φ\«</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;\→\A\a\ \3\φ\«&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5525:1-5526:39" dir="auto">Escaped characters are treated as regular characters and do
+<p data-sourcepos="5520:1-5521:39" dir="auto">Escaped characters are treated as regular characters and do
not have their usual Markdown meanings:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5528:1-5548:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\*not emphasized*</span>
+<pre data-sourcepos="5523:1-5543:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">\&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>
@@ -4952,39 +4949,39 @@ not have their usual Markdown meanings:</p>
<span id="LC19" class="line" lang="plaintext">&amp;amp;ouml; not a character entity&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5551:1-5551:65" dir="auto">If a backslash is itself escaped, the following character is not:</p>
+<p data-sourcepos="5546:1-5546:65" dir="auto">If a backslash is itself escaped, the following character is not:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5553:1-5557:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\\*emphasis*</span>
+<pre data-sourcepos="5548:1-5552:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\\*emphasis*</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;\&lt;em&gt;emphasis&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5560:1-5560:58" dir="auto">A backslash at the end of the line is a [hard line break]:</p>
+<p data-sourcepos="5555:1-5555:58" dir="auto">A backslash at the end of the line is a [hard line break]:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5562:1-5568:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo\</span>
+<pre data-sourcepos="5557:1-5563:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo&lt;br /&gt;</span>
<span id="LC5" class="line" lang="plaintext">bar&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5571:1-5572:9" dir="auto">Backslash escapes do not work in code blocks, code spans, autolinks, or
+<p data-sourcepos="5566:1-5567:9" dir="auto">Backslash escapes do not work in code blocks, code spans, autolinks, or
raw HTML:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5574:1-5578:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`` \[\` ``</span>
+<pre data-sourcepos="5569:1-5573:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;code&gt;\[\`&lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5581:1-5586:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> \[\]</span>
+<pre data-sourcepos="5576:1-5581:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;pre&gt;&lt;code&gt;\[\]</span>
<span id="LC4" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5589:1-5596:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~~</span>
+<pre data-sourcepos="5584:1-5591:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -4993,27 +4990,27 @@ raw HTML:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5599:1-5603:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;http://example.com?find=\*&gt;</span>
+<pre data-sourcepos="5594:1-5598:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;http://example.com?find=\*&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="http://example.com?find=%5C*"&gt;http://example.com?find=\*&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5606:1-5610:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href="/bar\/)"&gt;</span>
+<pre data-sourcepos="5601:1-5605:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href="/bar\/)"&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;a href="/bar\/)"&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5613:1-5614:60" dir="auto">But they work in all other contexts, including URLs and link titles,
+<p data-sourcepos="5608:1-5609: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5616:1-5620:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo](/bar\* "ti\*tle")</span>
+<pre data-sourcepos="5611:1-5615:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo](/bar\* "ti\*tle")</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/bar*" title="ti*tle"&gt;foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5623:1-5629:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span>
+<pre data-sourcepos="5618:1-5624:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -5021,7 +5018,7 @@ link references, and [info strings] in [fenced code blocks]:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5632:1-5639:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``` foo\+bar</span>
+<pre data-sourcepos="5627:1-5634:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -5029,18 +5026,18 @@ link references, and [info strings] in [fenced code blocks]:</p>
<span id="LC6" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="5643:1-5643:42" dir="auto">
+<h2 data-sourcepos="5638:1-5638: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="5645:1-5647:30" dir="auto">Valid HTML entity references and numeric character references
+<p data-sourcepos="5640:1-5642: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="5649:1-5658:0" dir="auto">
-<li data-sourcepos="5649:1-5651:0">
-<p data-sourcepos="5649:3-5650:24">Entity and character references are not recognized in code
+<ul data-sourcepos="5644:1-5653:0" dir="auto">
+<li data-sourcepos="5644:1-5646:0">
+<p data-sourcepos="5644:3-5645:24">Entity and character references are not recognized in code
blocks and code spans.</p>
</li>
-<li data-sourcepos="5652:1-5658:0">
-<p data-sourcepos="5652:3-5657:9">Entity and character references cannot stand in place of
+<li data-sourcepos="5647:1-5653:0">
+<p data-sourcepos="5647:3-5652:9">Entity and character references cannot stand in place of
special characters that define structural elements in
CommonMark. For example, although <code>&amp;#42;</code> can be used
in place of a literal <code>*</code> character, <code>&amp;#42;</code> cannot replace
@@ -5048,16 +5045,16 @@ in place of a literal <code>*</code> character, <code>&amp;#42;</code> cannot re
breaks.</p>
</li>
</ul>
-<p data-sourcepos="5659:1-5661:49" dir="auto">Conforming CommonMark parsers need not store information about
+<p data-sourcepos="5654:1-5656: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="5663:1-5667:47" dir="auto"><a href="@">Entity references</a> consist of <code>&amp;</code> + any of the valid
+<p data-sourcepos="5658:1-5662:47" dir="auto"><a href="@">Entity references</a> consist of <code>&amp;</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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5669:1-5677:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&amp;nbsp; &amp;amp; &amp;copy; &amp;AElig; &amp;Dcaron;</span>
+<pre data-sourcepos="5664:1-5672:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&amp;nbsp; &amp;amp; &amp;copy; &amp;AElig; &amp;Dcaron;</span>
<span id="LC2" class="line" lang="plaintext">&amp;frac34; &amp;HilbertSpace; &amp;DifferentialD;</span>
<span id="LC3" class="line" lang="plaintext">&amp;ClockwiseContourIntegral; &amp;ngE;</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -5066,7 +5063,7 @@ references and their corresponding code points.</p>
<span id="LC7" class="line" lang="plaintext">∲ ≧̸&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5680:1-5686:58" dir="auto"><a href="@">Decimal numeric character
+<p data-sourcepos="5675:1-5681:58" dir="auto"><a href="@">Decimal numeric character
references</a>
consist of <code>&amp;#</code> + a string of 1--7 arabic digits + <code>;</code>. A
numeric character reference is parsed as the corresponding
@@ -5074,25 +5071,25 @@ 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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5688:1-5692:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&amp;#35; &amp;#1234; &amp;#992; &amp;#0;</span>
+<pre data-sourcepos="5683:1-5687:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&amp;#35; &amp;#1234; &amp;#992; &amp;#0;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;# Ӓ Ϡ �&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5695:1-5699:62" dir="auto"><a href="@">Hexadecimal numeric character
+<p data-sourcepos="5690:1-5694:62" dir="auto"><a href="@">Hexadecimal numeric character
references</a> consist of <code>&amp;#</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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5701:1-5705:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&amp;#X22; &amp;#XD06; &amp;#xcab;</span>
+<pre data-sourcepos="5696:1-5700:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&amp;#X22; &amp;#XD06; &amp;#xcab;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&amp;quot; ആ ಫ&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5708:1-5708:26" dir="auto">Here are some nonentities:</p>
+<p data-sourcepos="5703:1-5703:26" dir="auto">Here are some nonentities:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5710:1-5720:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&amp;nbsp &amp;x; &amp;#; &amp;#x;</span>
+<pre data-sourcepos="5705:1-5715:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&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?;</span>
@@ -5103,40 +5100,40 @@ time specified with a hexadecimal numeral instead of decimal).</p>
<span id="LC9" class="line" lang="plaintext">&amp;amp;ThisIsNotDefined; &amp;amp;hi?;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5723:1-5725:60" dir="auto">Although HTML5 does accept some entity references
+<p data-sourcepos="5718:1-5720:60" dir="auto">Although HTML5 does accept some entity references
without a trailing semicolon (such as <code>&amp;copy</code>), these are not
recognized here, because it makes the grammar too ambiguous:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5727:1-5731:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&amp;copy</span>
+<pre data-sourcepos="5722:1-5726:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&amp;copy</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&amp;amp;copy&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5734:1-5735:39" dir="auto">Strings that are not on the list of HTML5 named entities are not
+<p data-sourcepos="5729:1-5730:39" dir="auto">Strings that are not on the list of HTML5 named entities are not
recognized as entity references either:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5737:1-5741:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&amp;MadeUpEntity;</span>
+<pre data-sourcepos="5732:1-5736:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&amp;MadeUpEntity;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&amp;amp;MadeUpEntity;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5744:1-5746:62" dir="auto">Entity and numeric character references are recognized in any
+<p data-sourcepos="5739:1-5741: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5748:1-5752:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href="&amp;ouml;&amp;ouml;.html"&gt;</span>
+<pre data-sourcepos="5743:1-5747:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href="&amp;ouml;&amp;ouml;.html"&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;a href="&amp;ouml;&amp;ouml;.html"&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5755:1-5759:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo](/f&amp;ouml;&amp;ouml; "f&amp;ouml;&amp;ouml;")</span>
+<pre data-sourcepos="5750:1-5754:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo](/f&amp;ouml;&amp;ouml; "f&amp;ouml;&amp;ouml;")</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/f%C3%B6%C3%B6" title="föö"&gt;foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5762:1-5768:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span>
+<pre data-sourcepos="5757:1-5763:32" class="code highlight js-syntax-highlight language-plaintext" lang="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&amp;ouml;&amp;ouml; "f&amp;ouml;&amp;ouml;"</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -5144,7 +5141,7 @@ URLs, [link titles], and [fenced code block][] [info strings]:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5771:1-5778:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``` f&amp;ouml;&amp;ouml;</span>
+<pre data-sourcepos="5766:1-5773:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``` f&amp;ouml;&amp;ouml;</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>
@@ -5152,26 +5149,26 @@ URLs, [link titles], and [fenced code block][] [info strings]:</p>
<span id="LC6" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5781:1-5782:35" dir="auto">Entity and numeric character references are treated as literal
+<p data-sourcepos="5776:1-5777:35" dir="auto">Entity and numeric character references are treated as literal
text in code spans and code blocks:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5784:1-5788:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`f&amp;ouml;&amp;ouml;`</span>
+<pre data-sourcepos="5779:1-5783:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`f&amp;ouml;&amp;ouml;`</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;code&gt;f&amp;amp;ouml;&amp;amp;ouml;&lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5791:1-5796:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> f&amp;ouml;f&amp;ouml;</span>
+<pre data-sourcepos="5786:1-5791:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> f&amp;ouml;f&amp;ouml;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;pre&gt;&lt;code&gt;f&amp;amp;ouml;f&amp;amp;ouml;</span>
<span id="LC4" class="line" lang="plaintext">&lt;/code&gt;&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5799:1-5801:10" dir="auto">Entity and numeric character references cannot be used
+<p data-sourcepos="5794:1-5796:10" dir="auto">Entity and numeric character references cannot be used
in place of symbols indicating structure in CommonMark
documents.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5803:1-5809:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&amp;#42;foo&amp;#42;</span>
+<pre data-sourcepos="5798:1-5804:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&amp;#42;foo&amp;#42;</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">&lt;p&gt;*foo*</span>
@@ -5179,7 +5176,7 @@ documents.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5811:1-5820:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&amp;#42; foo</span>
+<pre data-sourcepos="5806:1-5815:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&amp;#42; foo</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>
@@ -5190,7 +5187,7 @@ documents.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5822:1-5828:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo&amp;#10;&amp;#10;bar</span>
+<pre data-sourcepos="5817:1-5823:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo&amp;#10;&amp;#10;bar</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;foo</span>
<span id="LC4" class="line" lang="plaintext"></span>
@@ -5198,94 +5195,94 @@ documents.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5830:1-5834:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&amp;#9;foo</span>
+<pre data-sourcepos="5825:1-5829:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&amp;#9;foo</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;→foo&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5837:1-5841:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[a](url &amp;quot;tit&amp;quot;)</span>
+<pre data-sourcepos="5832:1-5836:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[a](url &amp;quot;tit&amp;quot;)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;[a](url &amp;quot;tit&amp;quot;)&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="5844:1-5844:13" dir="auto">
+<h2 data-sourcepos="5839:1-5839:13" dir="auto">
<a id="user-content-code-spans" class="anchor" href="#code-spans" aria-hidden="true"></a>Code spans</h2>
-<p data-sourcepos="5846:1-5848:36" dir="auto">A <a href="@">backtick string</a>
+<p data-sourcepos="5841:1-5843: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="5850:1-5853:15" dir="auto">A <a href="@">code span</a> begins with a backtick string and ends with
+<p data-sourcepos="5845:1-5848: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="5855:1-5862:0" dir="auto">
-<li data-sourcepos="5855:1-5855:50">First, [line endings] are converted to [spaces].</li>
-<li data-sourcepos="5856:1-5862:0">If the resulting string both begins <em>and</em> ends with a [space]
+<ul data-sourcepos="5850:1-5857:0" dir="auto">
+<li data-sourcepos="5850:1-5850:50">First, [line endings] are converted to [spaces].</li>
+<li data-sourcepos="5851:1-5857: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="5863:1-5863:27" dir="auto">This is a simple code span:</p>
+<p data-sourcepos="5858:1-5858:27" dir="auto">This is a simple code span:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5865:1-5869:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`foo`</span>
+<pre data-sourcepos="5860:1-5864:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;code&gt;foo&lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5872:1-5874:15" dir="auto">Here two backticks are used, because the code contains a backtick.
+<p data-sourcepos="5867:1-5869: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5876:1-5880:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`` foo ` bar ``</span>
+<pre data-sourcepos="5871:1-5875:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;code&gt;foo ` bar&lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5883:1-5884:7" dir="auto">This example shows the motivation for stripping leading and trailing
+<p data-sourcepos="5878:1-5879:7" dir="auto">This example shows the motivation for stripping leading and trailing
spaces:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5886:1-5890:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` `` `</span>
+<pre data-sourcepos="5881:1-5885:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;code&gt;``&lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5892:1-5892:39" dir="auto">Note that only <em>one</em> space is stripped:</p>
+<p data-sourcepos="5887:1-5887:39" dir="auto">Note that only <em>one</em> space is stripped:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5894:1-5898:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` `` `</span>
+<pre data-sourcepos="5889:1-5893:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;code&gt; `` &lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5900:1-5901:20" dir="auto">The stripping only happens if the space is on both
+<p data-sourcepos="5895:1-5896:20" dir="auto">The stripping only happens if the space is on both
sides of the string:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5903:1-5907:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` a`</span>
+<pre data-sourcepos="5898:1-5902:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;code&gt; a&lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5909:1-5910:21" dir="auto">Only [spaces], and not [unicode whitespace] in general, are
+<p data-sourcepos="5904:1-5905:21" dir="auto">Only [spaces], and not [unicode whitespace] in general, are
stripped in this way:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5912:1-5916:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` b `</span>
+<pre data-sourcepos="5907:1-5911:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` b `</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;code&gt; b &lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5918:1-5918:58" dir="auto">No stripping occurs if the code span contains only spaces:</p>
+<p data-sourcepos="5913:1-5913:58" dir="auto">No stripping occurs if the code span contains only spaces:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5920:1-5926:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` `</span>
+<pre data-sourcepos="5915:1-5921:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;code&gt; &lt;/code&gt;</span>
<span id="LC5" class="line" lang="plaintext">&lt;code&gt; &lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5929:1-5929:39" dir="auto">[Line endings] are treated like spaces:</p>
+<p data-sourcepos="5924:1-5924:39" dir="auto">[Line endings] are treated like spaces:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5931:1-5939:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``</span>
+<pre data-sourcepos="5926:1-5934:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -5295,274 +5292,274 @@ stripped in this way:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5941:1-5947:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``</span>
+<pre data-sourcepos="5936:1-5942:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;code&gt;foo &lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5950:1-5950:34" dir="auto">Interior spaces are not collapsed:</p>
+<p data-sourcepos="5945:1-5945:34" dir="auto">Interior spaces are not collapsed:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5952:1-5957:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`foo bar </span>
+<pre data-sourcepos="5947:1-5952:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;&lt;code&gt;foo bar baz&lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5959:1-5961:26" dir="auto">Note that browsers will typically collapse consecutive spaces
+<p data-sourcepos="5954:1-5956:26" dir="auto">Note that browsers will typically collapse consecutive spaces
when rendering <code>&lt;code&gt;</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="5963:5-5965:0" class="code highlight js-syntax-highlight language-plaintext" lang="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="5958:5-5960:0" class="code highlight js-syntax-highlight language-plaintext" lang="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="5966:1-5967:22" dir="auto">Note that backslash escapes do not work in code spans. All backslashes
+<p data-sourcepos="5961:1-5962:22" dir="auto">Note that backslash escapes do not work in code spans. All backslashes
are treated literally:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5969:1-5973:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`foo\`bar`</span>
+<pre data-sourcepos="5964:1-5968:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;code&gt;foo\&lt;/code&gt;bar`&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5976:1-5978:59" dir="auto">Backslash escapes are never needed, because one can always choose a
+<p data-sourcepos="5971:1-5973: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5980:1-5984:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">``foo`bar``</span>
+<pre data-sourcepos="5975:1-5979:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;code&gt;foo`bar&lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5986:1-5990:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">` foo `` bar `</span>
+<pre data-sourcepos="5981:1-5985:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;code&gt;foo `` bar&lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="5993:1-5996:5" dir="auto">Code span backticks have higher precedence than any other inline
+<p data-sourcepos="5988:1-5991: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="5998:1-6002:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo`*`</span>
+<pre data-sourcepos="5993:1-5997:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;*foo&lt;code&gt;*&lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6005:1-6005:33" dir="auto">And this is not parsed as a link:</p>
+<p data-sourcepos="6000:1-6000:33" dir="auto">And this is not parsed as a link:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6007:1-6011:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[not a `link](/foo`)</span>
+<pre data-sourcepos="6002:1-6006:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[not a `link](/foo`)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;[not a &lt;code&gt;link](/foo&lt;/code&gt;)&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6014:1-6015:19" dir="auto">Code spans, HTML tags, and autolinks have the same precedence.
+<p data-sourcepos="6009:1-6010:19" dir="auto">Code spans, HTML tags, and autolinks have the same precedence.
Thus, this is code:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6017:1-6021:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`&lt;a href="`"&gt;`</span>
+<pre data-sourcepos="6012:1-6016:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`&lt;a href="`"&gt;`</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;code&gt;&amp;lt;a href=&amp;quot;&lt;/code&gt;&amp;quot;&amp;gt;`&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6024:1-6024:24" dir="auto">But this is an HTML tag:</p>
+<p data-sourcepos="6019:1-6019:24" dir="auto">But this is an HTML tag:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6026:1-6030:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href="`"&gt;`</span>
+<pre data-sourcepos="6021:1-6025:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href="`"&gt;`</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="`"&gt;`&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6033:1-6033:17" dir="auto">And this is code:</p>
+<p data-sourcepos="6028:1-6028:17" dir="auto">And this is code:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6035:1-6039:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`&lt;http://foo.bar.`baz&gt;`</span>
+<pre data-sourcepos="6030:1-6034:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`&lt;http://foo.bar.`baz&gt;`</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;code&gt;&amp;lt;http://foo.bar.&lt;/code&gt;baz&amp;gt;`&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6042:1-6042:24" dir="auto">But this is an autolink:</p>
+<p data-sourcepos="6037:1-6037:24" dir="auto">But this is an autolink:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6044:1-6048:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;http://foo.bar.`baz&gt;`</span>
+<pre data-sourcepos="6039:1-6043:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;http://foo.bar.`baz&gt;`</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="http://foo.bar.%60baz"&gt;http://foo.bar.`baz&lt;/a&gt;`&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6051:1-6052:31" dir="auto">When a backtick string is not closed by a matching backtick string,
+<p data-sourcepos="6046:1-6047:31" dir="auto">When a backtick string is not closed by a matching backtick string,
we just have literal backticks:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6054:1-6058:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">```foo``</span>
+<pre data-sourcepos="6049:1-6053:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;```foo``&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6061:1-6065:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`foo</span>
+<pre data-sourcepos="6056:1-6060:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;`foo&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6067:1-6068:47" dir="auto">The following case also illustrates the need for opening and
+<p data-sourcepos="6062:1-6063:47" dir="auto">The following case also illustrates the need for opening and
closing backtick strings to be equal in length:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6070:1-6074:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`foo``bar``</span>
+<pre data-sourcepos="6065:1-6069:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;`foo&lt;code&gt;bar&lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="6077:1-6077:31" dir="auto">
+<h2 data-sourcepos="6072:1-6072: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="6079:1-6080: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="6074:1-6075: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="6082:1-6085:6" dir="auto">
-<p data-sourcepos="6082:3-6085:6">Markdown treats asterisks (<code>*</code>) and underscores (<code>_</code>) as indicators of
+<blockquote data-sourcepos="6077:1-6080:6" dir="auto">
+<p data-sourcepos="6077:3-6080: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>&lt;em&gt;</code> tag; double <code>*</code>'s or <code>_</code>'s will be wrapped with an HTML <code>&lt;strong&gt;</code>
tag.</p>
</blockquote>
-<p data-sourcepos="6087:1-6091:57" dir="auto">This is enough for most users, but these rules leave much undecided,
+<p data-sourcepos="6082:1-6086: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="6093:1-6099:3" class="code highlight js-syntax-highlight language-markdown" lang="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="6088:1-6094:3" class="code highlight js-syntax-highlight language-markdown" lang="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="6101:1-6103:9" dir="auto">The following patterns are less widely supported, but the intent
+<p data-sourcepos="6096:1-6098: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="6105:1-6108:3" class="code highlight js-syntax-highlight language-markdown" lang="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="6100:1-6103:3" class="code highlight js-syntax-highlight language-markdown" lang="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="6110:1-6113:31" dir="auto">Many implementations have also restricted intraword emphasis to
+<p data-sourcepos="6105:1-6108: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="6115:1-6118:3" class="code highlight js-syntax-highlight language-markdown" lang="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="6110:1-6113:3" class="code highlight js-syntax-highlight language-markdown" lang="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="6120:1-6121:55" dir="auto">The rules given below capture all of these patterns, while allowing
+<p data-sourcepos="6115:1-6116: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="6123:1-6127:38" dir="auto">First, some definitions. A <a href="@">delimiter run</a> is either
+<p data-sourcepos="6118:1-6122: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="6129:1-6135:37" dir="auto">A <a href="@">left-flanking delimiter run</a> is
+<p data-sourcepos="6124:1-6130: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="6137:1-6143:37" dir="auto">A <a href="@">right-flanking delimiter run</a> is
+<p data-sourcepos="6132:1-6138: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="6145:1-6145:41" dir="auto">Here are some examples of delimiter runs.</p>
-<ul data-sourcepos="6147:3-6178:0" dir="auto">
-<li data-sourcepos="6147:3-6155:0">
-<p data-sourcepos="6147:5-6147:41">left-flanking but not right-flanking:</p>
+<p data-sourcepos="6140:1-6140:41" dir="auto">Here are some examples of delimiter runs.</p>
+<ul data-sourcepos="6142:3-6173:0" dir="auto">
+<li data-sourcepos="6142:3-6150:0">
+<p data-sourcepos="6142:5-6142:41">left-flanking but not right-flanking:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6149:5-6154:7" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***abc</span>
+<pre data-sourcepos="6144:5-6149:7" class="code highlight js-syntax-highlight language-plaintext" lang="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="6156:3-6164:0">
-<p data-sourcepos="6156:5-6156:41">right-flanking but not left-flanking:</p>
+<li data-sourcepos="6151:3-6159:0">
+<p data-sourcepos="6151:5-6151:41">right-flanking but not left-flanking:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6158:5-6163:7" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> abc***</span>
+<pre data-sourcepos="6153:5-6158:7" class="code highlight js-syntax-highlight language-plaintext" lang="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="6165:3-6171:0">
-<p data-sourcepos="6165:5-6165:33">Both left and right-flanking:</p>
+<li data-sourcepos="6160:3-6166:0">
+<p data-sourcepos="6160:5-6160:33">Both left and right-flanking:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6167:5-6170:7" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> abc***def</span>
+<pre data-sourcepos="6162:5-6165:7" class="code highlight js-syntax-highlight language-plaintext" lang="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="6172:3-6178:0">
-<p data-sourcepos="6172:5-6172:36">Neither left nor right-flanking:</p>
+<li data-sourcepos="6167:3-6173:0">
+<p data-sourcepos="6167:5-6167:36">Neither left nor right-flanking:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6174:5-6177:7" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">abc *** def</span>
+<pre data-sourcepos="6169:5-6172:7" class="code highlight js-syntax-highlight language-plaintext" lang="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="6179:1-6185:49" dir="auto">(The idea of distinguishing left-flanking and right-flanking
+<p data-sourcepos="6174:1-6180: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="6187:1-6187:56" dir="auto">The following rules define emphasis and strong emphasis:</p>
-<ol data-sourcepos="6189:1-6253:0" dir="auto">
-<li data-sourcepos="6189:1-6191:0">
-<p data-sourcepos="6189:5-6190:71">A single <code>*</code> character <a href="@">can open emphasis</a>
+<p data-sourcepos="6182:1-6182:56" dir="auto">The following rules define emphasis and strong emphasis:</p>
+<ol data-sourcepos="6184:1-6248:0" dir="auto">
+<li data-sourcepos="6184:1-6186:0">
+<p data-sourcepos="6184:5-6185: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="6192:1-6197:0">
-<p data-sourcepos="6192:5-6196:28">A single <code>_</code> character [can open emphasis] iff
+<li data-sourcepos="6187:1-6192:0">
+<p data-sourcepos="6187:5-6191: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="6198:1-6200:0">
-<p data-sourcepos="6198:5-6199:55">A single <code>*</code> character <a href="@">can close emphasis</a>
+<li data-sourcepos="6193:1-6195:0">
+<p data-sourcepos="6193:5-6194: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="6201:1-6206:0">
-<p data-sourcepos="6201:5-6205:28">A single <code>_</code> character [can close emphasis] iff
+<li data-sourcepos="6196:1-6201:0">
+<p data-sourcepos="6196:5-6200: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="6207:1-6209:0">
-<p data-sourcepos="6207:5-6208:54">A double <code>**</code> <a href="@">can open strong emphasis</a>
+<li data-sourcepos="6202:1-6204:0">
+<p data-sourcepos="6202:5-6203: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="6210:1-6215:0">
-<p data-sourcepos="6210:5-6214:28">A double <code>__</code> [can open strong emphasis] iff
+<li data-sourcepos="6205:1-6210:0">
+<p data-sourcepos="6205:5-6209: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="6216:1-6218:0">
-<p data-sourcepos="6216:5-6217:55">A double <code>**</code> <a href="@">can close strong emphasis</a>
+<li data-sourcepos="6211:1-6213:0">
+<p data-sourcepos="6211:5-6212: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="6219:1-6224:0">
-<p data-sourcepos="6219:5-6223:28">A double <code>__</code> [can close strong emphasis] iff
+<li data-sourcepos="6214:1-6219:0">
+<p data-sourcepos="6214:5-6218: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="6225:1-6234:0">
-<p data-sourcepos="6225:5-6233:19">Emphasis begins with a delimiter that [can open emphasis] and ends
+<li data-sourcepos="6220:1-6229:0">
+<p data-sourcepos="6220:5-6228: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
@@ -5572,8 +5569,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="6235:1-6245:0">
-<p data-sourcepos="6235:5-6244:23">Strong emphasis begins with a delimiter that
+<li data-sourcepos="6230:1-6240:0">
+<p data-sourcepos="6230:5-6239: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
@@ -5584,45 +5581,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="6246:1-6249:0">
-<p data-sourcepos="6246:5-6248:25">A literal <code>*</code> character cannot occur at the beginning or end of
+<li data-sourcepos="6241:1-6244:0">
+<p data-sourcepos="6241:5-6243: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="6250:1-6253:0">
-<p data-sourcepos="6250:5-6252:25">A literal <code>_</code> character cannot occur at the beginning or end of
+<li data-sourcepos="6245:1-6248:0">
+<p data-sourcepos="6245:5-6247: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="6254:1-6255:43" dir="auto">Where rules 1--12 above are compatible with multiple parsings,
+<p data-sourcepos="6249:1-6250:43" dir="auto">Where rules 1--12 above are compatible with multiple parsings,
the following principles resolve ambiguity:</p>
-<ol start="13" data-sourcepos="6257:1-6282:0" dir="auto">
-<li data-sourcepos="6257:1-6260:0">
-<p data-sourcepos="6257:5-6259:28">The number of nestings should be minimized. Thus, for example,
+<ol start="13" data-sourcepos="6252:1-6277:0" dir="auto">
+<li data-sourcepos="6252:1-6255:0">
+<p data-sourcepos="6252:5-6254:28">The number of nestings should be minimized. Thus, for example,
an interpretation <code>&lt;strong&gt;...&lt;/strong&gt;</code> is always preferred to
<code>&lt;em&gt;&lt;em&gt;...&lt;/em&gt;&lt;/em&gt;</code>.</p>
</li>
-<li data-sourcepos="6261:1-6263:0">
-<p data-sourcepos="6261:5-6262:49">An interpretation <code>&lt;em&gt;&lt;strong&gt;...&lt;/strong&gt;&lt;/em&gt;</code> is always
+<li data-sourcepos="6256:1-6258:0">
+<p data-sourcepos="6256:5-6257:49">An interpretation <code>&lt;em&gt;&lt;strong&gt;...&lt;/strong&gt;&lt;/em&gt;</code> is always
preferred to <code>&lt;strong&gt;&lt;em&gt;...&lt;/em&gt;&lt;/strong&gt;</code>.</p>
</li>
-<li data-sourcepos="6264:1-6269:0">
-<p data-sourcepos="6264:5-6268:34">When two potential emphasis or strong emphasis spans overlap,
+<li data-sourcepos="6259:1-6264:0">
+<p data-sourcepos="6259:5-6263: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>&lt;em&gt;foo _bar&lt;/em&gt; baz_</code> rather
than <code>*foo &lt;em&gt;bar* baz&lt;/em&gt;</code>.</p>
</li>
-<li data-sourcepos="6270:1-6275:0">
-<p data-sourcepos="6270:5-6274:49">When there are two potential emphasis or strong emphasis spans
+<li data-sourcepos="6265:1-6270:0">
+<p data-sourcepos="6265:5-6269: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 &lt;strong&gt;bar baz&lt;/strong&gt;</code>
rather than <code>&lt;strong&gt;foo **bar baz&lt;/strong&gt;</code>.</p>
</li>
-<li data-sourcepos="6276:1-6282:0">
-<p data-sourcepos="6276:5-6281:26">Inline code spans, links, images, and HTML tags group more tightly
+<li data-sourcepos="6271:1-6277:0">
+<p data-sourcepos="6271:5-6276: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
@@ -5630,338 +5627,338 @@ parsed as <code>*&lt;a href="bar"&gt;foo*&lt;/a&gt;</code> rather than as
<code>&lt;em&gt;[foo&lt;/em&gt;](bar)</code>.</p>
</li>
</ol>
-<p data-sourcepos="6283:1-6283:60" dir="auto">These rules can be illustrated through a series of examples.</p>
-<p data-sourcepos="6285:1-6285:7" dir="auto">Rule 1:</p>
+<p data-sourcepos="6278:1-6278:60" dir="auto">These rules can be illustrated through a series of examples.</p>
+<p data-sourcepos="6280:1-6280:7" dir="auto">Rule 1:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6287:1-6291:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo bar*</span>
+<pre data-sourcepos="6282:1-6286:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo bar&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6294:1-6295:66" dir="auto">This is not emphasis, because the opening <code>*</code> is followed by
+<p data-sourcepos="6289:1-6290: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6297:1-6301:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a * foo bar*</span>
+<pre data-sourcepos="6292:1-6296:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a * foo bar*</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;a * foo bar*&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6304:1-6306:44" dir="auto">This is not emphasis, because the opening <code>*</code> is preceded
+<p data-sourcepos="6299:1-6301: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6308:1-6312:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a*"foo"*</span>
+<pre data-sourcepos="6303:1-6307:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a*"foo"*</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;a*&amp;quot;foo&amp;quot;*&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6315:1-6315:52" dir="auto">Unicode nonbreaking spaces count as whitespace, too:</p>
+<p data-sourcepos="6310:1-6310:52" dir="auto">Unicode nonbreaking spaces count as whitespace, too:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6317:1-6321:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">* a *</span>
+<pre data-sourcepos="6312:1-6316:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;* a *&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6324:1-6324:41" dir="auto">Intraword emphasis with <code>*</code> is permitted:</p>
+<p data-sourcepos="6319:1-6319:41" dir="auto">Intraword emphasis with <code>*</code> is permitted:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6326:1-6330:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo*bar*</span>
+<pre data-sourcepos="6321:1-6325:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo&lt;em&gt;bar&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6333:1-6337:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">5*6*78</span>
+<pre data-sourcepos="6328:1-6332:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">5*6*78</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;5&lt;em&gt;6&lt;/em&gt;78&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6340:1-6340:7" dir="auto">Rule 2:</p>
+<p data-sourcepos="6335:1-6335:7" dir="auto">Rule 2:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6342:1-6346:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo bar_</span>
+<pre data-sourcepos="6337:1-6341:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo bar&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6349:1-6350:11" dir="auto">This is not emphasis, because the opening <code>_</code> is followed by
+<p data-sourcepos="6344:1-6345:11" dir="auto">This is not emphasis, because the opening <code>_</code> is followed by
whitespace:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6352:1-6356:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_ foo bar_</span>
+<pre data-sourcepos="6347:1-6351:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;_ foo bar_&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6359:1-6360:47" dir="auto">This is not emphasis, because the opening <code>_</code> is preceded
+<p data-sourcepos="6354:1-6355:47" dir="auto">This is not emphasis, because the opening <code>_</code> is preceded
by an alphanumeric and followed by punctuation:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6362:1-6366:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a_"foo"_</span>
+<pre data-sourcepos="6357:1-6361:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a_"foo"_</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;a_&amp;quot;foo&amp;quot;_&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6369:1-6369:46" dir="auto">Emphasis with <code>_</code> is not allowed inside words:</p>
+<p data-sourcepos="6364:1-6364:46" dir="auto">Emphasis with <code>_</code> is not allowed inside words:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6371:1-6375:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo_bar_</span>
+<pre data-sourcepos="6366:1-6370:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo_bar_&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6378:1-6382:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">5_6_78</span>
+<pre data-sourcepos="6373:1-6377:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">5_6_78</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;5_6_78&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6385:1-6389:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">пристаням_стремятся_</span>
+<pre data-sourcepos="6380:1-6384:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;пристаням_стремятся_&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6392:1-6393:47" dir="auto">Here <code>_</code> does not generate emphasis, because the first delimiter run
+<p data-sourcepos="6387:1-6388: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6395:1-6399:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aa_"bb"_cc</span>
+<pre data-sourcepos="6390:1-6394:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">aa_"bb"_cc</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;aa_&amp;quot;bb&amp;quot;_cc&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6402:1-6404:12" dir="auto">This is emphasis, even though the opening delimiter is
+<p data-sourcepos="6397:1-6399: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6406:1-6410:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo-_(bar)_</span>
+<pre data-sourcepos="6401:1-6405:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo-&lt;em&gt;(bar)&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6413:1-6413:7" dir="auto">Rule 3:</p>
-<p data-sourcepos="6415:1-6416:32" dir="auto">This is not emphasis, because the closing delimiter does
+<p data-sourcepos="6408:1-6408:7" dir="auto">Rule 3:</p>
+<p data-sourcepos="6410:1-6411:32" dir="auto">This is not emphasis, because the closing delimiter does
not match the opening delimiter:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6418:1-6422:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo*</span>
+<pre data-sourcepos="6413:1-6417:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;_foo*&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6425:1-6426:11" dir="auto">This is not emphasis, because the closing <code>*</code> is preceded by
+<p data-sourcepos="6420:1-6421:11" dir="auto">This is not emphasis, because the closing <code>*</code> is preceded by
whitespace:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6428:1-6432:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo bar *</span>
+<pre data-sourcepos="6423:1-6427:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;*foo bar *&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6435:1-6435:36" dir="auto">A newline also counts as whitespace:</p>
+<p data-sourcepos="6430:1-6430:36" dir="auto">A newline also counts as whitespace:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6437:1-6443:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo bar</span>
+<pre data-sourcepos="6432:1-6438:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;*foo bar</span>
<span id="LC5" class="line" lang="plaintext">*&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6446:1-6448:58" dir="auto">This is not emphasis, because the second <code>*</code> is
+<p data-sourcepos="6441:1-6443: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6450:1-6454:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*(*foo)</span>
+<pre data-sourcepos="6445:1-6449:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;*(*foo)&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6457:1-6458:18" dir="auto">The point of this restriction is more easily appreciated
+<p data-sourcepos="6452:1-6453:18" dir="auto">The point of this restriction is more easily appreciated
with this example:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6460:1-6464:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*(*foo*)*</span>
+<pre data-sourcepos="6455:1-6459:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;(&lt;em&gt;foo&lt;/em&gt;)&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6467:1-6467:39" dir="auto">Intraword emphasis with <code>*</code> is allowed:</p>
+<p data-sourcepos="6462:1-6462:39" dir="auto">Intraword emphasis with <code>*</code> is allowed:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6469:1-6473:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo*bar</span>
+<pre data-sourcepos="6464:1-6468:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo&lt;/em&gt;bar&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6477:1-6477:7" dir="auto">Rule 4:</p>
-<p data-sourcepos="6479:1-6480:11" dir="auto">This is not emphasis, because the closing <code>_</code> is preceded by
+<p data-sourcepos="6472:1-6472:7" dir="auto">Rule 4:</p>
+<p data-sourcepos="6474:1-6475:11" dir="auto">This is not emphasis, because the closing <code>_</code> is preceded by
whitespace:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6482:1-6486:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo bar _</span>
+<pre data-sourcepos="6477:1-6481:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;_foo bar _&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6489:1-6490:56" dir="auto">This is not emphasis, because the second <code>_</code> is
+<p data-sourcepos="6484:1-6485:56" dir="auto">This is not emphasis, because the second <code>_</code> is
preceded by punctuation and followed by an alphanumeric:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6492:1-6496:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_(_foo)</span>
+<pre data-sourcepos="6487:1-6491:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;_(_foo)&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6499:1-6499:33" dir="auto">This is emphasis within emphasis:</p>
+<p data-sourcepos="6494:1-6494:33" dir="auto">This is emphasis within emphasis:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6501:1-6505:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_(_foo_)_</span>
+<pre data-sourcepos="6496:1-6500:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;(&lt;em&gt;foo&lt;/em&gt;)&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6508:1-6508:41" dir="auto">Intraword emphasis is disallowed for <code>_</code>:</p>
+<p data-sourcepos="6503:1-6503:41" dir="auto">Intraword emphasis is disallowed for <code>_</code>:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6510:1-6514:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo_bar</span>
+<pre data-sourcepos="6505:1-6509:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;_foo_bar&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6517:1-6521:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_пристаням_стремятся</span>
+<pre data-sourcepos="6512:1-6516:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;_пристаням_стремятся&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6524:1-6528:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo_bar_baz_</span>
+<pre data-sourcepos="6519:1-6523:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo_bar_baz&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6531:1-6533:12" dir="auto">This is emphasis, even though the closing delimiter is
+<p data-sourcepos="6526:1-6528: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6535:1-6539:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_(bar)_.</span>
+<pre data-sourcepos="6530:1-6534:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;(bar)&lt;/em&gt;.&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6542:1-6542:7" dir="auto">Rule 5:</p>
+<p data-sourcepos="6537:1-6537:7" dir="auto">Rule 5:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6544:1-6548:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo bar**</span>
+<pre data-sourcepos="6539:1-6543:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;foo bar&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6551:1-6552:23" dir="auto">This is not strong emphasis, because the opening delimiter is
+<p data-sourcepos="6546:1-6547:23" dir="auto">This is not strong emphasis, because the opening delimiter is
followed by whitespace:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6554:1-6558:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">** foo bar**</span>
+<pre data-sourcepos="6549:1-6553:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;** foo bar**&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6561:1-6563:44" dir="auto">This is not strong emphasis, because the opening <code>**</code> is preceded
+<p data-sourcepos="6556:1-6558: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6565:1-6569:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a**"foo"**</span>
+<pre data-sourcepos="6560:1-6564:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a**"foo"**</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;a**&amp;quot;foo&amp;quot;**&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6572:1-6572:49" dir="auto">Intraword strong emphasis with <code>**</code> is permitted:</p>
+<p data-sourcepos="6567:1-6567:49" dir="auto">Intraword strong emphasis with <code>**</code> is permitted:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6574:1-6578:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo**bar**</span>
+<pre data-sourcepos="6569:1-6573:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo&lt;strong&gt;bar&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6581:1-6581:7" dir="auto">Rule 6:</p>
+<p data-sourcepos="6576:1-6576:7" dir="auto">Rule 6:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6583:1-6587:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo bar__</span>
+<pre data-sourcepos="6578:1-6582:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;foo bar&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6590:1-6591:23" dir="auto">This is not strong emphasis, because the opening delimiter is
+<p data-sourcepos="6585:1-6586:23" dir="auto">This is not strong emphasis, because the opening delimiter is
followed by whitespace:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6593:1-6597:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__ foo bar__</span>
+<pre data-sourcepos="6588:1-6592:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;__ foo bar__&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6600:1-6600:31" dir="auto">A newline counts as whitespace:</p>
+<p data-sourcepos="6595:1-6595:31" dir="auto">A newline counts as whitespace:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6601:1-6607:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__</span>
+<pre data-sourcepos="6596:1-6602:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;__</span>
<span id="LC5" class="line" lang="plaintext">foo bar__&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6610:1-6611:47" dir="auto">This is not strong emphasis, because the opening <code>__</code> is preceded
+<p data-sourcepos="6605:1-6606:47" dir="auto">This is not strong emphasis, because the opening <code>__</code> is preceded
by an alphanumeric and followed by punctuation:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6613:1-6617:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a__"foo"__</span>
+<pre data-sourcepos="6608:1-6612:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">a__"foo"__</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;a__&amp;quot;foo&amp;quot;__&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6620:1-6620:49" dir="auto">Intraword strong emphasis is forbidden with <code>__</code>:</p>
+<p data-sourcepos="6615:1-6615:49" dir="auto">Intraword strong emphasis is forbidden with <code>__</code>:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6622:1-6626:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo__bar__</span>
+<pre data-sourcepos="6617:1-6621:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo__bar__&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6629:1-6633:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">5__6__78</span>
+<pre data-sourcepos="6624:1-6628:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">5__6__78</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;5__6__78&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6636:1-6640:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">пристаням__стремятся__</span>
+<pre data-sourcepos="6631:1-6635:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;пристаням__стремятся__&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6643:1-6647:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo, __bar__, baz__</span>
+<pre data-sourcepos="6638:1-6642:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;foo, &lt;strong&gt;bar&lt;/strong&gt;, baz&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6650:1-6652:12" dir="auto">This is strong emphasis, even though the opening delimiter is
+<p data-sourcepos="6645:1-6647: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6654:1-6658:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo-__(bar)__</span>
+<pre data-sourcepos="6649:1-6653:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo-&lt;strong&gt;(bar)&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6662:1-6662:7" dir="auto">Rule 7:</p>
-<p data-sourcepos="6664:1-6665:14" dir="auto">This is not strong emphasis, because the closing delimiter is preceded
+<p data-sourcepos="6657:1-6657:7" dir="auto">Rule 7:</p>
+<p data-sourcepos="6659:1-6660:14" dir="auto">This is not strong emphasis, because the closing delimiter is preceded
by whitespace:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6667:1-6671:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo bar **</span>
+<pre data-sourcepos="6662:1-6666:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;**foo bar **&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6674:1-6675:9" dir="auto">(Nor can it be interpreted as an emphasized <code>*foo bar *</code>, because of
+<p data-sourcepos="6669:1-6670:9" dir="auto">(Nor can it be interpreted as an emphasized <code>*foo bar *</code>, because of
Rule 11.)</p>
-<p data-sourcepos="6677:1-6678:56" dir="auto">This is not strong emphasis, because the second <code>**</code> is
+<p data-sourcepos="6672:1-6673:56" dir="auto">This is not strong emphasis, because the second <code>**</code> is
preceded by punctuation and followed by an alphanumeric:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6680:1-6684:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**(**foo)</span>
+<pre data-sourcepos="6675:1-6679:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;**(**foo)&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6687:1-6688:20" dir="auto">The point of this restriction is more easily appreciated
+<p data-sourcepos="6682:1-6683:20" dir="auto">The point of this restriction is more easily appreciated
with these examples:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6690:1-6694:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*(**foo**)*</span>
+<pre data-sourcepos="6685:1-6689:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;(&lt;strong&gt;foo&lt;/strong&gt;)&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6697:1-6703:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**Gomphocarpus (*Gomphocarpus physocarpus*, syn.</span>
+<pre data-sourcepos="6692:1-6698:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;&lt;strong&gt;Gomphocarpus (&lt;em&gt;Gomphocarpus physocarpus&lt;/em&gt;, syn.</span>
@@ -5969,278 +5966,278 @@ with these examples:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6706:1-6710:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo "*bar*" foo**</span>
+<pre data-sourcepos="6701:1-6705:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo "*bar*" foo**</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;strong&gt;foo &amp;quot;&lt;em&gt;bar&lt;/em&gt;&amp;quot; foo&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6713:1-6713:19" dir="auto">Intraword emphasis:</p>
+<p data-sourcepos="6708:1-6708:19" dir="auto">Intraword emphasis:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6715:1-6719:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo**bar</span>
+<pre data-sourcepos="6710:1-6714:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;foo&lt;/strong&gt;bar&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6722:1-6722:7" dir="auto">Rule 8:</p>
-<p data-sourcepos="6724:1-6725:23" dir="auto">This is not strong emphasis, because the closing delimiter is
+<p data-sourcepos="6717:1-6717:7" dir="auto">Rule 8:</p>
+<p data-sourcepos="6719:1-6720:23" dir="auto">This is not strong emphasis, because the closing delimiter is
preceded by whitespace:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6727:1-6731:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo bar __</span>
+<pre data-sourcepos="6722:1-6726:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;__foo bar __&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6734:1-6735:56" dir="auto">This is not strong emphasis, because the second <code>__</code> is
+<p data-sourcepos="6729:1-6730:56" dir="auto">This is not strong emphasis, because the second <code>__</code> is
preceded by punctuation and followed by an alphanumeric:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6737:1-6741:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__(__foo)</span>
+<pre data-sourcepos="6732:1-6736:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;__(__foo)&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6744:1-6745:18" dir="auto">The point of this restriction is more easily appreciated
+<p data-sourcepos="6739:1-6740:18" dir="auto">The point of this restriction is more easily appreciated
with this example:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6747:1-6751:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_(__foo__)_</span>
+<pre data-sourcepos="6742:1-6746:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;(&lt;strong&gt;foo&lt;/strong&gt;)&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6754:1-6754:49" dir="auto">Intraword strong emphasis is forbidden with <code>__</code>:</p>
+<p data-sourcepos="6749:1-6749:49" dir="auto">Intraword strong emphasis is forbidden with <code>__</code>:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6756:1-6760:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo__bar</span>
+<pre data-sourcepos="6751:1-6755:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;__foo__bar&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6763:1-6767:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__пристаням__стремятся</span>
+<pre data-sourcepos="6758:1-6762:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;__пристаням__стремятся&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6770:1-6774:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo__bar__baz__</span>
+<pre data-sourcepos="6765:1-6769:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;foo__bar__baz&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6777:1-6779:12" dir="auto">This is strong emphasis, even though the closing delimiter is
+<p data-sourcepos="6772:1-6774: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6781:1-6785:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__(bar)__.</span>
+<pre data-sourcepos="6776:1-6780:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;(bar)&lt;/strong&gt;.&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6788:1-6788:7" dir="auto">Rule 9:</p>
-<p data-sourcepos="6790:1-6791:16" dir="auto">Any nonempty sequence of inline elements can be the contents of an
+<p data-sourcepos="6783:1-6783:7" dir="auto">Rule 9:</p>
+<p data-sourcepos="6785:1-6786:16" dir="auto">Any nonempty sequence of inline elements can be the contents of an
emphasized span.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6793:1-6797:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo [bar](/url)*</span>
+<pre data-sourcepos="6788:1-6792:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo [bar](/url)*</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;em&gt;foo &lt;a href="/url"&gt;bar&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6800:1-6806:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo</span>
+<pre data-sourcepos="6795:1-6801:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo</span>
<span id="LC5" class="line" lang="plaintext">bar&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6809:1-6810:16" dir="auto">In particular, emphasis and strong emphasis can be nested
+<p data-sourcepos="6804:1-6805:16" dir="auto">In particular, emphasis and strong emphasis can be nested
inside emphasis:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6812:1-6816:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo __bar__ baz_</span>
+<pre data-sourcepos="6807:1-6811:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo &lt;strong&gt;bar&lt;/strong&gt; baz&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6819:1-6823:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo _bar_ baz_</span>
+<pre data-sourcepos="6814:1-6818:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo &lt;em&gt;bar&lt;/em&gt; baz&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6826:1-6830:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo_ bar_</span>
+<pre data-sourcepos="6821:1-6825:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;&lt;em&gt;foo&lt;/em&gt; bar&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6833:1-6837:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo *bar**</span>
+<pre data-sourcepos="6828:1-6832:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo &lt;em&gt;bar&lt;/em&gt;&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6840:1-6844:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo **bar** baz*</span>
+<pre data-sourcepos="6835:1-6839:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo &lt;strong&gt;bar&lt;/strong&gt; baz&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6846:1-6850:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo**bar**baz*</span>
+<pre data-sourcepos="6841:1-6845:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo&lt;strong&gt;bar&lt;/strong&gt;baz&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6852:1-6852:51" dir="auto">Note that in the preceding case, the interpretation</p>
+<p data-sourcepos="6847:1-6847: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="6854:1-6856:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="nt">&lt;p&gt;&lt;em&gt;</span>foo<span class="nt">&lt;/em&gt;&lt;em&gt;</span>bar<span class="nt">&lt;em&gt;&lt;/em&gt;</span>baz<span class="nt">&lt;/em&gt;&lt;/p&gt;</span></span></code></pre>
+<pre data-sourcepos="6849:1-6851:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="nt">&lt;p&gt;&lt;em&gt;</span>foo<span class="nt">&lt;/em&gt;&lt;em&gt;</span>bar<span class="nt">&lt;em&gt;&lt;/em&gt;</span>baz<span class="nt">&lt;/em&gt;&lt;/p&gt;</span></span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6859:1-6864:32" dir="auto">is precluded by the condition that a delimiter that
+<p data-sourcepos="6854:1-6859: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="6867:1-6868:34" dir="auto">For the same reason, we don't get two consecutive
+<p data-sourcepos="6862:1-6863:34" dir="auto">For the same reason, we don't get two consecutive
emphasis sections in this example:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6870:1-6874:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo**bar*</span>
+<pre data-sourcepos="6865:1-6869:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo**bar&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6877:1-6880:8" dir="auto">The same condition ensures that the following
+<p data-sourcepos="6872:1-6875: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6883:1-6887:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***foo** bar*</span>
+<pre data-sourcepos="6878:1-6882:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;&lt;strong&gt;foo&lt;/strong&gt; bar&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6890:1-6894:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo **bar***</span>
+<pre data-sourcepos="6885:1-6889:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo &lt;strong&gt;bar&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6897:1-6901:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo**bar***</span>
+<pre data-sourcepos="6892:1-6896:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo&lt;strong&gt;bar&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6904:1-6906:34" dir="auto">When the lengths of the interior closing and opening
+<p data-sourcepos="6899:1-6901: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6908:1-6912:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo***bar***baz</span>
+<pre data-sourcepos="6903:1-6907:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo&lt;em&gt;&lt;strong&gt;bar&lt;/strong&gt;&lt;/em&gt;baz&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6914:1-6918:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo******bar*********baz</span>
+<pre data-sourcepos="6909:1-6913:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;bar&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;***baz&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6921:1-6921:42" dir="auto">Indefinite levels of nesting are possible:</p>
+<p data-sourcepos="6916:1-6916:42" dir="auto">Indefinite levels of nesting are possible:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6923:1-6927:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo **bar *baz* bim** bop*</span>
+<pre data-sourcepos="6918:1-6922:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo **bar *baz* bim** bop*</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;em&gt;foo &lt;strong&gt;bar &lt;em&gt;baz&lt;/em&gt; bim&lt;/strong&gt; bop&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6930:1-6934:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo [*bar*](/url)*</span>
+<pre data-sourcepos="6925:1-6929:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo [*bar*](/url)*</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;em&gt;foo &lt;a href="/url"&gt;&lt;em&gt;bar&lt;/em&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6937:1-6937:50" dir="auto">There can be no empty emphasis or strong emphasis:</p>
+<p data-sourcepos="6932:1-6932:50" dir="auto">There can be no empty emphasis or strong emphasis:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6939:1-6943:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">** is not an empty emphasis</span>
+<pre data-sourcepos="6934:1-6938:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">** is not an empty emphasis</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;** is not an empty emphasis&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6946:1-6950:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**** is not an empty strong emphasis</span>
+<pre data-sourcepos="6941:1-6945:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**** is not an empty strong emphasis</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;**** is not an empty strong emphasis&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6954:1-6954:8" dir="auto">Rule 10:</p>
-<p data-sourcepos="6956:1-6957:25" dir="auto">Any nonempty sequence of inline elements can be the contents of an
+<p data-sourcepos="6949:1-6949:8" dir="auto">Rule 10:</p>
+<p data-sourcepos="6951:1-6952:25" dir="auto">Any nonempty sequence of inline elements can be the contents of an
strongly emphasized span.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6959:1-6963:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo [bar](/url)**</span>
+<pre data-sourcepos="6954:1-6958:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo [bar](/url)**</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;strong&gt;foo &lt;a href="/url"&gt;bar&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6966:1-6972:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo</span>
+<pre data-sourcepos="6961:1-6967:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;foo</span>
<span id="LC5" class="line" lang="plaintext">bar&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="6975:1-6976:23" dir="auto">In particular, emphasis and strong emphasis can be nested
+<p data-sourcepos="6970:1-6971:23" dir="auto">In particular, emphasis and strong emphasis can be nested
inside strong emphasis:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6978:1-6982:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo _bar_ baz__</span>
+<pre data-sourcepos="6973:1-6977:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;foo &lt;em&gt;bar&lt;/em&gt; baz&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6985:1-6989:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo __bar__ baz__</span>
+<pre data-sourcepos="6980:1-6984:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;foo &lt;strong&gt;bar&lt;/strong&gt; baz&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6992:1-6996:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">____foo__ bar__</span>
+<pre data-sourcepos="6987:1-6991:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;&lt;strong&gt;foo&lt;/strong&gt; bar&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="6999:1-7003:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo **bar****</span>
+<pre data-sourcepos="6994:1-6998:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;foo &lt;strong&gt;bar&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7006:1-7010:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo *bar* baz**</span>
+<pre data-sourcepos="7001:1-7005:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;foo &lt;em&gt;bar&lt;/em&gt; baz&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7013:1-7017:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo*bar*baz**</span>
+<pre data-sourcepos="7008:1-7012:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;foo&lt;em&gt;bar&lt;/em&gt;baz&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7020:1-7024:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***foo* bar**</span>
+<pre data-sourcepos="7015:1-7019:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;&lt;em&gt;foo&lt;/em&gt; bar&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7027:1-7031:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo *bar***</span>
+<pre data-sourcepos="7022:1-7026:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;foo &lt;em&gt;bar&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7034:1-7034:42" dir="auto">Indefinite levels of nesting are possible:</p>
+<p data-sourcepos="7029:1-7029:42" dir="auto">Indefinite levels of nesting are possible:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7036:1-7042:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo *bar **baz**</span>
+<pre data-sourcepos="7031:1-7037:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;&lt;strong&gt;foo &lt;em&gt;bar &lt;strong&gt;baz&lt;/strong&gt;</span>
@@ -6248,334 +6245,334 @@ inside strong emphasis:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7045:1-7049:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo [*bar*](/url)**</span>
+<pre data-sourcepos="7040:1-7044:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo [*bar*](/url)**</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;strong&gt;foo &lt;a href="/url"&gt;&lt;em&gt;bar&lt;/em&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7052:1-7052:50" dir="auto">There can be no empty emphasis or strong emphasis:</p>
+<p data-sourcepos="7047:1-7047:50" dir="auto">There can be no empty emphasis or strong emphasis:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7054:1-7058:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__ is not an empty emphasis</span>
+<pre data-sourcepos="7049:1-7053:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__ is not an empty emphasis</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;__ is not an empty emphasis&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7061:1-7065:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">____ is not an empty strong emphasis</span>
+<pre data-sourcepos="7056:1-7060:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">____ is not an empty strong emphasis</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;____ is not an empty strong emphasis&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7069:1-7069:8" dir="auto">Rule 11:</p>
+<p data-sourcepos="7064:1-7064:8" dir="auto">Rule 11:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7071:1-7075:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo ***</span>
+<pre data-sourcepos="7066:1-7070:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo ***&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7078:1-7082:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo *\**</span>
+<pre data-sourcepos="7073:1-7077:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo &lt;em&gt;*&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7085:1-7089:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo *_*</span>
+<pre data-sourcepos="7080:1-7084:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo &lt;em&gt;_&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7092:1-7096:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo *****</span>
+<pre data-sourcepos="7087:1-7091:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo *****&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7099:1-7103:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo **\***</span>
+<pre data-sourcepos="7094:1-7098:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo &lt;strong&gt;*&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7106:1-7110:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo **_**</span>
+<pre data-sourcepos="7101:1-7105:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo &lt;strong&gt;_&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7113:1-7115:32" dir="auto">Note that when delimiters do not match evenly, Rule 11 determines
+<p data-sourcepos="7108:1-7110: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7117:1-7121:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo*</span>
+<pre data-sourcepos="7112:1-7116:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;*&lt;em&gt;foo&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7124:1-7128:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo**</span>
+<pre data-sourcepos="7119:1-7123:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo&lt;/em&gt;*&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7131:1-7135:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***foo**</span>
+<pre data-sourcepos="7126:1-7130:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;*&lt;strong&gt;foo&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7138:1-7142:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">****foo*</span>
+<pre data-sourcepos="7133:1-7137:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;***&lt;em&gt;foo&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7145:1-7149:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo***</span>
+<pre data-sourcepos="7140:1-7144:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;foo&lt;/strong&gt;*&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7152:1-7156:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo****</span>
+<pre data-sourcepos="7147:1-7151:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo&lt;/em&gt;***&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7160:1-7160:8" dir="auto">Rule 12:</p>
+<p data-sourcepos="7155:1-7155:8" dir="auto">Rule 12:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7162:1-7166:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo ___</span>
+<pre data-sourcepos="7157:1-7161:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo ___&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7169:1-7173:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo _\__</span>
+<pre data-sourcepos="7164:1-7168:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo &lt;em&gt;_&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7176:1-7180:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo _*_</span>
+<pre data-sourcepos="7171:1-7175:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo &lt;em&gt;*&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7183:1-7187:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo _____</span>
+<pre data-sourcepos="7178:1-7182:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo _____&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7190:1-7194:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo __\___</span>
+<pre data-sourcepos="7185:1-7189:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo &lt;strong&gt;_&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7197:1-7201:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo __*__</span>
+<pre data-sourcepos="7192:1-7196:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo &lt;strong&gt;*&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7204:1-7208:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo_</span>
+<pre data-sourcepos="7199:1-7203:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;_&lt;em&gt;foo&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7211:1-7213:32" dir="auto">Note that when delimiters do not match evenly, Rule 12 determines
+<p data-sourcepos="7206:1-7208: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7215:1-7219:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo__</span>
+<pre data-sourcepos="7210:1-7214:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo&lt;/em&gt;_&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7222:1-7226:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">___foo__</span>
+<pre data-sourcepos="7217:1-7221:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;_&lt;strong&gt;foo&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7229:1-7233:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">____foo_</span>
+<pre data-sourcepos="7224:1-7228:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;___&lt;em&gt;foo&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7236:1-7240:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo___</span>
+<pre data-sourcepos="7231:1-7235:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;foo&lt;/strong&gt;_&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7243:1-7247:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo____</span>
+<pre data-sourcepos="7238:1-7242:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo&lt;/em&gt;___&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7250:1-7251:44" dir="auto">Rule 13 implies that if you want emphasis nested directly inside
+<p data-sourcepos="7245:1-7246:44" dir="auto">Rule 13 implies that if you want emphasis nested directly inside
emphasis, you must use different delimiters:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7253:1-7257:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo**</span>
+<pre data-sourcepos="7248:1-7252:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;foo&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7260:1-7264:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*_foo_*</span>
+<pre data-sourcepos="7255:1-7259:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;&lt;em&gt;foo&lt;/em&gt;&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7267:1-7271:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__foo__</span>
+<pre data-sourcepos="7262:1-7266:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;foo&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7274:1-7278:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_*foo*_</span>
+<pre data-sourcepos="7269:1-7273:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;&lt;em&gt;foo&lt;/em&gt;&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7281:1-7282:21" dir="auto">However, strong emphasis within strong emphasis is possible without
+<p data-sourcepos="7276:1-7277:21" dir="auto">However, strong emphasis within strong emphasis is possible without
switching delimiters:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7284:1-7288:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">****foo****</span>
+<pre data-sourcepos="7279:1-7283:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;&lt;strong&gt;foo&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7291:1-7295:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">____foo____</span>
+<pre data-sourcepos="7286:1-7290:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;&lt;strong&gt;foo&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7299:1-7300:11" dir="auto">Rule 13 can be applied to arbitrarily long sequences of
+<p data-sourcepos="7294:1-7295:11" dir="auto">Rule 13 can be applied to arbitrarily long sequences of
delimiters:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7302:1-7306:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">******foo******</span>
+<pre data-sourcepos="7297:1-7301:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;strong&gt;&lt;strong&gt;&lt;strong&gt;foo&lt;/strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7309:1-7309:8" dir="auto">Rule 14:</p>
+<p data-sourcepos="7304:1-7304:8" dir="auto">Rule 14:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7311:1-7315:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">***foo***</span>
+<pre data-sourcepos="7306:1-7310:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;&lt;strong&gt;foo&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7318:1-7322:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_____foo_____</span>
+<pre data-sourcepos="7313:1-7317:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;&lt;strong&gt;&lt;strong&gt;foo&lt;/strong&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7325:1-7325:8" dir="auto">Rule 15:</p>
+<p data-sourcepos="7320:1-7320:8" dir="auto">Rule 15:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7327:1-7331:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo _bar* baz_</span>
+<pre data-sourcepos="7322:1-7326:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo _bar&lt;/em&gt; baz_&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7334:1-7338:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo __bar *baz bim__ bam*</span>
+<pre data-sourcepos="7329:1-7333:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo __bar *baz bim__ bam*</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;em&gt;foo &lt;strong&gt;bar *baz bim&lt;/strong&gt; bam&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7341:1-7341:8" dir="auto">Rule 16:</p>
+<p data-sourcepos="7336:1-7336:8" dir="auto">Rule 16:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7343:1-7347:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**foo **bar baz**</span>
+<pre data-sourcepos="7338:1-7342:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;**foo &lt;strong&gt;bar baz&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7350:1-7354:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo *bar baz*</span>
+<pre data-sourcepos="7345:1-7349:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;*foo &lt;em&gt;bar baz&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7357:1-7357:8" dir="auto">Rule 17:</p>
+<p data-sourcepos="7352:1-7352:8" dir="auto">Rule 17:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7359:1-7363:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*[bar*](/url)</span>
+<pre data-sourcepos="7354:1-7358:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*[bar*](/url)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;*&lt;a href="/url"&gt;bar*&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7366:1-7370:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo [bar_](/url)</span>
+<pre data-sourcepos="7361:1-7365:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_foo [bar_](/url)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;_foo &lt;a href="/url"&gt;bar_&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7373:1-7377:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*&lt;img src="foo" title="*"/&gt;</span>
+<pre data-sourcepos="7368:1-7372:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*&lt;img src="foo" title="*"/&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;*&lt;img src="foo" title="*"/&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7380:1-7384:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**&lt;a href="**"&gt;</span>
+<pre data-sourcepos="7375:1-7379:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**&lt;a href="**"&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;**&lt;a href="**"&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7387:1-7391:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__&lt;a href="__"&gt;</span>
+<pre data-sourcepos="7382:1-7386:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__&lt;a href="__"&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;__&lt;a href="__"&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7394:1-7398:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*a `*`*</span>
+<pre data-sourcepos="7389:1-7393:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;a &lt;code&gt;*&lt;/code&gt;&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7401:1-7405:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">_a `_`_</span>
+<pre data-sourcepos="7396:1-7400:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;a &lt;code&gt;_&lt;/code&gt;&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7408:1-7412:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**a&lt;http://foo.bar/?q=**&gt;</span>
+<pre data-sourcepos="7403:1-7407:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">**a&lt;http://foo.bar/?q=**&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;**a&lt;a href="http://foo.bar/?q=**"&gt;http://foo.bar/?q=**&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7415:1-7419:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__a&lt;http://foo.bar/?q=__&gt;</span>
+<pre data-sourcepos="7410:1-7414:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__a&lt;http://foo.bar/?q=__&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;__a&lt;a href="http://foo.bar/?q=__"&gt;http://foo.bar/?q=__&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div>
-<h2 data-sourcepos="7424:1-7424:28">
+<h2 data-sourcepos="7419:1-7419:28">
<a id="user-content-strikethrough-extension" class="anchor" href="#strikethrough-extension" aria-hidden="true"></a>Strikethrough (extension)</h2>
-<p data-sourcepos="7426:1-7427:10">GFM enables the <code>strikethrough</code> extension, where an additional emphasis type is
+<p data-sourcepos="7421:1-7422:10">GFM enables the <code>strikethrough</code> extension, where an additional emphasis type is
available.</p>
-<p data-sourcepos="7429:1-7429:59">Strikethrough text is any text wrapped in two tildes (<code>~</code>).</p>
+<p data-sourcepos="7424:1-7424:59">Strikethrough text is any text wrapped in two tildes (<code>~</code>).</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7431:1-7435:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~Hi~~ Hello, world!</span>
+<pre data-sourcepos="7426:1-7430:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">~~Hi~~ Hello, world!</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;del&gt;Hi&lt;/del&gt; Hello, world!&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7437:1-7438:17">As with regular emphasis delimiters, a new paragraph will cause strikethrough
+<p data-sourcepos="7432:1-7433:17">As with regular emphasis delimiters, a new paragraph will cause strikethrough
parsing to cease:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7440:1-7447:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">This ~~has a</span>
+<pre data-sourcepos="7435:1-7442:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -6584,49 +6581,49 @@ parsing to cease:</p>
<copy-code></copy-code>
</div>
</div>
-<h2 data-sourcepos="7451:1-7451:8" dir="auto">
+<h2 data-sourcepos="7446:1-7446:8" dir="auto">
<a id="user-content-links" class="anchor" href="#links" aria-hidden="true"></a>Links</h2>
-<p data-sourcepos="7453:1-7458:13" dir="auto">A link contains [link text] (the visible text), a [link destination]
+<p data-sourcepos="7448:1-7453: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="7460:1-7462:22" dir="auto">A <a href="@">link text</a> consists of a sequence of zero or more
+<p data-sourcepos="7455:1-7457: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="7464:1-7480:0" dir="auto">
-<li data-sourcepos="7464:1-7467:0">
-<p data-sourcepos="7464:3-7466:43">Links may not contain other links, at any level of nesting. If
+<ul data-sourcepos="7459:1-7475:0" dir="auto">
+<li data-sourcepos="7459:1-7462:0">
+<p data-sourcepos="7459:3-7461: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="7468:1-7472:0">
-<p data-sourcepos="7468:3-7471:22">Brackets are allowed in the [link text] only if (a) they
+<li data-sourcepos="7463:1-7467:0">
+<p data-sourcepos="7463:3-7466: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="7473:1-7477:0">
-<p data-sourcepos="7473:3-7476:25">Backtick [code spans], [autolinks], and raw [HTML tags] bind more tightly
+<li data-sourcepos="7468:1-7472:0">
+<p data-sourcepos="7468:3-7471: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="7478:1-7480:0">
-<p data-sourcepos="7478:3-7479:78">The brackets in link text bind more tightly than markers for
+<li data-sourcepos="7473:1-7475:0">
+<p data-sourcepos="7473:3-7474: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="7481:1-7481:42" dir="auto">A <a href="@">link destination</a> consists of either</p>
-<ul data-sourcepos="7483:1-7494:0" dir="auto">
-<li data-sourcepos="7483:1-7486:0">
-<p data-sourcepos="7483:3-7485:27">a sequence of zero or more characters between an opening <code>&lt;</code> and a
+<p data-sourcepos="7476:1-7476:42" dir="auto">A <a href="@">link destination</a> consists of either</p>
+<ul data-sourcepos="7478:1-7489:0" dir="auto">
+<li data-sourcepos="7478:1-7481:0">
+<p data-sourcepos="7478:3-7480:27">a sequence of zero or more characters between an opening <code>&lt;</code> and a
closing <code>&gt;</code> that contains no line breaks or unescaped
<code>&lt;</code> or <code>&gt;</code> characters, or</p>
</li>
-<li data-sourcepos="7487:1-7494:0">
-<p data-sourcepos="7487:3-7493:23">a nonempty sequence of characters that does not start with
+<li data-sourcepos="7482:1-7489:0">
+<p data-sourcepos="7482:3-7488:23">a nonempty sequence of characters that does not start with
<code>&lt;</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.
@@ -6635,27 +6632,27 @@ avoid performance issues, but at least three levels of nesting
should be supported.)</p>
</li>
</ul>
-<p data-sourcepos="7495:1-7495:37" dir="auto">A <a href="@">link title</a> consists of either</p>
-<ul data-sourcepos="7497:1-7508:0" dir="auto">
-<li data-sourcepos="7497:1-7500:0">
-<p data-sourcepos="7497:3-7499:23">a sequence of zero or more characters between straight double-quote
+<p data-sourcepos="7490:1-7490:37" dir="auto">A <a href="@">link title</a> consists of either</p>
+<ul data-sourcepos="7492:1-7503:0" dir="auto">
+<li data-sourcepos="7492:1-7495:0">
+<p data-sourcepos="7492:3-7494: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="7501:1-7504:0">
-<p data-sourcepos="7501:3-7503:23">a sequence of zero or more characters between straight single-quote
+<li data-sourcepos="7496:1-7499:0">
+<p data-sourcepos="7496:3-7498: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="7505:1-7508:0">
-<p data-sourcepos="7505:3-7507:20">a sequence of zero or more characters between matching parentheses
+<li data-sourcepos="7500:1-7503:0">
+<p data-sourcepos="7500:3-7502: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="7509:1-7510:15" dir="auto">Although [link titles] may span multiple lines, they may not contain
+<p data-sourcepos="7504:1-7505:15" dir="auto">Although [link titles] may span multiple lines, they may not contain
a [blank line].</p>
-<p data-sourcepos="7512:1-7522:6" dir="auto">An <a href="@">inline link</a> consists of a [link text] followed immediately
+<p data-sourcepos="7507:1-7517: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
@@ -6666,51 +6663,51 @@ 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="7524:1-7524:29" dir="auto">Here is a simple inline link:</p>
+<p data-sourcepos="7519:1-7519:29" dir="auto">Here is a simple inline link:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7526:1-7530:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/uri "title")</span>
+<pre data-sourcepos="7521:1-7525:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/uri "title")</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/uri" title="title"&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7533:1-7533:25" dir="auto">The title may be omitted:</p>
+<p data-sourcepos="7528:1-7528:25" dir="auto">The title may be omitted:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7535:1-7539:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/uri)</span>
+<pre data-sourcepos="7530:1-7534:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/uri"&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7542:1-7542:50" dir="auto">Both the title and the destination may be omitted:</p>
+<p data-sourcepos="7537:1-7537:50" dir="auto">Both the title and the destination may be omitted:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7544:1-7548:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link]()</span>
+<pre data-sourcepos="7539:1-7543:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link]()</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href=""&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7551:1-7555:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](&lt;&gt;)</span>
+<pre data-sourcepos="7546:1-7550:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](&lt;&gt;)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href=""&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7557:1-7558:28" dir="auto">The destination can only contain spaces if it is
+<p data-sourcepos="7552:1-7553:28" dir="auto">The destination can only contain spaces if it is
enclosed in pointy brackets:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7560:1-7564:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/my uri)</span>
+<pre data-sourcepos="7555:1-7559:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/my uri)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;[link](/my uri)&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7566:1-7570:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](&lt;/my uri&gt;)</span>
+<pre data-sourcepos="7561:1-7565:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](&lt;/my uri&gt;)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/my%20uri"&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7572:1-7573:36" dir="auto">The destination cannot contain line breaks,
+<p data-sourcepos="7567:1-7568:36" dir="auto">The destination cannot contain line breaks,
even if enclosed in pointy brackets:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7575:1-7581:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo</span>
+<pre data-sourcepos="7570:1-7576:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;[link](foo</span>
@@ -6718,32 +6715,32 @@ even if enclosed in pointy brackets:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7583:1-7589:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](&lt;foo</span>
+<pre data-sourcepos="7578:1-7584:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](&lt;foo</span>
<span id="LC2" class="line" lang="plaintext">bar&gt;)</span>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;[link](&lt;foo</span>
<span id="LC5" class="line" lang="plaintext">bar&gt;)&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7591:1-7592:19" dir="auto">The destination can contain <code>)</code> if it is enclosed
+<p data-sourcepos="7586:1-7587:19" dir="auto">The destination can contain <code>)</code> if it is enclosed
in pointy brackets:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7594:1-7598:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[a](&lt;b)c&gt;)</span>
+<pre data-sourcepos="7589:1-7593:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[a](&lt;b)c&gt;)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="b)c"&gt;a&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7600:1-7600:53" dir="auto">Pointy brackets that enclose links must be unescaped:</p>
+<p data-sourcepos="7595:1-7595:53" dir="auto">Pointy brackets that enclose links must be unescaped:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7602:1-7606:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](&lt;foo\&gt;)</span>
+<pre data-sourcepos="7597:1-7601:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](&lt;foo\&gt;)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;[link](&amp;lt;foo&amp;gt;)&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7608:1-7609:24" dir="auto">These are not links, because the opening pointy bracket
+<p data-sourcepos="7603:1-7604:24" dir="auto">These are not links, because the opening pointy bracket
is not matched properly:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7611:1-7619:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[a](&lt;b)c</span>
+<pre data-sourcepos="7606:1-7614:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[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](&lt;b&gt;c)</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -6752,46 +6749,46 @@ is not matched properly:</p>
<span id="LC7" class="line" lang="plaintext">[a](&lt;b&gt;c)&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7621:1-7621:55" dir="auto">Parentheses inside the link destination may be escaped:</p>
+<p data-sourcepos="7616:1-7616:55" dir="auto">Parentheses inside the link destination may be escaped:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7623:1-7627:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](\(foo\))</span>
+<pre data-sourcepos="7618:1-7622:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="(foo)"&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7629:1-7630:9" dir="auto">Any number of parentheses are allowed without escaping, as long as they are
+<p data-sourcepos="7624:1-7625:9" dir="auto">Any number of parentheses are allowed without escaping, as long as they are
balanced:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7632:1-7636:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo(and(bar)))</span>
+<pre data-sourcepos="7627:1-7631:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo(and(bar)))</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="foo(and(bar))"&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7638:1-7639:13" dir="auto">However, if you have unbalanced parentheses, you need to escape or use the
+<p data-sourcepos="7633:1-7634:13" dir="auto">However, if you have unbalanced parentheses, you need to escape or use the
<code>&lt;...&gt;</code> form:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7641:1-7645:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo\(and\(bar\))</span>
+<pre data-sourcepos="7636:1-7640:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo\(and\(bar\))</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="foo(and(bar)"&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7648:1-7652:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](&lt;foo(and(bar)&gt;)</span>
+<pre data-sourcepos="7643:1-7647:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](&lt;foo(and(bar)&gt;)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="foo(and(bar)"&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7655:1-7656:12" dir="auto">Parentheses and other symbols can also be escaped, as usual
+<p data-sourcepos="7650:1-7651:12" dir="auto">Parentheses and other symbols can also be escaped, as usual
in Markdown:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7658:1-7662:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo\)\:)</span>
+<pre data-sourcepos="7653:1-7657:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="foo):"&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7665:1-7665:52" dir="auto">A link can contain fragment identifiers and queries:</p>
+<p data-sourcepos="7660:1-7660:52" dir="auto">A link can contain fragment identifiers and queries:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7667:1-7677:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](#fragment)</span>
+<pre data-sourcepos="7662:1-7672:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -6802,15 +6799,15 @@ in Markdown:</p>
<span id="LC9" class="line" lang="plaintext">&lt;p&gt;&lt;a href="http://example.com?foo=3#frag"&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7680:1-7681:17" dir="auto">Note that a backslash before a non-escapable character is
+<p data-sourcepos="7675:1-7676:17" dir="auto">Note that a backslash before a non-escapable character is
just a backslash:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7683:1-7687:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo\bar)</span>
+<pre data-sourcepos="7678:1-7682:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo\bar)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="foo%5Cbar"&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7690:1-7697:52" dir="auto">URL-escaping should be left alone inside the destination, as all
+<p data-sourcepos="7685:1-7692: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
@@ -6819,23 +6816,23 @@ 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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7699:1-7703:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo%20b&amp;auml;)</span>
+<pre data-sourcepos="7694:1-7698:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](foo%20b&amp;auml;)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="foo%20b%C3%A4"&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7706:1-7708:23" dir="auto">Note that, because titles can often be parsed as destinations,
+<p data-sourcepos="7701:1-7703: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7710:1-7714:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link]("title")</span>
+<pre data-sourcepos="7705:1-7709:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link]("title")</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="%22title%22"&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7717:1-7717:62" dir="auto">Titles may be in single quotes, double quotes, or parentheses:</p>
+<p data-sourcepos="7712:1-7712:62" dir="auto">Titles may be in single quotes, double quotes, or parentheses:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7719:1-7727:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url "title")</span>
+<pre data-sourcepos="7714:1-7722:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -6844,37 +6841,37 @@ get unexpected results:</p>
<span id="LC7" class="line" lang="plaintext">&lt;a href="/url" title="title"&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7730:1-7731:22" dir="auto">Backslash escapes and entity and numeric character references
+<p data-sourcepos="7725:1-7726:22" dir="auto">Backslash escapes and entity and numeric character references
may be used in titles:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7733:1-7737:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url "title \"&amp;quot;")</span>
+<pre data-sourcepos="7728:1-7732:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url "title \"&amp;quot;")</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/url" title="title &amp;quot;&amp;quot;"&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7740:1-7741:64" dir="auto">Titles must be separated from the link using a [whitespace].
+<p data-sourcepos="7735:1-7736: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7743:1-7747:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url "title")</span>
+<pre data-sourcepos="7738:1-7742:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/url%C2%A0%22title%22"&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7750:1-7750:56" dir="auto">Nested balanced quotes are not allowed without escaping:</p>
+<p data-sourcepos="7745:1-7745:56" dir="auto">Nested balanced quotes are not allowed without escaping:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7752:1-7756:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url "title "and" title")</span>
+<pre data-sourcepos="7747:1-7751:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url "title "and" title")</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;[link](/url &amp;quot;title &amp;quot;and&amp;quot; title&amp;quot;)&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7759:1-7759:67" dir="auto">But it is easy to work around this by using a different quote type:</p>
+<p data-sourcepos="7754:1-7754:67" dir="auto">But it is easy to work around this by using a different quote type:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7761:1-7765:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url 'title "and" title')</span>
+<pre data-sourcepos="7756:1-7760:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link](/url 'title "and" title')</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/url" title="title &amp;quot;and&amp;quot; title"&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7768:1-7781:61" dir="auto">(Note: <code>Markdown.pl</code> did allow double quotes inside a double-quoted
+<p data-sourcepos="7763:1-7776: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,
@@ -6888,136 +6885,136 @@ 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="7783:1-7783:57" dir="auto">[Whitespace] is allowed around the destination and title:</p>
+<p data-sourcepos="7778:1-7778:57" dir="auto">[Whitespace] is allowed around the destination and title:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7785:1-7790:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link]( /uri</span>
+<pre data-sourcepos="7780:1-7785:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/uri" title="title"&gt;link&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7793:1-7794:22" dir="auto">But it is not allowed between the link text and the
+<p data-sourcepos="7788:1-7789:22" dir="auto">But it is not allowed between the link text and the
following parenthesis:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7796:1-7800:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link] (/uri)</span>
+<pre data-sourcepos="7791:1-7795:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;[link] (/uri)&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7803:1-7804:24" dir="auto">The link text may contain balanced brackets, but not unbalanced ones,
+<p data-sourcepos="7798:1-7799:24" dir="auto">The link text may contain balanced brackets, but not unbalanced ones,
unless they are escaped:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7806:1-7810:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link [foo [bar]]](/uri)</span>
+<pre data-sourcepos="7801:1-7805:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link [foo [bar]]](/uri)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/uri"&gt;link [foo [bar]]&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7813:1-7817:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link] bar](/uri)</span>
+<pre data-sourcepos="7808:1-7812:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link] bar](/uri)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;[link] bar](/uri)&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7820:1-7824:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link [bar](/uri)</span>
+<pre data-sourcepos="7815:1-7819:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link [bar](/uri)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;[link &lt;a href="/uri"&gt;bar&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7827:1-7831:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link \[bar](/uri)</span>
+<pre data-sourcepos="7822:1-7826:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link \[bar](/uri)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/uri"&gt;link [bar&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7834:1-7834:41" dir="auto">The link text may contain inline content:</p>
+<p data-sourcepos="7829:1-7829:41" dir="auto">The link text may contain inline content:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7836:1-7840:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link *foo **bar** `#`*](/uri)</span>
+<pre data-sourcepos="7831:1-7835:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link *foo **bar** `#`*](/uri)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/uri"&gt;link &lt;em&gt;foo &lt;strong&gt;bar&lt;/strong&gt; &lt;code&gt;#&lt;/code&gt;&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7843:1-7847:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[![moon](moon.jpg)](/uri)</span>
+<pre data-sourcepos="7838:1-7842:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[![moon](moon.jpg)](/uri)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/uri"&gt;&lt;img src="moon.jpg" alt="moon" /&gt;&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7850:1-7850:68" dir="auto">However, links may not contain other links, at any level of nesting.</p>
+<p data-sourcepos="7845:1-7845:68" dir="auto">However, links may not contain other links, at any level of nesting.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7852:1-7856:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo [bar](/uri)](/uri)</span>
+<pre data-sourcepos="7847:1-7851:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo [bar](/uri)](/uri)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;[foo &lt;a href="/uri"&gt;bar&lt;/a&gt;](/uri)&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7859:1-7863:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo *[bar [baz](/uri)](/uri)*](/uri)</span>
+<pre data-sourcepos="7854:1-7858:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo *[bar [baz](/uri)](/uri)*](/uri)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;[foo &lt;em&gt;[bar &lt;a href="/uri"&gt;baz&lt;/a&gt;](/uri)&lt;/em&gt;](/uri)&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7866:1-7870:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![[[foo](uri1)](uri2)](uri3)</span>
+<pre data-sourcepos="7861:1-7865:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![[[foo](uri1)](uri2)](uri3)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;img src="uri3" alt="[foo](uri2)" /&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7873:1-7874:18" dir="auto">These cases illustrate the precedence of link text grouping over
+<p data-sourcepos="7868:1-7869:18" dir="auto">These cases illustrate the precedence of link text grouping over
emphasis grouping:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7876:1-7880:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*[foo*](/uri)</span>
+<pre data-sourcepos="7871:1-7875:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*[foo*](/uri)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;*&lt;a href="/uri"&gt;foo*&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7883:1-7887:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo *bar](baz*)</span>
+<pre data-sourcepos="7878:1-7882:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;a href="baz*"&gt;foo *bar&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7890:1-7891:11" dir="auto">Note that brackets that <em>aren't</em> part of links do not take
+<p data-sourcepos="7885:1-7886:11" dir="auto">Note that brackets that <em>aren't</em> part of links do not take
precedence:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7893:1-7897:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo [bar* baz]</span>
+<pre data-sourcepos="7888:1-7892:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo [bar&lt;/em&gt; baz]&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7900:1-7901:33" dir="auto">These cases illustrate the precedence of HTML tags, code spans,
+<p data-sourcepos="7895:1-7896:33" dir="auto">These cases illustrate the precedence of HTML tags, code spans,
and autolinks over link grouping:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7903:1-7907:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo &lt;bar attr="](baz)"&gt;</span>
+<pre data-sourcepos="7898:1-7902:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo &lt;bar attr="](baz)"&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;[foo &lt;bar attr="](baz)"&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7910:1-7914:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo`](/uri)`</span>
+<pre data-sourcepos="7905:1-7909:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo`](/uri)`</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;[foo&lt;code&gt;](/uri)&lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7917:1-7921:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo&lt;http://example.com/?search=](uri)&gt;</span>
+<pre data-sourcepos="7912:1-7916:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo&lt;http://example.com/?search=](uri)&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;[foo&lt;a href="http://example.com/?search=%5D(uri)"&gt;http://example.com/?search=](uri)&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7924:1-7926:41" dir="auto">There are three kinds of <a href="@">reference link</a>s:
+<p data-sourcepos="7919:1-7921: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="7928:1-7930:71" dir="auto">A <a href="@">full reference link</a>
+<p data-sourcepos="7923:1-7925: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="7932:1-7938:9" dir="auto">A <a href="@">link label</a> begins with a left bracket (<code>[</code>) and ends
+<p data-sourcepos="7927:1-7933: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="7940:1-7947:69" dir="auto">One label <a href="@">matches</a>
+<p data-sourcepos="7935:1-7942: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
@@ -7025,24 +7022,24 @@ 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="7949:1-7951:37" dir="auto">The contents of the first link label are parsed as inlines, which are
+<p data-sourcepos="7944:1-7946: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="7953:1-7953:25" dir="auto">Here is a simple example:</p>
+<p data-sourcepos="7948:1-7948:25" dir="auto">Here is a simple example:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7955:1-7961:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][bar]</span>
+<pre data-sourcepos="7950:1-7956:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/url" title="title"&gt;foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7964:1-7965:22" dir="auto">The rules for the [link text] are the same as with
+<p data-sourcepos="7959:1-7960:22" dir="auto">The rules for the [link text] are the same as with
[inline links]. Thus:</p>
-<p data-sourcepos="7967:1-7968:24" dir="auto">The link text may contain balanced brackets, but not unbalanced ones,
+<p data-sourcepos="7962:1-7963:24" dir="auto">The link text may contain balanced brackets, but not unbalanced ones,
unless they are escaped:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7970:1-7976:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link [foo [bar]]][ref]</span>
+<pre data-sourcepos="7965:1-7971:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7050,16 +7047,16 @@ unless they are escaped:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7979:1-7985:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link \[bar][ref]</span>
+<pre data-sourcepos="7974:1-7980:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/uri"&gt;link [bar&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="7988:1-7988:41" dir="auto">The link text may contain inline content:</p>
+<p data-sourcepos="7983:1-7983:41" dir="auto">The link text may contain inline content:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7990:1-7996:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[link *foo **bar** `#`*][ref]</span>
+<pre data-sourcepos="7985:1-7991:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7067,16 +7064,16 @@ unless they are escaped:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="7999:1-8005:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[![moon](moon.jpg)][ref]</span>
+<pre data-sourcepos="7994:1-8000:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/uri"&gt;&lt;img src="moon.jpg" alt="moon" /&gt;&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8008:1-8008:68" dir="auto">However, links may not contain other links, at any level of nesting.</p>
+<p data-sourcepos="8003:1-8003:68" dir="auto">However, links may not contain other links, at any level of nesting.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8010:1-8016:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo [bar](/uri)][ref]</span>
+<pre data-sourcepos="8005:1-8011:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7084,19 +7081,19 @@ unless they are escaped:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8019:1-8025:32" class="code highlight js-syntax-highlight language-plaintext" lang="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="8014:1-8020:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;[foo &lt;em&gt;bar &lt;a href="/uri"&gt;baz&lt;/a&gt;&lt;/em&gt;]&lt;a href="/uri"&gt;ref&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8028:1-8029:38" dir="auto">(In the examples above, we have two [shortcut reference links]
+<p data-sourcepos="8023:1-8024:38" dir="auto">(In the examples above, we have two [shortcut reference links]
instead of one [full reference link].)</p>
-<p data-sourcepos="8031:1-8032:18" dir="auto">The following cases illustrate the precedence of link text grouping over
+<p data-sourcepos="8026:1-8027:18" dir="auto">The following cases illustrate the precedence of link text grouping over
emphasis grouping:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8034:1-8040:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*[foo*][ref]</span>
+<pre data-sourcepos="8029:1-8035:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7104,17 +7101,17 @@ emphasis grouping:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8043:1-8049:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo *bar][ref]</span>
+<pre data-sourcepos="8038:1-8044:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/uri"&gt;foo *bar&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8052:1-8053:33" dir="auto">These cases illustrate the precedence of HTML tags, code spans,
+<p data-sourcepos="8047:1-8048:33" dir="auto">These cases illustrate the precedence of HTML tags, code spans,
and autolinks over link grouping:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8055:1-8061:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo &lt;bar attr="][ref]"&gt;</span>
+<pre data-sourcepos="8050:1-8056:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo &lt;bar attr="][ref]"&gt;</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext">[ref]: /uri</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7122,7 +7119,7 @@ and autolinks over link grouping:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8064:1-8070:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo`][ref]`</span>
+<pre data-sourcepos="8059:1-8065:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7130,35 +7127,35 @@ and autolinks over link grouping:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8073:1-8079:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo&lt;http://example.com/?search=][ref]&gt;</span>
+<pre data-sourcepos="8068:1-8074:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo&lt;http://example.com/?search=][ref]&gt;</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext">[ref]: /uri</span>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;[foo&lt;a href="http://example.com/?search=%5D%5Bref%5D"&gt;http://example.com/?search=][ref]&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8082:1-8082:29" dir="auto">Matching is case-insensitive:</p>
+<p data-sourcepos="8077:1-8077:29" dir="auto">Matching is case-insensitive:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8084:1-8090:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][BaR]</span>
+<pre data-sourcepos="8079:1-8085:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/url" title="title"&gt;foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8093:1-8093:26" dir="auto">Unicode case fold is used:</p>
+<p data-sourcepos="8088:1-8088:26" dir="auto">Unicode case fold is used:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8095:1-8101:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[Толпой][Толпой] is a Russian word.</span>
+<pre data-sourcepos="8090:1-8096:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/url"&gt;Толпой&lt;/a&gt; is a Russian word.&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8104:1-8105:33" dir="auto">Consecutive internal [whitespace] is treated as one space for
+<p data-sourcepos="8099:1-8100:33" dir="auto">Consecutive internal [whitespace] is treated as one space for
purposes of determining matching:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8107:1-8114:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[Foo</span>
+<pre data-sourcepos="8102:1-8109:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -7166,10 +7163,10 @@ purposes of determining matching:</p>
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/url"&gt;Baz&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8117:1-8118:13" dir="auto">No [whitespace] is allowed between the [link text] and the
+<p data-sourcepos="8112:1-8113:13" dir="auto">No [whitespace] is allowed between the [link text] and the
[link label]:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8120:1-8126:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo] [bar]</span>
+<pre data-sourcepos="8115:1-8121:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7177,7 +7174,7 @@ purposes of determining matching:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8129:1-8137:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span>
+<pre data-sourcepos="8124:1-8132:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -7186,7 +7183,7 @@ purposes of determining matching:</p>
<span id="LC7" class="line" lang="plaintext">&lt;a href="/url" title="title"&gt;bar&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8140:1-8149:9" dir="auto">This is a departure from John Gruber's original Markdown syntax
+<p data-sourcepos="8135:1-8144: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
@@ -7197,24 +7194,24 @@ 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="8151:1-8157:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">[foo]</span>
+<pre data-sourcepos="8146:1-8152:3" class="code highlight js-syntax-highlight language-markdown" lang="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="8159:1-8165:20" dir="auto">(Note that [shortcut reference links] were introduced by Gruber
+<p data-sourcepos="8154:1-8160: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="8167:1-8168:18" dir="auto">When there are multiple matching [link reference definitions],
+<p data-sourcepos="8162:1-8163:18" dir="auto">When there are multiple matching [link reference definitions],
the first is used:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8170:1-8178:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]: /url1</span>
+<pre data-sourcepos="8165:1-8173:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -7223,21 +7220,21 @@ the first is used:</p>
<span id="LC7" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/url1"&gt;bar&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8181:1-8183:40" dir="auto">Note that matching is performed on normalized strings, not parsed
+<p data-sourcepos="8176:1-8178: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8185:1-8191:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[bar][foo\!]</span>
+<pre data-sourcepos="8180:1-8186:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;[bar][foo!]&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8194:1-8195:18" dir="auto">[Link labels] cannot contain brackets, unless they are
+<p data-sourcepos="8189:1-8190:18" dir="auto">[Link labels] cannot contain brackets, unless they are
backslash-escaped:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8197:1-8204:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][ref[]</span>
+<pre data-sourcepos="8192:1-8199:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7246,7 +7243,7 @@ backslash-escaped:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8207:1-8214:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][ref[bar]]</span>
+<pre data-sourcepos="8202:1-8209:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7255,7 +7252,7 @@ backslash-escaped:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8217:1-8224:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[[[foo]]]</span>
+<pre data-sourcepos="8212:1-8219:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7264,25 +7261,25 @@ backslash-escaped:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8227:1-8233:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][ref\[]</span>
+<pre data-sourcepos="8222:1-8228:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/uri"&gt;foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8236:1-8236:55" dir="auto">Note that in this example <code>]</code> is not backslash-escaped:</p>
+<p data-sourcepos="8231:1-8231:55" dir="auto">Note that in this example <code>]</code> is not backslash-escaped:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8238:1-8244:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[bar\\]: /uri</span>
+<pre data-sourcepos="8233:1-8239:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/uri"&gt;bar\&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8247:1-8247:68" dir="auto">A [link label] must contain at least one [non-whitespace character]:</p>
+<p data-sourcepos="8242:1-8242:68" dir="auto">A [link label] must contain at least one [non-whitespace character]:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8249:1-8256:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[]</span>
+<pre data-sourcepos="8244:1-8251:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7291,7 +7288,7 @@ backslash-escaped:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8259:1-8270:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[</span>
+<pre data-sourcepos="8254:1-8265:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -7303,7 +7300,7 @@ backslash-escaped:</p>
<span id="LC10" class="line" lang="plaintext">]: /uri&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8273:1-8280:40" dir="auto">A <a href="@">collapsed reference link</a>
+<p data-sourcepos="8268:1-8275: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>.
@@ -7312,7 +7309,7 @@ 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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8282:1-8288:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][]</span>
+<pre data-sourcepos="8277:1-8283:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7320,26 +7317,26 @@ provided by the matching reference link definition. Thus,
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8291:1-8297:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[*foo* bar][]</span>
+<pre data-sourcepos="8286:1-8292:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/url" title="title"&gt;&lt;em&gt;foo&lt;/em&gt; bar&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8300:1-8300:37" dir="auto">The link labels are case-insensitive:</p>
+<p data-sourcepos="8295:1-8295:37" dir="auto">The link labels are case-insensitive:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8302:1-8308:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[Foo][]</span>
+<pre data-sourcepos="8297:1-8303:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/url" title="title"&gt;Foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8312:1-8313:41" dir="auto">As with full reference links, [whitespace] is not
+<p data-sourcepos="8307:1-8308:41" dir="auto">As with full reference links, [whitespace] is not
allowed between the two sets of brackets:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8315:1-8323:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo] </span>
+<pre data-sourcepos="8310:1-8318:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -7348,7 +7345,7 @@ allowed between the two sets of brackets:</p>
<span id="LC7" class="line" lang="plaintext">[]&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8326:1-8333:41" dir="auto">A <a href="@">shortcut reference link</a>
+<p data-sourcepos="8321:1-8328: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.
@@ -7357,7 +7354,7 @@ 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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8335:1-8341:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]</span>
+<pre data-sourcepos="8330:1-8336:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7365,7 +7362,7 @@ Thus, <code>[foo]</code> is equivalent to <code>[foo][]</code>.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8344:1-8350:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[*foo* bar]</span>
+<pre data-sourcepos="8339:1-8345:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7373,7 +7370,7 @@ Thus, <code>[foo]</code> is equivalent to <code>[foo][]</code>.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8353:1-8359:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[[*foo* bar]]</span>
+<pre data-sourcepos="8348:1-8354:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7381,55 +7378,55 @@ Thus, <code>[foo]</code> is equivalent to <code>[foo][]</code>.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8362:1-8368:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[[bar [foo]</span>
+<pre data-sourcepos="8357:1-8363:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;[[bar &lt;a href="/url"&gt;foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8371:1-8371:37" dir="auto">The link labels are case-insensitive:</p>
+<p data-sourcepos="8366:1-8366:37" dir="auto">The link labels are case-insensitive:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8373:1-8379:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[Foo]</span>
+<pre data-sourcepos="8368:1-8374:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/url" title="title"&gt;Foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8382:1-8382:48" dir="auto">A space after the link text should be preserved:</p>
+<p data-sourcepos="8377:1-8377:48" dir="auto">A space after the link text should be preserved:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8384:1-8390:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo] bar</span>
+<pre data-sourcepos="8379:1-8385:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/url"&gt;foo&lt;/a&gt; bar&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8393:1-8394:31" dir="auto">If you just want bracketed text, you can backslash-escape the
+<p data-sourcepos="8388:1-8389:31" dir="auto">If you just want bracketed text, you can backslash-escape the
opening bracket to avoid links:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8396:1-8402:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\[foo]</span>
+<pre data-sourcepos="8391:1-8397:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;[foo]&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8405:1-8406:26" dir="auto">Note that this is a link, because a link label ends with the first
+<p data-sourcepos="8400:1-8401:26" dir="auto">Note that this is a link, because a link label ends with the first
following closing bracket:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8408:1-8414:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo*]: /url</span>
+<pre data-sourcepos="8403:1-8409:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;*&lt;a href="/url"&gt;foo*&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8417:1-8418:11" dir="auto">Full and compact references take precedence over shortcut
+<p data-sourcepos="8412:1-8413:11" dir="auto">Full and compact references take precedence over shortcut
references:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8420:1-8427:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][bar]</span>
+<pre data-sourcepos="8415:1-8422:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -7438,16 +7435,16 @@ references:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8429:1-8435:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][]</span>
+<pre data-sourcepos="8424:1-8430:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/url1"&gt;foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8437:1-8437:34" dir="auto">Inline links also take precedence:</p>
+<p data-sourcepos="8432:1-8432:34" dir="auto">Inline links also take precedence:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8439:1-8445:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo]()</span>
+<pre data-sourcepos="8434:1-8440:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7455,27 +7452,27 @@ references:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8447:1-8453:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo](not a link)</span>
+<pre data-sourcepos="8442:1-8448:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/url1"&gt;foo&lt;/a&gt;(not a link)&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8455:1-8456:23" dir="auto">In the following case <code>[bar][baz]</code> is parsed as a reference,
+<p data-sourcepos="8450:1-8451:23" dir="auto">In the following case <code>[bar][baz]</code> is parsed as a reference,
<code>[foo]</code> as normal text:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8458:1-8464:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][bar][baz]</span>
+<pre data-sourcepos="8453:1-8459:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;[foo]&lt;a href="/url"&gt;bar&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8467:1-8468:19" dir="auto">Here, though, <code>[foo][bar]</code> is parsed as a reference, since
+<p data-sourcepos="8462:1-8463:19" dir="auto">Here, though, <code>[foo][bar]</code> is parsed as a reference, since
<code>[bar]</code> is defined:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8470:1-8477:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][bar][baz]</span>
+<pre data-sourcepos="8465:1-8472:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -7483,10 +7480,10 @@ references:</p>
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;&lt;a href="/url2"&gt;foo&lt;/a&gt;&lt;a href="/url1"&gt;baz&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8480:1-8481:65" dir="auto">Here <code>[foo]</code> is not parsed as a shortcut reference, because it
+<p data-sourcepos="8475:1-8476: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8483:1-8490:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[foo][bar][baz]</span>
+<pre data-sourcepos="8478:1-8485:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -7494,9 +7491,9 @@ is followed by a link label (even though <code>[bar]</code> is not defined):</p>
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;[foo]&lt;a href="/url1"&gt;bar&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="8494:1-8494:9" dir="auto">
+<h2 data-sourcepos="8489:1-8489:9" dir="auto">
<a id="user-content-images" class="anchor" href="#images" aria-hidden="true"></a>Images</h2>
-<p data-sourcepos="8496:1-8504:55" dir="auto">Syntax for images is like the syntax for links, with one
+<p data-sourcepos="8491:1-8499: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
@@ -7506,13 +7503,13 @@ 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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8506:1-8510:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo](/url "title")</span>
+<pre data-sourcepos="8501:1-8505:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;img src="/url" alt="foo" title="title" /&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8513:1-8519:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo *bar*]</span>
+<pre data-sourcepos="8508:1-8514:32" class="code highlight js-syntax-highlight language-plaintext" lang="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 &amp; tracks"</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7520,24 +7517,24 @@ this is standardly used as the image's <code>alt</code> attribute.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8522:1-8526:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo ![bar](/url)](/url2)</span>
+<pre data-sourcepos="8517:1-8521:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo ![bar](/url)](/url2)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;img src="/url2" alt="foo bar" /&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8529:1-8533:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo [bar](/url)](/url2)</span>
+<pre data-sourcepos="8524:1-8528:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo [bar](/url)](/url2)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;img src="/url2" alt="foo bar" /&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8536:1-8541:40" dir="auto">Though this spec is concerned with parsing, not rendering, it is
+<p data-sourcepos="8531:1-8536: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 &lt;a href="/url"&gt;bar&lt;/a&gt;</code>. Only the plain string
content is rendered, without formatting.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8543:1-8549:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo *bar*][]</span>
+<pre data-sourcepos="8538:1-8544:32" class="code highlight js-syntax-highlight language-plaintext" lang="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 &amp; tracks"</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7545,7 +7542,7 @@ content is rendered, without formatting.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8552:1-8558:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo *bar*][foobar]</span>
+<pre data-sourcepos="8547:1-8553:32" class="code highlight js-syntax-highlight language-plaintext" lang="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 &amp; tracks"</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7553,32 +7550,32 @@ content is rendered, without formatting.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8561:1-8565:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo](train.jpg)</span>
+<pre data-sourcepos="8556:1-8560:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo](train.jpg)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;img src="train.jpg" alt="foo" /&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8568:1-8572:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<pre data-sourcepos="8563:1-8567:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;My &lt;img src="/path/to/train.jpg" alt="foo bar" title="title" /&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8575:1-8579:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo](&lt;url&gt;)</span>
+<pre data-sourcepos="8570:1-8574:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo](&lt;url&gt;)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;img src="url" alt="foo" /&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8582:1-8586:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![](/url)</span>
+<pre data-sourcepos="8577:1-8581:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![](/url)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;img src="/url" alt="" /&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8589:1-8589:16" dir="auto">Reference-style:</p>
+<p data-sourcepos="8584:1-8584:16" dir="auto">Reference-style:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8591:1-8597:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo][bar]</span>
+<pre data-sourcepos="8586:1-8592:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7586,16 +7583,16 @@ content is rendered, without formatting.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8600:1-8606:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo][bar]</span>
+<pre data-sourcepos="8595:1-8601:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;img src="/url" alt="foo" /&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8609:1-8609:10" dir="auto">Collapsed:</p>
+<p data-sourcepos="8604:1-8604:10" dir="auto">Collapsed:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8611:1-8617:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo][]</span>
+<pre data-sourcepos="8606:1-8612:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7603,26 +7600,26 @@ content is rendered, without formatting.</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8620:1-8626:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![*foo* bar][]</span>
+<pre data-sourcepos="8615:1-8621:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;img src="/url" alt="foo bar" title="title" /&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8629:1-8629:32" dir="auto">The labels are case-insensitive:</p>
+<p data-sourcepos="8624:1-8624:32" dir="auto">The labels are case-insensitive:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8631:1-8637:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![Foo][]</span>
+<pre data-sourcepos="8626:1-8632:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;img src="/url" alt="Foo" title="title" /&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8640:1-8641:33" dir="auto">As with reference links, [whitespace] is not allowed
+<p data-sourcepos="8635:1-8636:33" dir="auto">As with reference links, [whitespace] is not allowed
between the two sets of brackets:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8643:1-8651:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo] </span>
+<pre data-sourcepos="8638:1-8646:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -7631,9 +7628,9 @@ between the two sets of brackets:</p>
<span id="LC7" class="line" lang="plaintext">[]&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8654:1-8654:9" dir="auto">Shortcut:</p>
+<p data-sourcepos="8649:1-8649:9" dir="auto">Shortcut:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8656:1-8662:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![foo]</span>
+<pre data-sourcepos="8651:1-8657:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7641,16 +7638,16 @@ between the two sets of brackets:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8665:1-8671:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![*foo* bar]</span>
+<pre data-sourcepos="8660:1-8666:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;img src="/url" alt="foo bar" title="title" /&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8674:1-8674:56" dir="auto">Note that link labels cannot contain unescaped brackets:</p>
+<p data-sourcepos="8669:1-8669:56" dir="auto">Note that link labels cannot contain unescaped brackets:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8676:1-8683:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![[foo]]</span>
+<pre data-sourcepos="8671:1-8678:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7658,228 +7655,228 @@ between the two sets of brackets:</p>
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;[[foo]]: /url &amp;quot;title&amp;quot;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8686:1-8686:37" dir="auto">The link labels are case-insensitive:</p>
+<p data-sourcepos="8681:1-8681:37" dir="auto">The link labels are case-insensitive:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8688:1-8694:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![Foo]</span>
+<pre data-sourcepos="8683:1-8689:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;img src="/url" alt="Foo" title="title" /&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8697:1-8698:33" dir="auto">If you just want a literal <code>!</code> followed by bracketed text, you can
+<p data-sourcepos="8692:1-8693: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8700:1-8706:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">!\[foo]</span>
+<pre data-sourcepos="8695:1-8701:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;![foo]&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8709:1-8710:4" dir="auto">If you want a link after a literal <code>!</code>, backslash-escape the
+<p data-sourcepos="8704:1-8705:4" dir="auto">If you want a link after a literal <code>!</code>, backslash-escape the
<code>!</code>:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8712:1-8718:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">\![foo]</span>
+<pre data-sourcepos="8707:1-8713:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;!&lt;a href="/url" title="title"&gt;foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="8721:1-8721:12" dir="auto">
+<h2 data-sourcepos="8716:1-8716:12" dir="auto">
<a id="user-content-autolinks" class="anchor" href="#autolinks" aria-hidden="true"></a>Autolinks</h2>
-<p data-sourcepos="8723:1-8725:18" dir="auto"><a href="@">Autolink</a>s are absolute URIs and email addresses inside
+<p data-sourcepos="8718:1-8720:18" dir="auto"><a href="@">Autolink</a>s are absolute URIs and email addresses inside
<code>&lt;</code> and <code>&gt;</code>. They are parsed as links, with the URL or email address
as the link label.</p>
-<p data-sourcepos="8727:1-8729:52" dir="auto">A <a href="@">URI autolink</a> consists of <code>&lt;</code>, followed by an
+<p data-sourcepos="8722:1-8724:52" dir="auto">A <a href="@">URI autolink</a> consists of <code>&lt;</code>, followed by an
[absolute URI] followed by <code>&gt;</code>. It is parsed as
a link to the URI, with the URI as the link's label.</p>
-<p data-sourcepos="8731:1-8736:25" dir="auto">An <a href="@">absolute URI</a>,
+<p data-sourcepos="8726:1-8731: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>&lt;</code>, and <code>&gt;</code>. If
the URI includes these characters, they must be percent-encoded
(e.g. <code>%20</code> for a space).</p>
-<p data-sourcepos="8738:1-8741:37" dir="auto">For purposes of this spec, a <a href="@">scheme</a> is any sequence
+<p data-sourcepos="8733:1-8736: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="8743:1-8743:30" dir="auto">Here are some valid autolinks:</p>
+<p data-sourcepos="8738:1-8738:30" dir="auto">Here are some valid autolinks:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8745:1-8749:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;http://foo.bar.baz&gt;</span>
+<pre data-sourcepos="8740:1-8744:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;http://foo.bar.baz&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="http://foo.bar.baz"&gt;http://foo.bar.baz&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8752:1-8756:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;http://foo.bar.baz/test?q=hello&amp;id=22&amp;boolean&gt;</span>
+<pre data-sourcepos="8747:1-8751:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;http://foo.bar.baz/test?q=hello&amp;id=22&amp;boolean&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="http://foo.bar.baz/test?q=hello&amp;amp;id=22&amp;amp;boolean"&gt;http://foo.bar.baz/test?q=hello&amp;amp;id=22&amp;amp;boolean&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8759:1-8763:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;irc://foo.bar:2233/baz&gt;</span>
+<pre data-sourcepos="8754:1-8758:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;irc://foo.bar:2233/baz&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="irc://foo.bar:2233/baz"&gt;irc://foo.bar:2233/baz&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8766:1-8766:23" dir="auto">Uppercase is also fine:</p>
+<p data-sourcepos="8761:1-8761:23" dir="auto">Uppercase is also fine:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8768:1-8772:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;MAILTO:FOO@BAR.BAZ&gt;</span>
+<pre data-sourcepos="8763:1-8767:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;MAILTO:FOO@BAR.BAZ&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="MAILTO:FOO@BAR.BAZ"&gt;MAILTO:FOO@BAR.BAZ&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8775:1-8778:18" dir="auto">Note that many strings that count as [absolute URIs] for
+<p data-sourcepos="8770:1-8773: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8780:1-8784:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a+b+c:d&gt;</span>
+<pre data-sourcepos="8775:1-8779:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a+b+c:d&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="a+b+c:d"&gt;a+b+c:d&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8787:1-8791:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;made-up-scheme://foo,bar&gt;</span>
+<pre data-sourcepos="8782:1-8786:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;made-up-scheme://foo,bar&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="made-up-scheme://foo,bar"&gt;made-up-scheme://foo,bar&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8794:1-8798:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;http://../&gt;</span>
+<pre data-sourcepos="8789:1-8793:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;http://../&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="http://../"&gt;http://../&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8801:1-8805:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;localhost:5001/foo&gt;</span>
+<pre data-sourcepos="8796:1-8800:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;localhost:5001/foo&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="localhost:5001/foo"&gt;localhost:5001/foo&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8808:1-8808:36" dir="auto">Spaces are not allowed in autolinks:</p>
+<p data-sourcepos="8803:1-8803:36" dir="auto">Spaces are not allowed in autolinks:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8810:1-8814:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;http://foo.bar/baz bim&gt;</span>
+<pre data-sourcepos="8805:1-8809:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;http://foo.bar/baz bim&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&amp;lt;http://foo.bar/baz bim&amp;gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8817:1-8817:47" dir="auto">Backslash-escapes do not work inside autolinks:</p>
+<p data-sourcepos="8812:1-8812:47" dir="auto">Backslash-escapes do not work inside autolinks:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8819:1-8823:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;http://example.com/\[\&gt;</span>
+<pre data-sourcepos="8814:1-8818:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;http://example.com/\[\&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="http://example.com/%5C%5B%5C"&gt;http://example.com/\[\&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8826:1-8829:55" dir="auto">An <a href="@">email autolink</a>
+<p data-sourcepos="8821:1-8824:55" dir="auto">An <a href="@">email autolink</a>
consists of <code>&lt;</code>, followed by an [email address],
followed by <code>&gt;</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="8831:1-8834:83" dir="auto">An <a href="@">email address</a>,
+<p data-sourcepos="8826:1-8829: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="8836:5-8838:0" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">/^[a-zA-Z0-9.!#$%&amp;'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?</span>
+<pre data-sourcepos="8831:5-8833:0" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">/^[a-zA-Z0-9.!#$%&amp;'*+/=?^_`{|}~-]+@[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="8839:1-8839:28" dir="auto">Examples of email autolinks:</p>
+<p data-sourcepos="8834:1-8834:28" dir="auto">Examples of email autolinks:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8841:1-8845:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;foo@bar.example.com&gt;</span>
+<pre data-sourcepos="8836:1-8840:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;foo@bar.example.com&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="mailto:foo@bar.example.com"&gt;foo@bar.example.com&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8848:1-8852:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;foo+special@Bar.baz-bar0.com&gt;</span>
+<pre data-sourcepos="8843:1-8847:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;foo+special@Bar.baz-bar0.com&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="mailto:foo+special@Bar.baz-bar0.com"&gt;foo+special@Bar.baz-bar0.com&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8855:1-8855:53" dir="auto">Backslash-escapes do not work inside email autolinks:</p>
+<p data-sourcepos="8850:1-8850:53" dir="auto">Backslash-escapes do not work inside email autolinks:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8857:1-8861:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;foo\+@bar.example.com&gt;</span>
+<pre data-sourcepos="8852:1-8856:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;foo\+@bar.example.com&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&amp;lt;foo+@bar.example.com&amp;gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8864:1-8864:24" dir="auto">These are not autolinks:</p>
+<p data-sourcepos="8859:1-8859:24" dir="auto">These are not autolinks:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8866:1-8870:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;&gt;</span>
+<pre data-sourcepos="8861:1-8865:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&amp;lt;&amp;gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8873:1-8877:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt; http://foo.bar &gt;</span>
+<pre data-sourcepos="8868:1-8872:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt; http://foo.bar &gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&amp;lt; http://foo.bar &amp;gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8880:1-8884:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;m:abc&gt;</span>
+<pre data-sourcepos="8875:1-8879:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;m:abc&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&amp;lt;m:abc&amp;gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8887:1-8891:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;foo.bar.baz&gt;</span>
+<pre data-sourcepos="8882:1-8886:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;foo.bar.baz&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&amp;lt;foo.bar.baz&amp;gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8894:1-8898:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">http://example.com</span>
+<pre data-sourcepos="8889:1-8893:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">http://example.com</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;http://example.com&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8901:1-8905:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo@bar.example.com</span>
+<pre data-sourcepos="8896:1-8900:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo@bar.example.com</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;foo@bar.example.com&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div>
-<h2 data-sourcepos="8909:1-8909:24">
+<h2 data-sourcepos="8904:1-8904:24">
<a id="user-content-autolinks-extension" class="anchor" href="#autolinks-extension" aria-hidden="true"></a>Autolinks (extension)</h2>
-<p data-sourcepos="8911:1-8912:29">GFM enables the <code>autolink</code> extension, where autolinks will be recognised in a
+<p data-sourcepos="8906:1-8907:29">GFM enables the <code>autolink</code> extension, where autolinks will be recognised in a
greater number of conditions.</p>
-<p data-sourcepos="8914:1-8918:8">[Autolink]s can also be constructed without requiring the use of <code>&lt;</code> and to <code>&gt;</code>
+<p data-sourcepos="8909:1-8913:8">[Autolink]s can also be constructed without requiring the use of <code>&lt;</code> and to <code>&gt;</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="8920:1-8926:73">An <a href="@">extended www autolink</a> will be recognized
+<p data-sourcepos="8915:1-8921: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="8928:1-8928:49">The scheme <code>http</code> will be inserted automatically:</p>
+<p data-sourcepos="8923:1-8923:49">The scheme <code>http</code> will be inserted automatically:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8930:1-8934:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.commonmark.org</span>
+<pre data-sourcepos="8925:1-8929:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.commonmark.org</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="http://www.commonmark.org"&gt;www.commonmark.org&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8936:1-8936:77">After a [valid domain], zero or more non-space non-<code>&lt;</code> characters may follow:</p>
+<p data-sourcepos="8931:1-8931:77">After a [valid domain], zero or more non-space non-<code>&lt;</code> characters may follow:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8938:1-8942:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<pre data-sourcepos="8933:1-8937:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;Visit &lt;a href="http://www.commonmark.org/help"&gt;www.commonmark.org/help&lt;/a&gt; for more information.&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8944:1-8944:64">We then apply <a href="@">extended autolink path validation</a> as follows:</p>
-<p data-sourcepos="8946:1-8948:21">Trailing punctuation (specifically, <code>?</code>, <code>!</code>, <code>.</code>, <code>,</code>, <code>:</code>, <code>*</code>, <code>_</code>, and <code>~</code>)
+<p data-sourcepos="8939:1-8939:64">We then apply <a href="@">extended autolink path validation</a> as follows:</p>
+<p data-sourcepos="8941:1-8943: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8950:1-8957:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Visit www.commonmark.org.</span>
+<pre data-sourcepos="8945:1-8952:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7887,12 +7884,12 @@ interior of the link:</p>
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;Visit &lt;a href="http://www.commonmark.org/a.b"&gt;www.commonmark.org/a.b&lt;/a&gt;.&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8959:1-8962:76">When an autolink ends in <code>)</code>, we scan the entire autolink for the total number
+<p data-sourcepos="8954:1-8957: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8964:1-8977:32" class="code highlight js-syntax-highlight language-plaintext" lang="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="8959:1-8972:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -7906,21 +7903,21 @@ autolink, in order to facilitate including an autolink inside a parenthesis:</p>
<span id="LC12" class="line" lang="plaintext">&lt;p&gt;(&lt;a href="http://www.google.com/search?q=Markup+(business)"&gt;www.google.com/search?q=Markup+(business)&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8979:1-8981:8">This check is only done when the link ends in a closing parentheses <code>)</code>, so if
+<p data-sourcepos="8974:1-8976: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8983:1-8987:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.google.com/search?q=(business))+ok</span>
+<pre data-sourcepos="8978:1-8982:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.google.com/search?q=(business))+ok</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="http://www.google.com/search?q=(business))+ok"&gt;www.google.com/search?q=(business))+ok&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="8989:1-8992:13">If an autolink ends in a semicolon (<code>;</code>), we check to see if it appears to
+<p data-sourcepos="8984:1-8987: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>&amp;</code>
followed by one or more alphanumeric characters. If so, it is excluded from
the autolink:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="8994:1-9001:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.google.com/search?q=commonmark&amp;hl=en</span>
+<pre data-sourcepos="8989:1-8996:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.google.com/search?q=commonmark&amp;hl=en</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext">www.google.com/search?q=commonmark&amp;hl;</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -7928,19 +7925,19 @@ the autolink:</p>
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;&lt;a href="http://www.google.com/search?q=commonmark"&gt;www.google.com/search?q=commonmark&lt;/a&gt;&amp;amp;hl;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9003:1-9003:33"><code>&lt;</code> immediately ends an autolink.</p>
+<p data-sourcepos="8998:1-8998:33"><code>&lt;</code> immediately ends an autolink.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9005:1-9009:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.commonmark.org/he&lt;lp</span>
+<pre data-sourcepos="9000:1-9004:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">www.commonmark.org/he&lt;lp</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="http://www.commonmark.org/he"&gt;www.commonmark.org/he&lt;/a&gt;&amp;lt;lp&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9011:1-9014:36">An <a href="@">extended url autolink</a> will be recognised when one of the schemes
+<p data-sourcepos="9006:1-9009: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>&lt;</code> characters according to
[extended autolink path validation]:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9016:1-9026:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">http://commonmark.org</span>
+<pre data-sourcepos="9011:1-9021:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -7951,36 +7948,36 @@ more non-space non-<code>&lt;</code> characters according to
<span id="LC9" class="line" lang="plaintext">&lt;p&gt;Anonymous FTP is available at &lt;a href="ftp://foo.bar.baz"&gt;ftp://foo.bar.baz&lt;/a&gt;.&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9029:1-9031:20">An <a href="@">extended email autolink</a> will be recognised when an email address is
+<p data-sourcepos="9024:1-9026: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="9033:1-9039:0">
-<li data-sourcepos="9033:1-9033:75">One ore more characters which are alphanumeric, or <code>.</code>, <code>-</code>, <code>_</code>, or <code>+</code>.</li>
-<li data-sourcepos="9034:1-9034:16">An <code>@</code> symbol.</li>
-<li data-sourcepos="9035:1-9039:0">One or more characters which are alphanumeric, or <code>-</code> or <code>_</code>,
+<ul data-sourcepos="9028:1-9034:0">
+<li data-sourcepos="9028:1-9028:75">One ore more characters which are alphanumeric, or <code>.</code>, <code>-</code>, <code>_</code>, or <code>+</code>.</li>
+<li data-sourcepos="9029:1-9029:16">An <code>@</code> symbol.</li>
+<li data-sourcepos="9030:1-9034: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="9040:1-9040:71">The scheme <code>mailto:</code> will automatically be added to the generated link:</p>
+<p data-sourcepos="9035:1-9035:71">The scheme <code>mailto:</code> will automatically be added to the generated link:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9042:1-9046:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo@bar.baz</span>
+<pre data-sourcepos="9037:1-9041:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;a href="mailto:foo@bar.baz"&gt;foo@bar.baz&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9048:1-9048:44"><code>+</code> can occur before the <code>@</code>, but not after.</p>
+<p data-sourcepos="9043:1-9043:44"><code>+</code> can occur before the <code>@</code>, but not after.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9050:1-9054:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<pre data-sourcepos="9045:1-9049:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;hello@mail+xyz.example isn't valid, but &lt;a href="mailto:hello+xyz@mail.example"&gt;hello+xyz@mail.example&lt;/a&gt; is.&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9056:1-9058:12"><code>.</code>, <code>-</code>, and <code>_</code> can occur on both sides of the <code>@</code>, but only <code>.</code> may occur at
+<p data-sourcepos="9051:1-9053: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9060:1-9073:32" class="code highlight js-syntax-highlight language-plaintext" lang="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="9055:1-9068:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -7995,125 +7992,125 @@ the address:</p>
<copy-code></copy-code>
</div>
</div>
-<h2 data-sourcepos="9077:1-9077:11" dir="auto">
+<h2 data-sourcepos="9072:1-9072:11" dir="auto">
<a id="user-content-raw-html" class="anchor" href="#raw-html" aria-hidden="true"></a>Raw HTML</h2>
-<p data-sourcepos="9079:1-9082:57" dir="auto">Text between <code>&lt;</code> and <code>&gt;</code> that looks like an HTML tag is parsed as a
+<p data-sourcepos="9074:1-9077:57" dir="auto">Text between <code>&lt;</code> and <code>&gt;</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="9084:1-9084:29" dir="auto">Here is the grammar for tags:</p>
-<p data-sourcepos="9086:1-9088:14" dir="auto">A <a href="@">tag name</a> consists of an ASCII letter
+<p data-sourcepos="9079:1-9079:29" dir="auto">Here is the grammar for tags:</p>
+<p data-sourcepos="9081:1-9083: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="9090:1-9092:32" dir="auto">An <a href="@">attribute</a> consists of [whitespace],
+<p data-sourcepos="9085:1-9087:32" dir="auto">An <a href="@">attribute</a> consists of [whitespace],
an [attribute name], and an optional
[attribute value specification].</p>
-<p data-sourcepos="9094:1-9097:52" dir="auto">An <a href="@">attribute name</a>
+<p data-sourcepos="9089:1-9092: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="9099:1-9102:7" dir="auto">An <a href="@">attribute value specification</a>
+<p data-sourcepos="9094:1-9097: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="9104:1-9106:72" dir="auto">An <a href="@">attribute value</a>
+<p data-sourcepos="9099:1-9101: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="9108:1-9110:60" dir="auto">An <a href="@">unquoted attribute value</a>
+<p data-sourcepos="9103:1-9105: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>&lt;</code>, <code>&gt;</code>, or <code>`</code>.</p>
-<p data-sourcepos="9112:1-9114:46" dir="auto">A <a href="@">single-quoted attribute value</a>
+<p data-sourcepos="9107:1-9109: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="9116:1-9118:46" dir="auto">A <a href="@">double-quoted attribute value</a>
+<p data-sourcepos="9111:1-9113: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="9120:1-9122:31" dir="auto">An <a href="@">open tag</a> consists of a <code>&lt;</code> character, a [tag name],
+<p data-sourcepos="9115:1-9117:31" dir="auto">An <a href="@">open tag</a> consists of a <code>&lt;</code> character, a [tag name],
zero or more [attributes], optional [whitespace], an optional <code>/</code>
character, and a <code>&gt;</code> character.</p>
-<p data-sourcepos="9124:1-9125:57" dir="auto">A <a href="@">closing tag</a> consists of the string <code>&lt;/</code>, a
+<p data-sourcepos="9119:1-9120:57" dir="auto">A <a href="@">closing tag</a> consists of the string <code>&lt;/</code>, a
[tag name], optional [whitespace], and the character <code>&gt;</code>.</p>
-<p data-sourcepos="9127:1-9130:63" dir="auto">An <a href="@">HTML comment</a> consists of <code>&lt;!--</code> + <em>text</em> + <code>--&gt;</code>,
+<p data-sourcepos="9122:1-9125:63" dir="auto">An <a href="@">HTML comment</a> consists of <code>&lt;!--</code> + <em>text</em> + <code>--&gt;</code>,
where <em>text</em> does not start with <code>&gt;</code> or <code>-&gt;</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="9132:1-9135:5" dir="auto">A <a href="@">processing instruction</a>
+<p data-sourcepos="9127:1-9130:5" dir="auto">A <a href="@">processing instruction</a>
consists of the string <code>&lt;?</code>, a string
of characters not including the string <code>?&gt;</code>, and the string
<code>?&gt;</code>.</p>
-<p data-sourcepos="9137:1-9140:37" dir="auto">A <a href="@">declaration</a> consists of the
+<p data-sourcepos="9132:1-9135:37" dir="auto">A <a href="@">declaration</a> consists of the
string <code>&lt;!</code>, a name consisting of one or more uppercase ASCII letters,
[whitespace], a string of characters not including the
character <code>&gt;</code>, and the character <code>&gt;</code>.</p>
-<p data-sourcepos="9142:1-9144:28" dir="auto">A <a href="@">CDATA section</a> consists of
+<p data-sourcepos="9137:1-9139:28" dir="auto">A <a href="@">CDATA section</a> consists of
the string <code>&lt;![CDATA[</code>, a string of characters not including the string
<code>]]&gt;</code>, and the string <code>]]&gt;</code>.</p>
-<p data-sourcepos="9146:1-9148:21" dir="auto">An <a href="@">HTML tag</a> consists of an [open tag], a [closing tag],
+<p data-sourcepos="9141:1-9143: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="9150:1-9150:31" dir="auto">Here are some simple open tags:</p>
+<p data-sourcepos="9145:1-9145:31" dir="auto">Here are some simple open tags:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9152:1-9156:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a&gt;&lt;bab&gt;&lt;c2c&gt;</span>
+<pre data-sourcepos="9147:1-9151:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a&gt;&lt;bab&gt;&lt;c2c&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a&gt;&lt;bab&gt;&lt;c2c&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9159:1-9159:15" dir="auto">Empty elements:</p>
+<p data-sourcepos="9154:1-9154:15" dir="auto">Empty elements:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9161:1-9165:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a/&gt;&lt;b2/&gt;</span>
+<pre data-sourcepos="9156:1-9160:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a/&gt;&lt;b2/&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a/&gt;&lt;b2/&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9168:1-9168:24" dir="auto">[Whitespace] is allowed:</p>
+<p data-sourcepos="9163:1-9163:24" dir="auto">[Whitespace] is allowed:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9170:1-9176:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a /&gt;&lt;b2</span>
+<pre data-sourcepos="9165:1-9171:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a /&gt;&lt;b2</span>
<span id="LC2" class="line" lang="plaintext">data="foo" &gt;</span>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;&lt;a /&gt;&lt;b2</span>
<span id="LC5" class="line" lang="plaintext">data="foo" &gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9179:1-9179:16" dir="auto">With attributes:</p>
+<p data-sourcepos="9174:1-9174:16" dir="auto">With attributes:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9181:1-9187:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a foo="bar" bam = 'baz &lt;em&gt;"&lt;/em&gt;'</span>
+<pre data-sourcepos="9176:1-9182:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a foo="bar" bam = 'baz &lt;em&gt;"&lt;/em&gt;'</span>
<span id="LC2" class="line" lang="plaintext">_boolean zoop:33=zoop:33 /&gt;</span>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;&lt;a foo="bar" bam = 'baz &lt;em&gt;"&lt;/em&gt;'</span>
<span id="LC5" class="line" lang="plaintext">_boolean zoop:33=zoop:33 /&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9190:1-9190:29" dir="auto">Custom tag names can be used:</p>
+<p data-sourcepos="9185:1-9185:29" dir="auto">Custom tag names can be used:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9192:1-9196:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo &lt;responsive-image src="foo.jpg" /&gt;</span>
+<pre data-sourcepos="9187:1-9191:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo &lt;responsive-image src="foo.jpg" /&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;Foo &lt;responsive-image src="foo.jpg" /&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9199:1-9199:38" dir="auto">Illegal tag names, not parsed as HTML:</p>
+<p data-sourcepos="9194:1-9194:38" dir="auto">Illegal tag names, not parsed as HTML:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9201:1-9205:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;33&gt; &lt;__&gt;</span>
+<pre data-sourcepos="9196:1-9200:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;33&gt; &lt;__&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&amp;lt;33&amp;gt; &amp;lt;__&amp;gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9208:1-9208:24" dir="auto">Illegal attribute names:</p>
+<p data-sourcepos="9203:1-9203:24" dir="auto">Illegal attribute names:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9210:1-9214:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a h*#ref="hi"&gt;</span>
+<pre data-sourcepos="9205:1-9209:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a h*#ref="hi"&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&amp;lt;a h*#ref=&amp;quot;hi&amp;quot;&amp;gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9217:1-9217:25" dir="auto">Illegal attribute values:</p>
+<p data-sourcepos="9212:1-9212:25" dir="auto">Illegal attribute values:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9219:1-9223:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href="hi'&gt; &lt;a href=hi'&gt;</span>
+<pre data-sourcepos="9214:1-9218:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href="hi'&gt; &lt;a href=hi'&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&amp;lt;a href=&amp;quot;hi'&amp;gt; &amp;lt;a href=hi'&amp;gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9226:1-9226:21" dir="auto">Illegal [whitespace]:</p>
+<p data-sourcepos="9221:1-9221:21" dir="auto">Illegal [whitespace]:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9228:1-9238:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt; a&gt;&lt;</span>
+<pre data-sourcepos="9223:1-9233:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&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;</span>
@@ -8124,30 +8121,30 @@ or a [CDATA section].</p>
<span id="LC9" class="line" lang="plaintext">bim!bop /&amp;gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9241:1-9241:21" dir="auto">Missing [whitespace]:</p>
+<p data-sourcepos="9236:1-9236:21" dir="auto">Missing [whitespace]:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9243:1-9247:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href='bar'title=title&gt;</span>
+<pre data-sourcepos="9238:1-9242:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href='bar'title=title&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&amp;lt;a href='bar'title=title&amp;gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9250:1-9250:13" dir="auto">Closing tags:</p>
+<p data-sourcepos="9245:1-9245:13" dir="auto">Closing tags:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9252:1-9256:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;/a&gt;&lt;/foo &gt;</span>
+<pre data-sourcepos="9247:1-9251:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;/a&gt;&lt;/foo &gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;/a&gt;&lt;/foo &gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9259:1-9259:34" dir="auto">Illegal attributes in closing tag:</p>
+<p data-sourcepos="9254:1-9254:34" dir="auto">Illegal attributes in closing tag:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9261:1-9265:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;/a href="foo"&gt;</span>
+<pre data-sourcepos="9256:1-9260:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;/a href="foo"&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&amp;lt;/a href=&amp;quot;foo&amp;quot;&amp;gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9268:1-9268:9" dir="auto">Comments:</p>
+<p data-sourcepos="9263:1-9263:9" dir="auto">Comments:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9270:1-9276:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo &lt;!-- this is a</span>
+<pre data-sourcepos="9265:1-9271:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo &lt;!-- this is a</span>
<span id="LC2" class="line" lang="plaintext">comment - with hyphen --&gt;</span>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;foo &lt;!-- this is a</span>
@@ -8155,14 +8152,14 @@ or a [CDATA section].</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9279:1-9283:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo &lt;!-- not a comment -- two hyphens --&gt;</span>
+<pre data-sourcepos="9274:1-9278:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo &lt;!-- not a comment -- two hyphens --&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;foo &amp;lt;!-- not a comment -- two hyphens --&amp;gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9286:1-9286:13" dir="auto">Not comments:</p>
+<p data-sourcepos="9281:1-9281:13" dir="auto">Not comments:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9288:1-9295:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo &lt;!--&gt; foo --&gt;</span>
+<pre data-sourcepos="9283:1-9290:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo &lt;!--&gt; foo --&gt;</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext">foo &lt;!-- foo---&gt;</span>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -8170,71 +8167,71 @@ or a [CDATA section].</p>
<span id="LC6" class="line" lang="plaintext">&lt;p&gt;foo &amp;lt;!-- foo---&amp;gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9298:1-9298:24" dir="auto">Processing instructions:</p>
+<p data-sourcepos="9293:1-9293:24" dir="auto">Processing instructions:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9300:1-9304:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo &lt;?php echo $a; ?&gt;</span>
+<pre data-sourcepos="9295:1-9299:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo &lt;?php echo $a; ?&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;foo &lt;?php echo $a; ?&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9307:1-9307:13" dir="auto">Declarations:</p>
+<p data-sourcepos="9302:1-9302:13" dir="auto">Declarations:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9309:1-9313:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo &lt;!ELEMENT br EMPTY&gt;</span>
+<pre data-sourcepos="9304:1-9308:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo &lt;!ELEMENT br EMPTY&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;foo &lt;!ELEMENT br EMPTY&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9316:1-9316:15" dir="auto">CDATA sections:</p>
+<p data-sourcepos="9311:1-9311:15" dir="auto">CDATA sections:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9318:1-9322:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo &lt;![CDATA[&gt;&amp;&lt;]]&gt;</span>
+<pre data-sourcepos="9313:1-9317:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo &lt;![CDATA[&gt;&amp;&lt;]]&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;foo &lt;![CDATA[&gt;&amp;&lt;]]&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9325:1-9326:11" dir="auto">Entity and numeric character references are preserved in HTML
+<p data-sourcepos="9320:1-9321:11" dir="auto">Entity and numeric character references are preserved in HTML
attributes:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9328:1-9332:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo &lt;a href="&amp;ouml;"&gt;</span>
+<pre data-sourcepos="9323:1-9327:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo &lt;a href="&amp;ouml;"&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;foo &lt;a href="&amp;ouml;"&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9335:1-9335:49" dir="auto">Backslash escapes do not work in HTML attributes:</p>
+<p data-sourcepos="9330:1-9330:49" dir="auto">Backslash escapes do not work in HTML attributes:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9337:1-9341:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo &lt;a href="\*"&gt;</span>
+<pre data-sourcepos="9332:1-9336:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo &lt;a href="\*"&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;foo &lt;a href="\*"&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9344:1-9348:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href="\""&gt;</span>
+<pre data-sourcepos="9339:1-9343:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href="\""&gt;</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&amp;lt;a href=&amp;quot;&amp;quot;&amp;quot;&amp;gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div>
-<h2 data-sourcepos="9353:1-9353:34">
+<h2 data-sourcepos="9348:1-9348: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="9355:1-9356:36">GFM enables the <code>tagfilter</code> extension, where the following HTML tags will be
+<p data-sourcepos="9350:1-9351:36">GFM enables the <code>tagfilter</code> extension, where the following HTML tags will be
filtered when rendering HTML output:</p>
-<ul data-sourcepos="9358:1-9367:0">
-<li data-sourcepos="9358:1-9358:11"><code>&lt;title&gt;</code></li>
-<li data-sourcepos="9359:1-9359:14"><code>&lt;textarea&gt;</code></li>
-<li data-sourcepos="9360:1-9360:11"><code>&lt;style&gt;</code></li>
-<li data-sourcepos="9361:1-9361:9"><code>&lt;xmp&gt;</code></li>
-<li data-sourcepos="9362:1-9362:12"><code>&lt;iframe&gt;</code></li>
-<li data-sourcepos="9363:1-9363:13"><code>&lt;noembed&gt;</code></li>
-<li data-sourcepos="9364:1-9364:14"><code>&lt;noframes&gt;</code></li>
-<li data-sourcepos="9365:1-9365:12"><code>&lt;script&gt;</code></li>
-<li data-sourcepos="9366:1-9367:0"><code>&lt;plaintext&gt;</code></li>
+<ul data-sourcepos="9353:1-9362:0">
+<li data-sourcepos="9353:1-9353:11"><code>&lt;title&gt;</code></li>
+<li data-sourcepos="9354:1-9354:14"><code>&lt;textarea&gt;</code></li>
+<li data-sourcepos="9355:1-9355:11"><code>&lt;style&gt;</code></li>
+<li data-sourcepos="9356:1-9356:9"><code>&lt;xmp&gt;</code></li>
+<li data-sourcepos="9357:1-9357:12"><code>&lt;iframe&gt;</code></li>
+<li data-sourcepos="9358:1-9358:13"><code>&lt;noembed&gt;</code></li>
+<li data-sourcepos="9359:1-9359:14"><code>&lt;noframes&gt;</code></li>
+<li data-sourcepos="9360:1-9360:12"><code>&lt;script&gt;</code></li>
+<li data-sourcepos="9361:1-9362:0"><code>&lt;plaintext&gt;</code></li>
</ul>
-<p data-sourcepos="9368:1-9371:71">Filtering is done by replacing the leading <code>&lt;</code> with the entity <code>&amp;lt;</code>. These
+<p data-sourcepos="9363:1-9366:71">Filtering is done by replacing the leading <code>&lt;</code> with the entity <code>&amp;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="9373:1-9373:39">All other HTML tags are left untouched.</p>
+<p data-sourcepos="9368:1-9368:39">All other HTML tags are left untouched.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9375:1-9386:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;strong&gt; &lt;title&gt; &lt;style&gt; &lt;em&gt;</span>
+<pre data-sourcepos="9370:1-9381:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;strong&gt; &lt;title&gt; &lt;style&gt; &lt;em&gt;</span>
<span id="LC2" class="line" lang="plaintext"></span>
<span id="LC3" class="line" lang="plaintext">&lt;blockquote&gt;</span>
<span id="LC4" class="line" lang="plaintext"> &lt;xmp&gt; is disallowed. &lt;XMP&gt; is also disallowed.</span>
@@ -8247,42 +8244,42 @@ usually undesireable in the context of other rendered Markdown content.</p>
<copy-code></copy-code>
</div>
</div>
-<h2 data-sourcepos="9390:1-9390:19" dir="auto">
+<h2 data-sourcepos="9385:1-9385: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="9392:1-9395:27" dir="auto">A line break (not in a code span or HTML tag) that is preceded
+<p data-sourcepos="9387:1-9390: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>&lt;br /&gt;</code> tag):</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9397:1-9403:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo </span>
+<pre data-sourcepos="9392:1-9398:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;foo&lt;br /&gt;</span>
<span id="LC5" class="line" lang="plaintext">baz&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9406:1-9407:48" dir="auto">For a more visible alternative, a backslash before the
+<p data-sourcepos="9401:1-9402:48" dir="auto">For a more visible alternative, a backslash before the
[line ending] may be used instead of two spaces:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9409:1-9415:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo\</span>
+<pre data-sourcepos="9404:1-9410:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;foo&lt;br /&gt;</span>
<span id="LC5" class="line" lang="plaintext">baz&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9418:1-9418:33" dir="auto">More than two spaces can be used:</p>
+<p data-sourcepos="9413:1-9413:33" dir="auto">More than two spaces can be used:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9420:1-9426:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo </span>
+<pre data-sourcepos="9415:1-9421:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;foo&lt;br /&gt;</span>
<span id="LC5" class="line" lang="plaintext">baz&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9429:1-9429:61" dir="auto">Leading spaces at the beginning of the next line are ignored:</p>
+<p data-sourcepos="9424:1-9424:61" dir="auto">Leading spaces at the beginning of the next line are ignored:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9431:1-9437:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo </span>
+<pre data-sourcepos="9426:1-9432:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo&lt;br /&gt;</span>
@@ -8290,17 +8287,17 @@ in HTML as a <code>&lt;br /&gt;</code> tag):</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9440:1-9446:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo\</span>
+<pre data-sourcepos="9435:1-9441:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo&lt;br /&gt;</span>
<span id="LC5" class="line" lang="plaintext">bar&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9449:1-9450:26" dir="auto">Line breaks can occur inside emphasis, links, and other constructs
+<p data-sourcepos="9444:1-9445:26" dir="auto">Line breaks can occur inside emphasis, links, and other constructs
that allow inline content:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9452:1-9458:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo </span>
+<pre data-sourcepos="9447:1-9453:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo&lt;br /&gt;</span>
@@ -8308,31 +8305,31 @@ that allow inline content:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9461:1-9467:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">*foo\</span>
+<pre data-sourcepos="9456:1-9462:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;em&gt;foo&lt;br /&gt;</span>
<span id="LC5" class="line" lang="plaintext">bar&lt;/em&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9470:1-9470:42" dir="auto">Line breaks do not occur inside code spans</p>
+<p data-sourcepos="9465:1-9465:42" dir="auto">Line breaks do not occur inside code spans</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9472:1-9477:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`code </span>
+<pre data-sourcepos="9467:1-9472:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;&lt;code&gt;code span&lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9480:1-9485:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">`code\</span>
+<pre data-sourcepos="9475:1-9480:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;&lt;code&gt;code\ span&lt;/code&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9488:1-9488:13" dir="auto">or HTML tags:</p>
+<p data-sourcepos="9483:1-9483:13" dir="auto">or HTML tags:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9490:1-9496:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href="foo </span>
+<pre data-sourcepos="9485:1-9491:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href="foo </span>
<span id="LC2" class="line" lang="plaintext">bar"&gt;</span>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;&lt;a href="foo </span>
@@ -8340,106 +8337,106 @@ that allow inline content:</p>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9499:1-9505:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href="foo\</span>
+<pre data-sourcepos="9494:1-9500:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">&lt;a href="foo\</span>
<span id="LC2" class="line" lang="plaintext">bar"&gt;</span>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;&lt;a href="foo\</span>
<span id="LC5" class="line" lang="plaintext">bar"&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9508:1-9510:20" dir="auto">Hard line breaks are for separating inline content within a block.
+<p data-sourcepos="9503:1-9505: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9512:1-9516:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo\</span>
+<pre data-sourcepos="9507:1-9511:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo\&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9519:1-9523:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo </span>
+<pre data-sourcepos="9514:1-9518:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;foo&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9526:1-9530:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">### foo\</span>
+<pre data-sourcepos="9521:1-9525:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;h3&gt;foo\&lt;/h3&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9533:1-9537:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">### foo </span>
+<pre data-sourcepos="9528:1-9532:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;h3&gt;foo&lt;/h3&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="9540:1-9540:19" dir="auto">
+<h2 data-sourcepos="9535:1-9535: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="9542:1-9546:62" dir="auto">A regular line break (not in a code span or HTML tag) that is not
+<p data-sourcepos="9537:1-9541: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9548:1-9554:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo</span>
+<pre data-sourcepos="9543:1-9549:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;foo</span>
<span id="LC5" class="line" lang="plaintext">baz&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9557:1-9558:8" dir="auto">Spaces at the end of the line and beginning of the next line are
+<p data-sourcepos="9552:1-9553:8" dir="auto">Spaces at the end of the line and beginning of the next line are
removed:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9560:1-9566:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">foo </span>
+<pre data-sourcepos="9555:1-9561:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC3" class="line" lang="plaintext">.</span>
<span id="LC4" class="line" lang="plaintext">&lt;p&gt;foo</span>
<span id="LC5" class="line" lang="plaintext">baz&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9569:1-9570:25" dir="auto">A conforming parser may render a soft line break in HTML either as a
+<p data-sourcepos="9564:1-9565: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="9572:1-9573:20" dir="auto">A renderer may also provide an option to render soft line breaks
+<p data-sourcepos="9567:1-9568:20" dir="auto">A renderer may also provide an option to render soft line breaks
as hard line breaks.</p>
-<h2 data-sourcepos="9575:1-9575:18" dir="auto">
+<h2 data-sourcepos="9570:1-9570:18" dir="auto">
<a id="user-content-textual-content" class="anchor" href="#textual-content" aria-hidden="true"></a>Textual content</h2>
-<p data-sourcepos="9577:1-9578:35" dir="auto">Any characters not given an interpretation by the above rules will
+<p data-sourcepos="9572:1-9573:35" dir="auto">Any characters not given an interpretation by the above rules will
be parsed as plain textual content.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9580:1-9584:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">hello $.;'there</span>
+<pre data-sourcepos="9575:1-9579:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">hello $.;'there</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;hello $.;'there&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9587:1-9591:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Foo χρῆν</span>
+<pre data-sourcepos="9582:1-9586:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;Foo χρῆν&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9594:1-9594:39" dir="auto">Internal spaces are preserved verbatim:</p>
+<p data-sourcepos="9589:1-9589:39" dir="auto">Internal spaces are preserved verbatim:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9596:1-9600:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Multiple spaces</span>
+<pre data-sourcepos="9591:1-9595:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Multiple spaces</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;Multiple spaces&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h1 data-sourcepos="9603:1-9603:40" dir="auto">
+<h1 data-sourcepos="9598:1-9598: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="9605:1-9608:104" dir="auto">Currently, only some of the GitLab-specific markdown features are
-listed in this section. We will eventually add all
+<p data-sourcepos="9600:1-9603: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="9610:1-9611:69" dir="auto">There is currently only this single top-level heading, but the
+<p data-sourcepos="9605:1-9606: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="9613:1-9613:12" dir="auto">
+<h2 data-sourcepos="9608:1-9608:12" dir="auto">
<a id="user-content-footnotes" class="anchor" href="#footnotes" aria-hidden="true"></a>Footnotes</h2>
-<p data-sourcepos="9615:1-9616:143" dir="auto">See
+<p data-sourcepos="9610:1-9611: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9618:1-9642:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">footnote reference tag [^fortytwo]</span>
+<pre data-sourcepos="9613:1-9637:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -8464,19 +8461,19 @@ examples may be split into multiple top-level headings in the future.</p>
<span id="LC23" class="line" lang="plaintext">&lt;/section&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="9644:1-9644:18" dir="auto">
+<h2 data-sourcepos="9639:1-9639: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="9646:1-9647:117" dir="auto">See
+<p data-sourcepos="9641:1-9642: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="9649:1-9652:39" dir="auto">Task list items (checkboxes) are defined as a GitHub Flavored Markdown extension in a section above.
+<p data-sourcepos="9644:1-9647: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="9654:1-9654:85" dir="auto">Some of the behavior of task list items is implemented as client-side JavaScript/CSS.</p>
-<p data-sourcepos="9656:1-9656:80" dir="auto">The following are some basic examples; more examples may be added in the future.</p>
-<p data-sourcepos="9658:1-9658:16" dir="auto">Incomplete task:</p>
+<p data-sourcepos="9649:1-9649:85" dir="auto">Some of the behavior of task list items is implemented as client-side JavaScript/CSS.</p>
+<p data-sourcepos="9651:1-9651:80" dir="auto">The following are some basic examples; more examples may be added in the future.</p>
+<p data-sourcepos="9653:1-9653:16" dir="auto">Incomplete task:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9660:1-9670:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [ ] incomplete</span>
+<pre data-sourcepos="9655:1-9665:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [ ] incomplete</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;ul&gt;</span>
<span id="LC4" class="line" lang="plaintext">&lt;li&gt;</span>
@@ -8487,9 +8484,9 @@ GitLab Flavored Markdown specification.</p>
<span id="LC9" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9672:1-9672:15" dir="auto">Completed task:</p>
+<p data-sourcepos="9667:1-9667:15" dir="auto">Completed task:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9674:1-9684:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [x] completed</span>
+<pre data-sourcepos="9669:1-9679:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [x] completed</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;ul&gt;</span>
<span id="LC4" class="line" lang="plaintext">&lt;li&gt;</span>
@@ -8500,9 +8497,9 @@ GitLab Flavored Markdown specification.</p>
<span id="LC9" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9686:1-9686:18" dir="auto">Inapplicable task:</p>
+<p data-sourcepos="9681:1-9681:18" dir="auto">Inapplicable task:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9688:1-9700:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [~] inapplicable</span>
+<pre data-sourcepos="9683:1-9695:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;ul&gt;</span>
<span id="LC4" class="line" lang="plaintext">&lt;li&gt;</span>
@@ -8515,10 +8512,10 @@ GitLab Flavored Markdown specification.</p>
<span id="LC11" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9702:1-9703:50" dir="auto">Inapplicable task in a "loose" list. Note that the <code>&lt;del&gt;</code> tag is not applied to the
+<p data-sourcepos="9697:1-9698:50" dir="auto">Inapplicable task in a "loose" list. Note that the <code>&lt;del&gt;</code> tag is not applied to the
loose text; it has strikethrough applied with CSS.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9705:1-9724:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [~] inapplicable</span>
+<pre data-sourcepos="9700:1-9719:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -8538,15 +8535,15 @@ loose text; it has strikethrough applied with CSS.</p>
<span id="LC18" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="9726:1-9726:15" dir="auto">
+<h2 data-sourcepos="9721:1-9721:15" dir="auto">
<a id="user-content-front-matter" class="anchor" href="#front-matter" aria-hidden="true"></a>Front matter</h2>
-<p data-sourcepos="9728:1-9729:121" dir="auto">See
+<p data-sourcepos="9723:1-9724: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="9731:1-9732:95" dir="auto">Front matter is metadata included at the beginning of a Markdown document, preceding the content.
+<p data-sourcepos="9726:1-9727: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="9734:1-9734:18" dir="auto">YAML front matter:</p>
+<p data-sourcepos="9729:1-9729:18" dir="auto">YAML front matter:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9736:1-9746:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">---</span>
+<pre data-sourcepos="9731:1-9741:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -8557,9 +8554,9 @@ This data can be used by static site generators like Jekyll, Hugo, and many othe
<span id="LC9" class="line" lang="plaintext">&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9748:1-9748:18" dir="auto">TOML front matter:</p>
+<p data-sourcepos="9743:1-9743:18" dir="auto">TOML front matter:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9750:1-9760:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">+++</span>
+<pre data-sourcepos="9745:1-9755:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -8570,9 +8567,9 @@ This data can be used by static site generators like Jekyll, Hugo, and many othe
<span id="LC9" class="line" lang="plaintext">&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9762:1-9762:18" dir="auto">JSON front matter:</p>
+<p data-sourcepos="9757:1-9757:18" dir="auto">JSON front matter:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9764:1-9778:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">;;;</span>
+<pre data-sourcepos="9759:1-9773:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -8587,9 +8584,9 @@ This data can be used by static site generators like Jekyll, Hugo, and many othe
<span id="LC13" class="line" lang="plaintext">&lt;/pre&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9780:1-9780:66" dir="auto">Front matter blocks should be inserted at the top of the document:</p>
+<p data-sourcepos="9775:1-9775:66" dir="auto">Front matter blocks should be inserted at the top of the document:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9782:1-9792:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">text</span>
+<pre data-sourcepos="9777:1-9787:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -8600,9 +8597,9 @@ This data can be used by static site generators like Jekyll, Hugo, and many othe
<span id="LC9" class="line" lang="plaintext">&lt;h2&gt;title: YAML front matter&lt;/h2&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9794:1-9794:74" dir="auto">Front matter block delimiters shouldn’t be preceded by space characters:</p>
+<p data-sourcepos="9789:1-9789:74" dir="auto">Front matter block delimiters shouldn’t be preceded by space characters:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9796:1-9803:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> ---</span>
+<pre data-sourcepos="9791:1-9798:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
@@ -8610,14 +8607,13 @@ This data can be used by static site generators like Jekyll, Hugo, and many othe
<span id="LC6" class="line" lang="plaintext">&lt;h2&gt;title: YAML front matter&lt;/h2&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="9805:1-9805:20" dir="auto">
+<h2 data-sourcepos="9800:1-9800: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="9807:1-9809:46" dir="auto">See
+<p data-sourcepos="9802:1-9804: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="9811:1-9812:58" dir="auto">A table of contents is an unordered list that links to subheadings in the document.
+<p data-sourcepos="9806:1-9807: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="#introduction">Introduction</a></li>
<li>
<a href="#preliminaries">Preliminaries</a><ul>
<li><a href="#characters-and-lines">Characters and lines</a></li>
@@ -8688,23 +8684,9 @@ Add either the <code>[[_TOC_]]</code> or </p><ul class="section-nav">
<li><a href="#markdown-preview-api-request-overrides">Markdown Preview API Request Overrides</a></li>
</ul>
</li>
-<li>
-<a href="#appendix-a-parsing-strategy">Appendix: A parsing strategy</a><ul>
-<li><a href="#overview">Overview</a></li>
-<li><a href="#phase-1-block-structure">Phase 1: block structure</a></li>
-<li>
-<a href="#phase-2-inline-structure">Phase 2: inline structure</a><ul><li>
-<a href="#an-algorithm-for-parsing-nested-emphasis-and-links">An algorithm for parsing nested emphasis and links</a><ul>
-<li><a href="#look-for-link-or-image">look for link or image</a></li>
-<li><a href="#process-emphasis">process emphasis</a></li>
-</ul>
-</li></ul>
-</li>
-</ul>
-</li>
</ul> tag on its own line.
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9814:1-9831:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[TOC]</span>
+<pre data-sourcepos="9809:1-9826:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -8723,7 +8705,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="9833:1-9850:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[[_TOC_]]</span>
+<pre data-sourcepos="9828:1-9845:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -8741,10 +8723,10 @@ Add either the <code>[[_TOC_]]</code> or </p><ul class="section-nav">
<span id="LC16" class="line" lang="plaintext">&lt;h2&gt;Heading 2&lt;/h2&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9852:1-9853:5" dir="auto">A table of contents is a block element. It should preceded and followed by a blank
+<p data-sourcepos="9847:1-9848:5" dir="auto">A table of contents is a block element. It should preceded and followed by a blank
line.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9855:1-9864:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[[_TOC_]]</span>
+<pre data-sourcepos="9850:1-9859:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -8754,9 +8736,9 @@ line.</p>
<span id="LC8" class="line" lang="plaintext">&lt;p&gt;text[TOC]&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9866:1-9866:60" dir="auto">A table of contents can be indented with up to three spaces.</p>
+<p data-sourcepos="9861:1-9861:60" dir="auto">A table of contents can be indented with up to three spaces.</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9868:1-9879:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> [[_TOC_]]</span>
+<pre data-sourcepos="9863:1-9874:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
@@ -8768,452 +8750,100 @@ line.</p>
<span id="LC10" class="line" lang="plaintext">&lt;h1&gt;Heading 1&lt;/h1&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h1 data-sourcepos="9881:1-9881:36" dir="auto">
+<h1 data-sourcepos="9876:1-9876: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="9883:1-9883:8" dir="auto">
+<h2 data-sourcepos="9878:1-9878:8" dir="auto">
<a id="user-content-audio" class="anchor" href="#audio" aria-hidden="true"></a>Audio</h2>
-<p data-sourcepos="9885:1-9886:107" dir="auto">See
+<p data-sourcepos="9880:1-9881: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="9888:1-9890:63" dir="auto">GLFM renders image elements as an audio player as long as the resource’s file extension is
+<p data-sourcepos="9883:1-9885: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9892:1-9896:32" class="code highlight js-syntax-highlight language-plaintext" lang="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="9887:1-9891:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;p&gt;&lt;audio src="audio.oga" title="audio title"&gt;&lt;/audio&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9898:1-9898:41" dir="auto">Reference definitions work audio as well:</p>
+<p data-sourcepos="9893:1-9893:41" dir="auto">Reference definitions work audio as well:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9900:1-9906:32" class="code highlight js-syntax-highlight language-plaintext" lang="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="9895:1-9901:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;audio src="audio.oga" title="audio title"&gt;&lt;/audio&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="9908:1-9908:8" dir="auto">
+<h2 data-sourcepos="9903:1-9903:8" dir="auto">
<a id="user-content-video" class="anchor" href="#video" aria-hidden="true"></a>Video</h2>
-<p data-sourcepos="9910:1-9911:109" dir="auto">See
+<p data-sourcepos="9905:1-9906: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="9913:1-9915:64" dir="auto">GLFM renders image elements as a video player as long as the resource’s file extension is
+<p data-sourcepos="9908:1-9910: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9918:1-9922:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![video](video.m4v "video title")</span>
+<pre data-sourcepos="9913:1-9917:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">![video](video.m4v "video title")</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;video src="video.m4v" title="video title"&gt;&lt;/video&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9924:1-9924:41" dir="auto">Reference definitions work video as well:</p>
+<p data-sourcepos="9919:1-9919:41" dir="auto">Reference definitions work video as well:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9926:1-9932:32" class="code highlight js-syntax-highlight language-plaintext" lang="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="9921:1-9927:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC4" class="line" lang="plaintext">.</span>
<span id="LC5" class="line" lang="plaintext">&lt;p&gt;&lt;video src="video.mov" title="video title"&gt;&lt;/video&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<h2 data-sourcepos="9934:1-9934:41" dir="auto">
+<h2 data-sourcepos="9929:1-9929: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="9936:1-9938:42" dir="auto">This section contains examples of all controllers which use <code>PreviewMarkdown</code> module
+<p data-sourcepos="9931:1-9933: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="9941:1-9941:75" dir="auto"><code>preview_markdown</code> exercising <code>groups</code> API endpoint and <code>UploadLinkFilter</code>:</p>
+<p data-sourcepos="9936:1-9936:75" dir="auto"><code>preview_markdown</code> exercising <code>groups</code> API endpoint and <code>UploadLinkFilter</code>:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9943:1-9947:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[groups-test-file](/uploads/groups-test-file)</span>
+<pre data-sourcepos="9938:1-9942:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[groups-test-file](/uploads/groups-test-file)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="groups-test-file"&gt;groups-test-file&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9949:1-9949:81" dir="auto"><code>preview_markdown</code> exercising <code>projects</code> API endpoint and <code>RepositoryLinkFilter</code>:</p>
+<p data-sourcepos="9944:1-9944:81" dir="auto"><code>preview_markdown</code> exercising <code>projects</code> API endpoint and <code>RepositoryLinkFilter</code>:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9951:1-9955:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[projects-test-file](projects-test-file)</span>
+<pre data-sourcepos="9946:1-9950:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[projects-test-file](projects-test-file)</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="projects-test-file"&gt;projects-test-file&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9957:1-9957:83" dir="auto"><code>preview_markdown</code> exercising <code>projects</code> API endpoint and <code>SnippetReferenceFilter</code>:</p>
+<p data-sourcepos="9952:1-9952:83" dir="auto"><code>preview_markdown</code> exercising <code>projects</code> API endpoint and <code>SnippetReferenceFilter</code>:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9959:1-9963:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<pre data-sourcepos="9954:1-9958:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;This project snippet ID reference IS filtered: $88888&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9965:1-9968:50" dir="auto"><code>preview_markdown</code> exercising personal (non-project) <code>snippets</code> API endpoint. This is
+<p data-sourcepos="9960:1-9963: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9970:1-9974:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<pre data-sourcepos="9965:1-9969:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;This personal snippet ID reference is not filtered: $99999&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9976:1-9976:80" dir="auto"><code>preview_markdown</code> exercising project <code>wikis</code> API endpoint and <code>WikiLinkFilter</code>:</p>
+<p data-sourcepos="9971:1-9971:80" dir="auto"><code>preview_markdown</code> exercising project <code>wikis</code> API endpoint and <code>WikiLinkFilter</code>:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9978:1-9982:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<pre data-sourcepos="9973:1-9977:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="project-wikis-test-file"&gt;project-wikis-test-file&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-<p data-sourcepos="9984:1-9985:63" dir="auto"><code>preview_markdown</code> exercising group <code>wikis</code> API endpoint and <code>WikiLinkFilter</code>. This example
+<p data-sourcepos="9979:1-9980: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 class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="9987:1-9991:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<pre data-sourcepos="9982:1-9986:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;a href="group-wikis-test-file"&gt;group-wikis-test-file&lt;/a&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
-
-<h1 data-sourcepos="9995:1-9995:30" dir="auto">
-<a id="user-content-appendix-a-parsing-strategy" class="anchor" href="#appendix-a-parsing-strategy" aria-hidden="true"></a>Appendix: A parsing strategy</h1>
-<p data-sourcepos="9997:1-9998:49" dir="auto">In this appendix we describe some features of the parsing strategy
-used in the CommonMark reference implementations.</p>
-<h2 data-sourcepos="10000:1-10000:11" dir="auto">
-<a id="user-content-overview" class="anchor" href="#overview" aria-hidden="true"></a>Overview</h2>
-<p data-sourcepos="10002:1-10002:23" dir="auto">Parsing has two phases:</p>
-<ol data-sourcepos="10004:1-10014:0" dir="auto">
-<li data-sourcepos="10004:1-10009:0">
-<p data-sourcepos="10004:4-10008:28">In the first phase, lines of input are consumed and the block
-structure of the document---its division into paragraphs, block quotes,
-list items, and so on---is constructed. Text is assigned to these
-blocks but not parsed. Link reference definitions are parsed and a
-map of links is constructed.</p>
-</li>
-<li data-sourcepos="10010:1-10014:0">
-<p data-sourcepos="10010:4-10013:34">In the second phase, the raw text contents of paragraphs and headings
-are parsed into sequences of Markdown inline elements (strings,
-code spans, links, emphasis, and so on), using the map of link
-references constructed in phase 1.</p>
-</li>
-</ol>
-<p data-sourcepos="10015:1-10022:17" dir="auto">At each point in processing, the document is represented as a tree of
-<strong>blocks</strong>. The root of the tree is a <code>document</code> block. The <code>document</code>
-may have any number of other blocks as <strong>children</strong>. These children
-may, in turn, have other blocks as children. The last child of a block
-is normally considered <strong>open</strong>, meaning that subsequent lines of input
-can alter its contents. (Blocks that are not open are <strong>closed</strong>.)
-Here, for example, is a possible document tree, with the open blocks
-marked by arrows:</p>
-<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="10024:1-10036:3" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="tree" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-&gt; document</span>
-<span id="LC2" class="line" lang="plaintext"> -&gt; block_quote</span>
-<span id="LC3" class="line" lang="plaintext"> paragraph</span>
-<span id="LC4" class="line" lang="plaintext"> "Lorem ipsum dolor\nsit amet."</span>
-<span id="LC5" class="line" lang="plaintext"> -&gt; list (type=bullet tight=true bullet_char=-)</span>
-<span id="LC6" class="line" lang="plaintext"> list_item</span>
-<span id="LC7" class="line" lang="plaintext"> paragraph</span>
-<span id="LC8" class="line" lang="plaintext"> "Qui *quodsi iracundia*"</span>
-<span id="LC9" class="line" lang="plaintext"> -&gt; list_item</span>
-<span id="LC10" class="line" lang="plaintext"> -&gt; paragraph</span>
-<span id="LC11" class="line" lang="plaintext"> "aliquando id"</span></code></pre>
-<copy-code></copy-code>
-</div>
-<h2 data-sourcepos="10038:1-10038:27" dir="auto">
-<a id="user-content-phase-1-block-structure" class="anchor" href="#phase-1-block-structure" aria-hidden="true"></a>Phase 1: block structure</h2>
-<p data-sourcepos="10040:1-10042:37" dir="auto">Each line that is processed has an effect on this tree. The line is
-analyzed and, depending on its contents, the document may be altered
-in one or more of the following ways:</p>
-<ol data-sourcepos="10044:1-10049:0" dir="auto">
-<li data-sourcepos="10044:1-10044:41">One or more open blocks may be closed.</li>
-<li data-sourcepos="10045:1-10046:19">One or more new blocks may be created as children of the
-last open block.</li>
-<li data-sourcepos="10047:1-10049:0">Text may be added to the last (deepest) open block remaining
-on the tree.</li>
-</ol>
-<p data-sourcepos="10050:1-10051:54" dir="auto">Once a line has been incorporated into the tree in this way,
-it can be discarded, so input can be read in a stream.</p>
-<p data-sourcepos="10053:1-10053:40" dir="auto">For each line, we follow this procedure:</p>
-<ol data-sourcepos="10055:1-10074:0" dir="auto">
-<li data-sourcepos="10055:1-10063:0">
-<p data-sourcepos="10055:4-10062:25">First we iterate through the open blocks, starting with the
-root document, and descending through last children down to the last
-open block. Each block imposes a condition that the line must satisfy
-if the block is to remain open. For example, a block quote requires a
-<code>&gt;</code> character. A paragraph requires a non-blank line.
-In this phase we may match all or just some of the open
-blocks. But we cannot close unmatched blocks yet, because we may have a
-[lazy continuation line].</p>
-</li>
-<li data-sourcepos="10064:1-10069:0">
-<p data-sourcepos="10064:5-10068:14">Next, after consuming the continuation markers for existing
-blocks, we look for new block starts (e.g. <code>&gt;</code> for a block quote).
-If we encounter a new block start, we close any blocks unmatched
-in step 1 before creating the new block as a child of the last
-matched block.</p>
-</li>
-<li data-sourcepos="10070:1-10074:0">
-<p data-sourcepos="10070:5-10073:54">Finally, we look at the remainder of the line (after block
-markers like <code>&gt;</code>, list markers, and indentation have been consumed).
-This is text that can be incorporated into the last open
-block (a paragraph, code block, heading, or raw HTML).</p>
-</li>
-</ol>
-<p data-sourcepos="10075:1-10076:37" dir="auto">Setext headings are formed when we see a line of a paragraph
-that is a [setext heading underline].</p>
-<p data-sourcepos="10078:1-10081:17" dir="auto">Reference link definitions are detected when a paragraph is closed;
-the accumulated text lines are parsed to see if they begin with
-one or more reference link definitions. Any remainder becomes a
-normal paragraph.</p>
-<p data-sourcepos="10083:1-10084:36" dir="auto">We can see how this works by considering how the tree above is
-generated by four lines of Markdown:</p>
-<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="10086:1-10091:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">&gt; Lorem ipsum dolor</span></span>
-<span id="LC2" class="line" lang="markdown">sit amet.</span>
-<span id="LC3" class="line" lang="markdown"><span class="gt">&gt; - Qui *quodsi iracundia*</span></span>
-<span id="LC4" class="line" lang="markdown"><span class="gt">&gt; - aliquando id</span></span></code></pre>
-<copy-code></copy-code>
-</div>
-<p data-sourcepos="10093:1-10093:41" dir="auto">At the outset, our document model is just</p>
-<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="10095:1-10097:3" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="tree" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-&gt; document</span></code></pre>
-<copy-code></copy-code>
-</div>
-<p data-sourcepos="10099:1-10099:27" dir="auto">The first line of our text,</p>
-<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="10101:1-10103:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">&gt; Lorem ipsum dolor</span></span></code></pre>
-<copy-code></copy-code>
-</div>
-<p data-sourcepos="10105:1-10108:23" dir="auto">causes a <code>block_quote</code> block to be created as a child of our
-open <code>document</code> block, and a <code>paragraph</code> block as a child of
-the <code>block_quote</code>. Then the text is added to the last open
-block, the <code>paragraph</code>:</p>
-<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="10110:1-10115:3" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="tree" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-&gt; document</span>
-<span id="LC2" class="line" lang="plaintext"> -&gt; block_quote</span>
-<span id="LC3" class="line" lang="plaintext"> -&gt; paragraph</span>
-<span id="LC4" class="line" lang="plaintext"> "Lorem ipsum dolor"</span></code></pre>
-<copy-code></copy-code>
-</div>
-<p data-sourcepos="10117:1-10117:14" dir="auto">The next line,</p>
-<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="10119:1-10121:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown">sit amet.</span></code></pre>
-<copy-code></copy-code>
-</div>
-<p data-sourcepos="10123:1-10124:24" dir="auto">is a "lazy continuation" of the open <code>paragraph</code>, so it gets added
-to the paragraph's text:</p>
-<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="10126:1-10131:3" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="tree" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-&gt; document</span>
-<span id="LC2" class="line" lang="plaintext"> -&gt; block_quote</span>
-<span id="LC3" class="line" lang="plaintext"> -&gt; paragraph</span>
-<span id="LC4" class="line" lang="plaintext"> "Lorem ipsum dolor\nsit amet."</span></code></pre>
-<copy-code></copy-code>
-</div>
-<p data-sourcepos="10133:1-10133:15" dir="auto">The third line,</p>
-<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="10135:1-10137:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">&gt; - Qui *quodsi iracundia*</span></span></code></pre>
-<copy-code></copy-code>
-</div>
-<p data-sourcepos="10139:1-10142:64" dir="auto">causes the <code>paragraph</code> block to be closed, and a new <code>list</code> block
-opened as a child of the <code>block_quote</code>. A <code>list_item</code> is also
-added as a child of the <code>list</code>, and a <code>paragraph</code> as a child of
-the <code>list_item</code>. The text is then added to the new <code>paragraph</code>:</p>
-<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="10144:1-10153:3" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="tree" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-&gt; document</span>
-<span id="LC2" class="line" lang="plaintext"> -&gt; block_quote</span>
-<span id="LC3" class="line" lang="plaintext"> paragraph</span>
-<span id="LC4" class="line" lang="plaintext"> "Lorem ipsum dolor\nsit amet."</span>
-<span id="LC5" class="line" lang="plaintext"> -&gt; list (type=bullet tight=true bullet_char=-)</span>
-<span id="LC6" class="line" lang="plaintext"> -&gt; list_item</span>
-<span id="LC7" class="line" lang="plaintext"> -&gt; paragraph</span>
-<span id="LC8" class="line" lang="plaintext"> "Qui *quodsi iracundia*"</span></code></pre>
-<copy-code></copy-code>
-</div>
-<p data-sourcepos="10155:1-10155:16" dir="auto">The fourth line,</p>
-<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="10157:1-10159:3" class="code highlight js-syntax-highlight language-markdown" lang="markdown" v-pre="true"><code><span id="LC1" class="line" lang="markdown"><span class="gt">&gt; - aliquando id</span></span></code></pre>
-<copy-code></copy-code>
-</div>
-<p data-sourcepos="10161:1-10164:30" dir="auto">causes the <code>list_item</code> (and its child the <code>paragraph</code>) to be closed,
-and a new <code>list_item</code> opened up as child of the <code>list</code>. A <code>paragraph</code>
-is added as a child of the new <code>list_item</code>, to contain the text.
-We thus obtain the final tree:</p>
-<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="10166:1-10178:3" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="tree" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">-&gt; document</span>
-<span id="LC2" class="line" lang="plaintext"> -&gt; block_quote</span>
-<span id="LC3" class="line" lang="plaintext"> paragraph</span>
-<span id="LC4" class="line" lang="plaintext"> "Lorem ipsum dolor\nsit amet."</span>
-<span id="LC5" class="line" lang="plaintext"> -&gt; list (type=bullet tight=true bullet_char=-)</span>
-<span id="LC6" class="line" lang="plaintext"> list_item</span>
-<span id="LC7" class="line" lang="plaintext"> paragraph</span>
-<span id="LC8" class="line" lang="plaintext"> "Qui *quodsi iracundia*"</span>
-<span id="LC9" class="line" lang="plaintext"> -&gt; list_item</span>
-<span id="LC10" class="line" lang="plaintext"> -&gt; paragraph</span>
-<span id="LC11" class="line" lang="plaintext"> "aliquando id"</span></code></pre>
-<copy-code></copy-code>
-</div>
-<h2 data-sourcepos="10180:1-10180:28" dir="auto">
-<a id="user-content-phase-2-inline-structure" class="anchor" href="#phase-2-inline-structure" aria-hidden="true"></a>Phase 2: inline structure</h2>
-<p data-sourcepos="10182:1-10182:66" dir="auto">Once all of the input has been parsed, all open blocks are closed.</p>
-<p data-sourcepos="10184:1-10187:33" dir="auto">We then "walk the tree," visiting every node, and parse raw
-string contents of paragraphs and headings as inlines. At this
-point we have seen all the link reference definitions, so we can
-resolve reference links as we go.</p>
-<div class="gl-relative markdown-code-block js-markdown-code">
-<pre data-sourcepos="10189:1-10205:3" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="tree" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">document</span>
-<span id="LC2" class="line" lang="plaintext"> block_quote</span>
-<span id="LC3" class="line" lang="plaintext"> paragraph</span>
-<span id="LC4" class="line" lang="plaintext"> str "Lorem ipsum dolor"</span>
-<span id="LC5" class="line" lang="plaintext"> softbreak</span>
-<span id="LC6" class="line" lang="plaintext"> str "sit amet."</span>
-<span id="LC7" class="line" lang="plaintext"> list (type=bullet tight=true bullet_char=-)</span>
-<span id="LC8" class="line" lang="plaintext"> list_item</span>
-<span id="LC9" class="line" lang="plaintext"> paragraph</span>
-<span id="LC10" class="line" lang="plaintext"> str "Qui "</span>
-<span id="LC11" class="line" lang="plaintext"> emph</span>
-<span id="LC12" class="line" lang="plaintext"> str "quodsi iracundia"</span>
-<span id="LC13" class="line" lang="plaintext"> list_item</span>
-<span id="LC14" class="line" lang="plaintext"> paragraph</span>
-<span id="LC15" class="line" lang="plaintext"> str "aliquando id"</span></code></pre>
-<copy-code></copy-code>
-</div>
-<p data-sourcepos="10207:1-10209:22" dir="auto">Notice how the [line ending] in the first paragraph has
-been parsed as a <code>softbreak</code>, and the asterisks in the first list item
-have become an <code>emph</code>.</p>
-<h3 data-sourcepos="10211:1-10211:54" dir="auto">
-<a id="user-content-an-algorithm-for-parsing-nested-emphasis-and-links" class="anchor" href="#an-algorithm-for-parsing-nested-emphasis-and-links" aria-hidden="true"></a>An algorithm for parsing nested emphasis and links</h3>
-<p data-sourcepos="10213:1-10215:10" dir="auto">By far the trickiest part of inline parsing is handling emphasis,
-strong emphasis, links, and images. This is done using the following
-algorithm.</p>
-<p data-sourcepos="10217:1-10217:44" dir="auto">When we're parsing inlines and we hit either</p>
-<ul data-sourcepos="10219:1-10221:0" dir="auto">
-<li data-sourcepos="10219:1-10219:36">a run of <code>*</code> or <code>_</code> characters, or</li>
-<li data-sourcepos="10220:1-10221:0">a <code>[</code> or <code>![</code>
-</li>
-</ul>
-<p data-sourcepos="10222:1-10223:60" dir="auto">we insert a text node with these symbols as its literal content, and we
-add a pointer to this text node to the <a href="@">delimiter stack</a>.</p>
-<p data-sourcepos="10225:1-10226:65" dir="auto">The [delimiter stack] is a doubly linked list. Each
-element contains a pointer to a text node, plus information about</p>
-<ul data-sourcepos="10228:1-10234:0" dir="auto">
-<li data-sourcepos="10228:1-10228:45">the type of delimiter (<code>[</code>, <code>![</code>, <code>*</code>, <code>_</code>)</li>
-<li data-sourcepos="10229:1-10229:27">the number of delimiters,</li>
-<li data-sourcepos="10230:1-10230:66">whether the delimiter is "active" (all are active to start), and</li>
-<li data-sourcepos="10231:1-10234:0">whether the delimiter is a potential opener, a potential closer,
-or both (which depends on what sort of characters precede
-and follow the delimiters).</li>
-</ul>
-<p data-sourcepos="10235:1-10236:22" dir="auto">When we hit a <code>]</code> character, we call the <em>look for link or image</em>
-procedure (see below).</p>
-<p data-sourcepos="10238:1-10239:50" dir="auto">When we hit the end of the input, we call the <em>process emphasis</em>
-procedure (see below), with <code>stack_bottom</code> = NULL.</p>
-<h4 data-sourcepos="10241:1-10241:29" dir="auto">
-<a id="user-content-look-for-link-or-image" class="anchor" href="#look-for-link-or-image" aria-hidden="true"></a><em>look for link or image</em>
-</h4>
-<p data-sourcepos="10243:1-10244:55" dir="auto">Starting at the top of the delimiter stack, we look backwards
-through the stack for an opening <code>[</code> or <code>![</code> delimiter.</p>
-<ul data-sourcepos="10246:1-10271:0" dir="auto">
-<li data-sourcepos="10246:1-10247:0">
-<p data-sourcepos="10246:3-10246:58">If we don't find one, we return a literal text node <code>]</code>.</p>
-</li>
-<li data-sourcepos="10248:1-10250:0">
-<p data-sourcepos="10248:3-10249:63">If we do find one, but it's not <em>active</em>, we remove the inactive
-delimiter from the stack, and return a literal text node <code>]</code>.</p>
-</li>
-<li data-sourcepos="10251:1-10271:0">
-<p data-sourcepos="10251:3-10253:47">If we find one and it's active, then we parse ahead to see if
-we have an inline link/image, reference link/image, compact reference
-link/image, or shortcut reference link/image.</p>
-<ul data-sourcepos="10255:3-10271:0">
-<li data-sourcepos="10255:3-10257:0">
-<p data-sourcepos="10255:5-10256:55">If we don't, then we remove the opening delimiter from the
-delimiter stack and return a literal text node <code>]</code>.</p>
-</li>
-<li data-sourcepos="10258:3-10271:0">
-<p data-sourcepos="10258:5-10258:18">If we do, then</p>
-<ul data-sourcepos="10260:5-10271:0">
-<li data-sourcepos="10260:5-10262:0">
-<p data-sourcepos="10260:7-10261:62">We return a link or image node whose children are the inlines
-after the text node pointed to by the opening delimiter.</p>
-</li>
-<li data-sourcepos="10263:5-10265:0">
-<p data-sourcepos="10263:7-10264:24">We run <em>process emphasis</em> on these inlines, with the <code>[</code> opener
-as <code>stack_bottom</code>.</p>
-</li>
-<li data-sourcepos="10266:5-10267:0">
-<p data-sourcepos="10266:7-10266:38">We remove the opening delimiter.</p>
-</li>
-<li data-sourcepos="10268:5-10271:0">
-<p data-sourcepos="10268:7-10270:55">If we have a link (and not an image), we also set all
-<code>[</code> delimiters before the opening delimiter to <em>inactive</em>. (This
-will prevent us from getting links within links.)</p>
-</li>
-</ul>
-</li>
-</ul>
-</li>
-</ul>
-<h4 data-sourcepos="10272:1-10272:23" dir="auto">
-<a id="user-content-process-emphasis" class="anchor" href="#process-emphasis" aria-hidden="true"></a><em>process emphasis</em>
-</h4>
-<p data-sourcepos="10274:1-10277:24" dir="auto">Parameter <code>stack_bottom</code> sets a lower bound to how far we
-descend in the [delimiter stack]. If it is NULL, we can
-go all the way to the bottom. Otherwise, we stop before
-visiting <code>stack_bottom</code>.</p>
-<p data-sourcepos="10279:1-10281:9" dir="auto">Let <code>current_position</code> point to the element on the [delimiter stack]
-just above <code>stack_bottom</code> (or the first element if <code>stack_bottom</code>
-is NULL).</p>
-<p data-sourcepos="10283:1-10285:47" dir="auto">We keep track of the <code>openers_bottom</code> for each delimiter
-type (<code>*</code>, <code>_</code>) and each length of the closing delimiter run
-(modulo 3). Initialize this to <code>stack_bottom</code>.</p>
-<p data-sourcepos="10287:1-10288:8" dir="auto">Then we repeat the following until we run out of potential
-closers:</p>
-<ul data-sourcepos="10290:1-10328:0" dir="auto">
-<li data-sourcepos="10290:1-10294:0">
-<p data-sourcepos="10290:3-10293:65">Move <code>current_position</code> forward in the delimiter stack (if needed)
-until we find the first potential closer with delimiter <code>*</code> or <code>_</code>.
-(This will be the potential closer closest
-to the beginning of the input -- the first one in parse order.)</p>
-</li>
-<li data-sourcepos="10295:1-10298:0">
-<p data-sourcepos="10295:3-10297:68">Now, look back in the stack (staying above <code>stack_bottom</code> and
-the <code>openers_bottom</code> for this delimiter type) for the
-first matching potential opener ("matching" means same delimiter).</p>
-</li>
-<li data-sourcepos="10299:1-10316:0">
-<p data-sourcepos="10299:3-10299:18">If one is found:</p>
-<ul data-sourcepos="10301:3-10316:0">
-<li data-sourcepos="10301:3-10304:0">
-<p data-sourcepos="10301:5-10303:30">Figure out whether we have emphasis or strong emphasis:
-if both closer and opener spans have length &gt;= 2, we have
-strong, otherwise regular.</p>
-</li>
-<li data-sourcepos="10305:3-10307:0">
-<p data-sourcepos="10305:5-10306:46">Insert an emph or strong emph node accordingly, after
-the text node corresponding to the opener.</p>
-</li>
-<li data-sourcepos="10308:3-10310:0">
-<p data-sourcepos="10308:5-10309:24">Remove any delimiters between the opener and closer from
-the delimiter stack.</p>
-</li>
-<li data-sourcepos="10311:3-10316:0">
-<p data-sourcepos="10311:5-10315:56">Remove 1 (for regular emph) or 2 (for strong emph) delimiters
-from the opening and closing text nodes. If they become empty
-as a result, remove them and remove the corresponding element
-of the delimiter stack. If the closing node is removed, reset
-<code>current_position</code> to the next element in the stack.</p>
-</li>
-</ul>
-</li>
-<li data-sourcepos="10317:1-10328:0">
-<p data-sourcepos="10317:3-10317:19">If none is found:</p>
-<ul data-sourcepos="10319:3-10328:0">
-<li data-sourcepos="10319:3-10322:0">
-<p data-sourcepos="10319:5-10321:73">Set <code>openers_bottom</code> to the element before <code>current_position</code>.
-(We know that there are no openers for this kind of closer up to and
-including this point, so this puts a lower bound on future searches.)</p>
-</li>
-<li data-sourcepos="10323:3-10326:0">
-<p data-sourcepos="10323:5-10325:24">If the closer at <code>current_position</code> is not a potential opener,
-remove it from the delimiter stack (since we know it can't
-be a closer either).</p>
-</li>
-<li data-sourcepos="10327:3-10328:0">
-<p data-sourcepos="10327:5-10327:64">Advance <code>current_position</code> to the next element in the stack.</p>
-</li>
-</ul>
-</li>
-</ul>
-<p data-sourcepos="10329:1-10330:16" dir="auto">After we're done, we remove all delimiters above <code>stack_bottom</code> from the
-delimiter stack.</p>
diff --git a/glfm_specification/output/spec.txt b/glfm_specification/output_example_snapshots/snapshot_spec.md
index a8565b15bc3..ed96c36a58a 100644
--- a/glfm_specification/output/spec.txt
+++ b/glfm_specification/output_example_snapshots/snapshot_spec.md
@@ -2,11 +2,6 @@
title: GitLab Flavored Markdown (GLFM) Spec
version: alpha
...
-
-# Introduction
-
-TODO: Write a GitLab-specific version of the GitHub Flavored Markdown intro section.
-
# Preliminaries
## Characters and lines
@@ -9603,7 +9598,7 @@ Multiple spaces
# GitLab Official Specification Markdown
Currently, only some of the GitLab-specific markdown features are
-listed in this section. We will eventually add all
+listed in this section. We may eventually add all
GitLab-specific features currently listed as supported in the
[user-facing documentation for GitLab Flavored Markdown](https://docs.gitlab.com/ee/user/markdown.html).
@@ -9989,342 +9984,3 @@ also requires an EE license enabling the `group_wikis` feature:
.
<p><a href="group-wikis-test-file">group-wikis-test-file</a></p>
````````````````````````````````
-
-<!-- END TESTS -->
-
-# Appendix: A parsing strategy
-
-In this appendix we describe some features of the parsing strategy
-used in the CommonMark reference implementations.
-
-## Overview
-
-Parsing has two phases:
-
-1. In the first phase, lines of input are consumed and the block
-structure of the document---its division into paragraphs, block quotes,
-list items, and so on---is constructed. Text is assigned to these
-blocks but not parsed. Link reference definitions are parsed and a
-map of links is constructed.
-
-2. In the second phase, the raw text contents of paragraphs and headings
-are parsed into sequences of Markdown inline elements (strings,
-code spans, links, emphasis, and so on), using the map of link
-references constructed in phase 1.
-
-At each point in processing, the document is represented as a tree of
-**blocks**. The root of the tree is a `document` block. The `document`
-may have any number of other blocks as **children**. These children
-may, in turn, have other blocks as children. The last child of a block
-is normally considered **open**, meaning that subsequent lines of input
-can alter its contents. (Blocks that are not open are **closed**.)
-Here, for example, is a possible document tree, with the open blocks
-marked by arrows:
-
-``` tree
--> document
- -> block_quote
- paragraph
- "Lorem ipsum dolor\nsit amet."
- -> list (type=bullet tight=true bullet_char=-)
- list_item
- paragraph
- "Qui *quodsi iracundia*"
- -> list_item
- -> paragraph
- "aliquando id"
-```
-
-## Phase 1: block structure
-
-Each line that is processed has an effect on this tree. The line is
-analyzed and, depending on its contents, the document may be altered
-in one or more of the following ways:
-
-1. One or more open blocks may be closed.
-2. One or more new blocks may be created as children of the
- last open block.
-3. Text may be added to the last (deepest) open block remaining
- on the tree.
-
-Once a line has been incorporated into the tree in this way,
-it can be discarded, so input can be read in a stream.
-
-For each line, we follow this procedure:
-
-1. First we iterate through the open blocks, starting with the
-root document, and descending through last children down to the last
-open block. Each block imposes a condition that the line must satisfy
-if the block is to remain open. For example, a block quote requires a
-`>` character. A paragraph requires a non-blank line.
-In this phase we may match all or just some of the open
-blocks. But we cannot close unmatched blocks yet, because we may have a
-[lazy continuation line].
-
-2. Next, after consuming the continuation markers for existing
-blocks, we look for new block starts (e.g. `>` for a block quote).
-If we encounter a new block start, we close any blocks unmatched
-in step 1 before creating the new block as a child of the last
-matched block.
-
-3. Finally, we look at the remainder of the line (after block
-markers like `>`, list markers, and indentation have been consumed).
-This is text that can be incorporated into the last open
-block (a paragraph, code block, heading, or raw HTML).
-
-Setext headings are formed when we see a line of a paragraph
-that is a [setext heading underline].
-
-Reference link definitions are detected when a paragraph is closed;
-the accumulated text lines are parsed to see if they begin with
-one or more reference link definitions. Any remainder becomes a
-normal paragraph.
-
-We can see how this works by considering how the tree above is
-generated by four lines of Markdown:
-
-``` markdown
-> Lorem ipsum dolor
-sit amet.
-> - Qui *quodsi iracundia*
-> - aliquando id
-```
-
-At the outset, our document model is just
-
-``` tree
--> document
-```
-
-The first line of our text,
-
-``` markdown
-> Lorem ipsum dolor
-```
-
-causes a `block_quote` block to be created as a child of our
-open `document` block, and a `paragraph` block as a child of
-the `block_quote`. Then the text is added to the last open
-block, the `paragraph`:
-
-``` tree
--> document
- -> block_quote
- -> paragraph
- "Lorem ipsum dolor"
-```
-
-The next line,
-
-``` markdown
-sit amet.
-```
-
-is a "lazy continuation" of the open `paragraph`, so it gets added
-to the paragraph's text:
-
-``` tree
--> document
- -> block_quote
- -> paragraph
- "Lorem ipsum dolor\nsit amet."
-```
-
-The third line,
-
-``` markdown
-> - Qui *quodsi iracundia*
-```
-
-causes the `paragraph` block to be closed, and a new `list` block
-opened as a child of the `block_quote`. A `list_item` is also
-added as a child of the `list`, and a `paragraph` as a child of
-the `list_item`. The text is then added to the new `paragraph`:
-
-``` tree
--> document
- -> block_quote
- paragraph
- "Lorem ipsum dolor\nsit amet."
- -> list (type=bullet tight=true bullet_char=-)
- -> list_item
- -> paragraph
- "Qui *quodsi iracundia*"
-```
-
-The fourth line,
-
-``` markdown
-> - aliquando id
-```
-
-causes the `list_item` (and its child the `paragraph`) to be closed,
-and a new `list_item` opened up as child of the `list`. A `paragraph`
-is added as a child of the new `list_item`, to contain the text.
-We thus obtain the final tree:
-
-``` tree
--> document
- -> block_quote
- paragraph
- "Lorem ipsum dolor\nsit amet."
- -> list (type=bullet tight=true bullet_char=-)
- list_item
- paragraph
- "Qui *quodsi iracundia*"
- -> list_item
- -> paragraph
- "aliquando id"
-```
-
-## Phase 2: inline structure
-
-Once all of the input has been parsed, all open blocks are closed.
-
-We then "walk the tree," visiting every node, and parse raw
-string contents of paragraphs and headings as inlines. At this
-point we have seen all the link reference definitions, so we can
-resolve reference links as we go.
-
-``` tree
-document
- block_quote
- paragraph
- str "Lorem ipsum dolor"
- softbreak
- str "sit amet."
- list (type=bullet tight=true bullet_char=-)
- list_item
- paragraph
- str "Qui "
- emph
- str "quodsi iracundia"
- list_item
- paragraph
- str "aliquando id"
-```
-
-Notice how the [line ending] in the first paragraph has
-been parsed as a `softbreak`, and the asterisks in the first list item
-have become an `emph`.
-
-### An algorithm for parsing nested emphasis and links
-
-By far the trickiest part of inline parsing is handling emphasis,
-strong emphasis, links, and images. This is done using the following
-algorithm.
-
-When we're parsing inlines and we hit either
-
-- a run of `*` or `_` characters, or
-- a `[` or `![`
-
-we insert a text node with these symbols as its literal content, and we
-add a pointer to this text node to the [delimiter stack](@).
-
-The [delimiter stack] is a doubly linked list. Each
-element contains a pointer to a text node, plus information about
-
-- the type of delimiter (`[`, `![`, `*`, `_`)
-- the number of delimiters,
-- whether the delimiter is "active" (all are active to start), and
-- whether the delimiter is a potential opener, a potential closer,
- or both (which depends on what sort of characters precede
- and follow the delimiters).
-
-When we hit a `]` character, we call the *look for link or image*
-procedure (see below).
-
-When we hit the end of the input, we call the *process emphasis*
-procedure (see below), with `stack_bottom` = NULL.
-
-#### *look for link or image*
-
-Starting at the top of the delimiter stack, we look backwards
-through the stack for an opening `[` or `![` delimiter.
-
-- If we don't find one, we return a literal text node `]`.
-
-- If we do find one, but it's not *active*, we remove the inactive
- delimiter from the stack, and return a literal text node `]`.
-
-- If we find one and it's active, then we parse ahead to see if
- we have an inline link/image, reference link/image, compact reference
- link/image, or shortcut reference link/image.
-
- + If we don't, then we remove the opening delimiter from the
- delimiter stack and return a literal text node `]`.
-
- + If we do, then
-
- * We return a link or image node whose children are the inlines
- after the text node pointed to by the opening delimiter.
-
- * We run *process emphasis* on these inlines, with the `[` opener
- as `stack_bottom`.
-
- * We remove the opening delimiter.
-
- * If we have a link (and not an image), we also set all
- `[` delimiters before the opening delimiter to *inactive*. (This
- will prevent us from getting links within links.)
-
-#### *process emphasis*
-
-Parameter `stack_bottom` sets a lower bound to how far we
-descend in the [delimiter stack]. If it is NULL, we can
-go all the way to the bottom. Otherwise, we stop before
-visiting `stack_bottom`.
-
-Let `current_position` point to the element on the [delimiter stack]
-just above `stack_bottom` (or the first element if `stack_bottom`
-is NULL).
-
-We keep track of the `openers_bottom` for each delimiter
-type (`*`, `_`) and each length of the closing delimiter run
-(modulo 3). Initialize this to `stack_bottom`.
-
-Then we repeat the following until we run out of potential
-closers:
-
-- Move `current_position` forward in the delimiter stack (if needed)
- until we find the first potential closer with delimiter `*` or `_`.
- (This will be the potential closer closest
- to the beginning of the input -- the first one in parse order.)
-
-- Now, look back in the stack (staying above `stack_bottom` and
- the `openers_bottom` for this delimiter type) for the
- first matching potential opener ("matching" means same delimiter).
-
-- If one is found:
-
- + Figure out whether we have emphasis or strong emphasis:
- if both closer and opener spans have length >= 2, we have
- strong, otherwise regular.
-
- + Insert an emph or strong emph node accordingly, after
- the text node corresponding to the opener.
-
- + Remove any delimiters between the opener and closer from
- the delimiter stack.
-
- + Remove 1 (for regular emph) or 2 (for strong emph) delimiters
- from the opening and closing text nodes. If they become empty
- as a result, remove them and remove the corresponding element
- of the delimiter stack. If the closing node is removed, reset
- `current_position` to the next element in the stack.
-
-- If none is found:
-
- + Set `openers_bottom` to the element before `current_position`.
- (We know that there are no openers for this kind of closer up to and
- including this point, so this puts a lower bound on future searches.)
-
- + If the closer at `current_position` is not a potential opener,
- remove it from the delimiter stack (since we know it can't
- be a closer either).
-
- + Advance `current_position` to the next element in the stack.
-
-After we're done, we remove all delimiters above `stack_bottom` from the
-delimiter stack.
diff --git a/glfm_specification/output_spec/spec.html b/glfm_specification/output_spec/spec.html
new file mode 100644
index 00000000000..3a7b08e0a5e
--- /dev/null
+++ b/glfm_specification/output_spec/spec.html
@@ -0,0 +1,276 @@
+<div class="gl-relative markdown-code-block js-markdown-code">
+<pre data-sourcepos="1:1-4:3" class="code highlight js-syntax-highlight language-yaml" lang="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:14" dir="auto">
+<a id="user-content-introduction" class="anchor" href="#introduction" aria-hidden="true"></a>Introduction</h1>
+<p data-sourcepos="7:1-7:84" dir="auto">TODO: Write a GitLab-specific version of the GitHub Flavored Markdown intro section.</p>
+
+<h1 data-sourcepos="10:1-10: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="12:1-15: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="17:1-18: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="20:1-20:12" dir="auto">
+<a id="user-content-footnotes" class="anchor" href="#footnotes" aria-hidden="true"></a>Footnotes</h2>
+<p data-sourcepos="22:1-23: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 class="gl-relative markdown-code-block js-markdown-code">
+<pre data-sourcepos="25:1-49:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<span id="LC4" class="line" lang="plaintext">.</span>
+<span id="LC5" class="line" lang="plaintext">&lt;p&gt;</span>
+<span id="LC6" class="line" lang="plaintext">footnote reference tag</span>
+<span id="LC7" class="line" lang="plaintext">&lt;sup&gt;</span>
+<span id="LC8" class="line" lang="plaintext">&lt;a href="#fn-fortytwo-42" id="fnref-fortytwo-42" data-footnote-ref&gt;</span>
+<span id="LC9" class="line" lang="plaintext">1</span>
+<span id="LC10" class="line" lang="plaintext">&lt;/a&gt;</span>
+<span id="LC11" class="line" lang="plaintext">&lt;/sup&gt;</span>
+<span id="LC12" class="line" lang="plaintext">&lt;/p&gt;</span>
+<span id="LC13" class="line" lang="plaintext">&lt;section data-footnotes&gt;</span>
+<span id="LC14" class="line" lang="plaintext">&lt;ol&gt;</span>
+<span id="LC15" class="line" lang="plaintext">&lt;li id="fn-fortytwo-42"&gt;</span>
+<span id="LC16" class="line" lang="plaintext">&lt;p&gt;</span>
+<span id="LC17" class="line" lang="plaintext">footnote text</span>
+<span id="LC18" class="line" lang="plaintext">&lt;a href="#fnref-fortytwo-42" data-footnote-backref&gt;</span>
+<span id="LC19" class="line" lang="plaintext">&lt;/a&gt;</span>
+<span id="LC20" class="line" lang="plaintext">&lt;/p&gt;</span>
+<span id="LC21" class="line" lang="plaintext">&lt;/li&gt;</span>
+<span id="LC22" class="line" lang="plaintext">&lt;/ol&gt;</span>
+<span id="LC23" class="line" lang="plaintext">&lt;/section&gt;</span></code></pre>
+<copy-code></copy-code>
+</div>
+<h2 data-sourcepos="51:1-51: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="53:1-54: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="56:1-59: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="61:1-61:85" dir="auto">Some of the behavior of task list items is implemented as client-side JavaScript/CSS.</p>
+<p data-sourcepos="63:1-63:80" dir="auto">The following are some basic examples; more examples may be added in the future.</p>
+<p data-sourcepos="65:1-65:16" dir="auto">Incomplete task:</p>
+<div class="gl-relative markdown-code-block js-markdown-code">
+<pre data-sourcepos="67:1-77:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [ ] incomplete</span>
+<span id="LC2" class="line" lang="plaintext">.</span>
+<span id="LC3" class="line" lang="plaintext">&lt;ul&gt;</span>
+<span id="LC4" class="line" lang="plaintext">&lt;li&gt;</span>
+<span id="LC5" class="line" lang="plaintext">&lt;task-button/&gt;</span>
+<span id="LC6" class="line" lang="plaintext">&lt;input type="checkbox" disabled/&gt;</span>
+<span id="LC7" class="line" lang="plaintext">incomplete</span>
+<span id="LC8" class="line" lang="plaintext">&lt;/li&gt;</span>
+<span id="LC9" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
+<copy-code></copy-code>
+</div>
+<p data-sourcepos="79:1-79:15" dir="auto">Completed task:</p>
+<div class="gl-relative markdown-code-block js-markdown-code">
+<pre data-sourcepos="81:1-91:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">- [x] completed</span>
+<span id="LC2" class="line" lang="plaintext">.</span>
+<span id="LC3" class="line" lang="plaintext">&lt;ul&gt;</span>
+<span id="LC4" class="line" lang="plaintext">&lt;li&gt;</span>
+<span id="LC5" class="line" lang="plaintext">&lt;task-button/&gt;</span>
+<span id="LC6" class="line" lang="plaintext">&lt;input type="checkbox" checked disabled/&gt;</span>
+<span id="LC7" class="line" lang="plaintext">completed</span>
+<span id="LC8" class="line" lang="plaintext">&lt;/li&gt;</span>
+<span id="LC9" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
+<copy-code></copy-code>
+</div>
+<p data-sourcepos="93:1-93:18" dir="auto">Inapplicable task:</p>
+<div class="gl-relative markdown-code-block js-markdown-code">
+<pre data-sourcepos="95:1-107:32" class="code highlight js-syntax-highlight language-plaintext" lang="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">&lt;ul&gt;</span>
+<span id="LC4" class="line" lang="plaintext">&lt;li&gt;</span>
+<span id="LC5" class="line" lang="plaintext">&lt;task-button/&gt;</span>
+<span id="LC6" class="line" lang="plaintext">&lt;input type="checkbox" data-inapplicable disabled&gt;</span>
+<span id="LC7" class="line" lang="plaintext">&lt;s&gt;</span>
+<span id="LC8" class="line" lang="plaintext">inapplicable</span>
+<span id="LC9" class="line" lang="plaintext">&lt;/s&gt;</span>
+<span id="LC10" class="line" lang="plaintext">&lt;/li&gt;</span>
+<span id="LC11" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
+<copy-code></copy-code>
+</div>
+<p data-sourcepos="109:1-110:50" dir="auto">Inapplicable task in a "loose" list. Note that the <code>&lt;del&gt;</code> tag is not applied to the
+loose text; it has strikethrough applied with CSS.</p>
+<div class="gl-relative markdown-code-block js-markdown-code">
+<pre data-sourcepos="112:1-131:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<span id="LC4" class="line" lang="plaintext">.</span>
+<span id="LC5" class="line" lang="plaintext">&lt;ul&gt;</span>
+<span id="LC6" class="line" lang="plaintext">&lt;li&gt;</span>
+<span id="LC7" class="line" lang="plaintext">&lt;p&gt;</span>
+<span id="LC8" class="line" lang="plaintext">&lt;task-button/&gt;</span>
+<span id="LC9" class="line" lang="plaintext">&lt;input type="checkbox" data-inapplicable disabled&gt;</span>
+<span id="LC10" class="line" lang="plaintext">&lt;s&gt;</span>
+<span id="LC11" class="line" lang="plaintext">inapplicable</span>
+<span id="LC12" class="line" lang="plaintext">&lt;/s&gt;</span>
+<span id="LC13" class="line" lang="plaintext">&lt;/p&gt;</span>
+<span id="LC14" class="line" lang="plaintext">&lt;p&gt;</span>
+<span id="LC15" class="line" lang="plaintext">text in loose list</span>
+<span id="LC16" class="line" lang="plaintext">&lt;/p&gt;</span>
+<span id="LC17" class="line" lang="plaintext">&lt;/li&gt;</span>
+<span id="LC18" class="line" lang="plaintext">&lt;/ul&gt;</span></code></pre>
+<copy-code></copy-code>
+</div>
+<h2 data-sourcepos="133:1-133:15" dir="auto">
+<a id="user-content-front-matter" class="anchor" href="#front-matter" aria-hidden="true"></a>Front matter</h2>
+<p data-sourcepos="135:1-136: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="138:1-139: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="141:1-141:18" dir="auto">YAML front matter:</p>
+<div class="gl-relative markdown-code-block js-markdown-code">
+<pre data-sourcepos="143:1-153:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<span id="LC4" class="line" lang="plaintext">.</span>
+<span id="LC5" class="line" lang="plaintext">&lt;pre&gt;</span>
+<span id="LC6" class="line" lang="plaintext">&lt;code&gt;</span>
+<span id="LC7" class="line" lang="plaintext">title: YAML front matter</span>
+<span id="LC8" class="line" lang="plaintext">&lt;/code&gt;</span>
+<span id="LC9" class="line" lang="plaintext">&lt;/pre&gt;</span></code></pre>
+<copy-code></copy-code>
+</div>
+<p data-sourcepos="155:1-155:18" dir="auto">TOML front matter:</p>
+<div class="gl-relative markdown-code-block js-markdown-code">
+<pre data-sourcepos="157:1-167:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<span id="LC4" class="line" lang="plaintext">.</span>
+<span id="LC5" class="line" lang="plaintext">&lt;pre&gt;</span>
+<span id="LC6" class="line" lang="plaintext">&lt;code&gt;</span>
+<span id="LC7" class="line" lang="plaintext">title: TOML front matter</span>
+<span id="LC8" class="line" lang="plaintext">&lt;/code&gt;</span>
+<span id="LC9" class="line" lang="plaintext">&lt;/pre&gt;</span></code></pre>
+<copy-code></copy-code>
+</div>
+<p data-sourcepos="169:1-169:18" dir="auto">JSON front matter:</p>
+<div class="gl-relative markdown-code-block js-markdown-code">
+<pre data-sourcepos="171:1-185:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<span id="LC5" class="line" lang="plaintext">;;;</span>
+<span id="LC6" class="line" lang="plaintext">.</span>
+<span id="LC7" class="line" lang="plaintext">&lt;pre&gt;</span>
+<span id="LC8" class="line" lang="plaintext">&lt;code&gt;</span>
+<span id="LC9" class="line" lang="plaintext">{</span>
+<span id="LC10" class="line" lang="plaintext"> "title": "JSON front matter"</span>
+<span id="LC11" class="line" lang="plaintext">}</span>
+<span id="LC12" class="line" lang="plaintext">&lt;/code&gt;</span>
+<span id="LC13" class="line" lang="plaintext">&lt;/pre&gt;</span></code></pre>
+<copy-code></copy-code>
+</div>
+<p data-sourcepos="187:1-187:66" dir="auto">Front matter blocks should be inserted at the top of the document:</p>
+<div class="gl-relative markdown-code-block js-markdown-code">
+<pre data-sourcepos="189:1-199:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<span id="LC5" class="line" lang="plaintext">---</span>
+<span id="LC6" class="line" lang="plaintext">.</span>
+<span id="LC7" class="line" lang="plaintext">&lt;p&gt;text&lt;/p&gt;</span>
+<span id="LC8" class="line" lang="plaintext">&lt;hr&gt;</span>
+<span id="LC9" class="line" lang="plaintext">&lt;h2&gt;title: YAML front matter&lt;/h2&gt;</span></code></pre>
+<copy-code></copy-code>
+</div>
+<p data-sourcepos="201:1-201:74" dir="auto">Front matter block delimiters shouldn’t be preceded by space characters:</p>
+<div class="gl-relative markdown-code-block js-markdown-code">
+<pre data-sourcepos="203:1-210:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<span id="LC4" class="line" lang="plaintext">.</span>
+<span id="LC5" class="line" lang="plaintext">&lt;hr&gt;</span>
+<span id="LC6" class="line" lang="plaintext">&lt;h2&gt;title: YAML front matter&lt;/h2&gt;</span></code></pre>
+<copy-code></copy-code>
+</div>
+<h2 data-sourcepos="212:1-212: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="214:1-216: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="218:1-219: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="#introduction">Introduction</a></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>
+</ul> tag on its own line.
+<div class="gl-relative markdown-code-block js-markdown-code">
+<pre data-sourcepos="221:1-238:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<span id="LC5" class="line" lang="plaintext">## Heading 2</span>
+<span id="LC6" class="line" lang="plaintext">.</span>
+<span id="LC7" class="line" lang="plaintext">&lt;nav&gt;</span>
+<span id="LC8" class="line" lang="plaintext"> &lt;ul&gt;</span>
+<span id="LC9" class="line" lang="plaintext"> &lt;li&gt;&lt;a href="#heading-1"&gt;Heading 1&lt;/a&gt;&lt;/li&gt;</span>
+<span id="LC10" class="line" lang="plaintext"> &lt;ul&gt;</span>
+<span id="LC11" class="line" lang="plaintext"> &lt;li&gt;&lt;a href="#heading-2"&gt;Heading 2&lt;/a&gt;&lt;/li&gt;</span>
+<span id="LC12" class="line" lang="plaintext"> &lt;/ul&gt;</span>
+<span id="LC13" class="line" lang="plaintext"> &lt;/ul&gt;</span>
+<span id="LC14" class="line" lang="plaintext">&lt;/nav&gt;</span>
+<span id="LC15" class="line" lang="plaintext">&lt;h1&gt;Heading 1&lt;/h1&gt;</span>
+<span id="LC16" class="line" lang="plaintext">&lt;h2&gt;Heading 2&lt;/h2&gt;</span></code></pre>
+<copy-code></copy-code>
+</div>
+<div class="gl-relative markdown-code-block js-markdown-code">
+<pre data-sourcepos="240:1-257:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<span id="LC5" class="line" lang="plaintext">## Heading 2</span>
+<span id="LC6" class="line" lang="plaintext">.</span>
+<span id="LC7" class="line" lang="plaintext">&lt;nav&gt;</span>
+<span id="LC8" class="line" lang="plaintext"> &lt;ul&gt;</span>
+<span id="LC9" class="line" lang="plaintext"> &lt;li&gt;&lt;a href="#heading-1"&gt;Heading 1&lt;/a&gt;&lt;/li&gt;</span>
+<span id="LC10" class="line" lang="plaintext"> &lt;ul&gt;</span>
+<span id="LC11" class="line" lang="plaintext"> &lt;li&gt;&lt;a href="#heading-2"&gt;Heading 2&lt;/a&gt;&lt;/li&gt;</span>
+<span id="LC12" class="line" lang="plaintext"> &lt;/ul&gt;</span>
+<span id="LC13" class="line" lang="plaintext"> &lt;/ul&gt;</span>
+<span id="LC14" class="line" lang="plaintext">&lt;/nav&gt;</span>
+<span id="LC15" class="line" lang="plaintext">&lt;h1&gt;Heading 1&lt;/h1&gt;</span>
+<span id="LC16" class="line" lang="plaintext">&lt;h2&gt;Heading 2&lt;/h2&gt;</span></code></pre>
+<copy-code></copy-code>
+</div>
+<p data-sourcepos="259:1-260:5" dir="auto">A table of contents is a block element. It should preceded and followed by a blank
+line.</p>
+<div class="gl-relative markdown-code-block js-markdown-code">
+<pre data-sourcepos="262:1-271:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<span id="LC5" class="line" lang="plaintext">[TOC]</span>
+<span id="LC6" class="line" lang="plaintext">.</span>
+<span id="LC7" class="line" lang="plaintext">&lt;p&gt;[[&lt;em&gt;TOC&lt;/em&gt;]]text&lt;/p&gt;</span>
+<span id="LC8" class="line" lang="plaintext">&lt;p&gt;text[TOC]&lt;/p&gt;</span></code></pre>
+<copy-code></copy-code>
+</div>
+<p data-sourcepos="273:1-273:60" dir="auto">A table of contents can be indented with up to three spaces.</p>
+<div class="gl-relative markdown-code-block js-markdown-code">
+<pre data-sourcepos="275:1-286:32" class="code highlight js-syntax-highlight language-plaintext" lang="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>
+<span id="LC5" class="line" lang="plaintext">&lt;nav&gt;</span>
+<span id="LC6" class="line" lang="plaintext"> &lt;ul&gt;</span>
+<span id="LC7" class="line" lang="plaintext"> &lt;li&gt;&lt;a href="#heading-1"&gt;Heading 1&lt;/a&gt;&lt;/li&gt;</span>
+<span id="LC8" class="line" lang="plaintext"> &lt;/ul&gt;</span>
+<span id="LC9" class="line" lang="plaintext">&lt;/nav&gt;</span>
+<span id="LC10" class="line" lang="plaintext">&lt;h1&gt;Heading 1&lt;/h1&gt;</span></code></pre>
+<copy-code></copy-code>
+</div>
+
diff --git a/glfm_specification/output_spec/spec.txt b/glfm_specification/output_spec/spec.txt
new file mode 100644
index 00000000000..e16975ac51f
--- /dev/null
+++ b/glfm_specification/output_spec/spec.txt
@@ -0,0 +1,287 @@
+---
+title: GitLab Flavored Markdown (GLFM) Spec
+version: alpha
+...
+# Introduction
+
+TODO: Write a GitLab-specific version of the GitHub Flavored Markdown intro section.
+
+<!-- BEGIN TESTS -->
+# GitLab Official Specification Markdown
+
+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
+[user-facing documentation for GitLab Flavored Markdown](https://docs.gitlab.com/ee/user/markdown.html).
+
+There is currently only this single top-level heading, but the
+examples may be split into multiple top-level headings in the future.
+
+## Footnotes
+
+See
+[the footnotes section of the user-facing documentation for GitLab Flavored Markdown](https://docs.gitlab.com/ee/user/markdown.html#footnotes).
+
+```````````````````````````````` example gitlab
+footnote reference tag [^fortytwo]
+
+[^fortytwo]: footnote text
+.
+<p>
+footnote reference tag
+<sup>
+<a href="#fn-fortytwo-42" id="fnref-fortytwo-42" data-footnote-ref>
+1
+</a>
+</sup>
+</p>
+<section data-footnotes>
+<ol>
+<li id="fn-fortytwo-42">
+<p>
+footnote text
+<a href="#fnref-fortytwo-42" data-footnote-backref>
+</a>
+</p>
+</li>
+</ol>
+</section>
+````````````````````````````````
+
+## Task list items
+
+See
+[Task lists](https://docs.gitlab.com/ee/user/markdown.html#task-lists) in the GitLab Flavored Markdown documentation.
+
+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.
+
+Some of the behavior of task list items is implemented as client-side JavaScript/CSS.
+
+The following are some basic examples; more examples may be added in the future.
+
+Incomplete task:
+
+```````````````````````````````` example gitlab
+- [ ] incomplete
+.
+<ul>
+<li>
+<task-button/>
+<input type="checkbox" disabled/>
+incomplete
+</li>
+</ul>
+````````````````````````````````
+
+Completed task:
+
+```````````````````````````````` example gitlab
+- [x] completed
+.
+<ul>
+<li>
+<task-button/>
+<input type="checkbox" checked disabled/>
+completed
+</li>
+</ul>
+````````````````````````````````
+
+Inapplicable task:
+
+```````````````````````````````` example gitlab
+- [~] inapplicable
+.
+<ul>
+<li>
+<task-button/>
+<input type="checkbox" data-inapplicable disabled>
+<s>
+inapplicable
+</s>
+</li>
+</ul>
+````````````````````````````````
+
+Inapplicable task in a "loose" list. Note that the `<del>` tag is not applied to the
+loose text; it has strikethrough applied with CSS.
+
+```````````````````````````````` example gitlab
+- [~] inapplicable
+
+ text in loose list
+.
+<ul>
+<li>
+<p>
+<task-button/>
+<input type="checkbox" data-inapplicable disabled>
+<s>
+inapplicable
+</s>
+</p>
+<p>
+text in loose list
+</p>
+</li>
+</ul>
+````````````````````````````````
+
+## Front matter
+
+See
+[Front matter](https://docs.gitlab.com/ee/user/markdown.html#front-matter) in the GitLab Flavored Markdown documentation.
+
+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.
+
+YAML front matter:
+
+```````````````````````````````` example gitlab
+---
+title: YAML front matter
+---
+.
+<pre>
+<code>
+title: YAML front matter
+</code>
+</pre>
+````````````````````````````````
+
+TOML front matter:
+
+```````````````````````````````` example gitlab
++++
+title: TOML front matter
++++
+.
+<pre>
+<code>
+title: TOML front matter
+</code>
+</pre>
+````````````````````````````````
+
+JSON front matter:
+
+```````````````````````````````` example gitlab
+;;;
+{
+ "title": "JSON front matter"
+}
+;;;
+.
+<pre>
+<code>
+{
+ "title": "JSON front matter"
+}
+</code>
+</pre>
+````````````````````````````````
+
+Front matter blocks should be inserted at the top of the document:
+
+```````````````````````````````` example gitlab
+text
+
+---
+title: YAML front matter
+---
+.
+<p>text</p>
+<hr>
+<h2>title: YAML front matter</h2>
+````````````````````````````````
+
+Front matter block delimiters shouldn’t be preceded by space characters:
+
+```````````````````````````````` example gitlab
+ ---
+title: YAML front matter
+---
+.
+<hr>
+<h2>title: YAML front matter</h2>
+````````````````````````````````
+
+## Table of contents
+
+See
+[table of contents](https://docs.gitlab.com/ee/user/markdown.html#table-of-contents)
+in the GitLab Flavored Markdown documentation.
+
+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.
+
+```````````````````````````````` example gitlab
+[TOC]
+
+# Heading 1
+
+## Heading 2
+.
+<nav>
+ <ul>
+ <li><a href="#heading-1">Heading 1</a></li>
+ <ul>
+ <li><a href="#heading-2">Heading 2</a></li>
+ </ul>
+ </ul>
+</nav>
+<h1>Heading 1</h1>
+<h2>Heading 2</h2>
+````````````````````````````````
+
+```````````````````````````````` example gitlab
+[[_TOC_]]
+
+# Heading 1
+
+## Heading 2
+.
+<nav>
+ <ul>
+ <li><a href="#heading-1">Heading 1</a></li>
+ <ul>
+ <li><a href="#heading-2">Heading 2</a></li>
+ </ul>
+ </ul>
+</nav>
+<h1>Heading 1</h1>
+<h2>Heading 2</h2>
+````````````````````````````````
+
+A table of contents is a block element. It should preceded and followed by a blank
+line.
+
+```````````````````````````````` example gitlab
+[[_TOC_]]
+text
+
+text
+[TOC]
+.
+<p>[[<em>TOC</em>]]text</p>
+<p>text[TOC]</p>
+````````````````````````````````
+
+A table of contents can be indented with up to three spaces.
+
+```````````````````````````````` example gitlab
+ [[_TOC_]]
+
+# Heading 1
+.
+<nav>
+ <ul>
+ <li><a href="#heading-1">Heading 1</a></li>
+ </ul>
+</nav>
+<h1>Heading 1</h1>
+````````````````````````````````
+<!-- END TESTS -->
diff --git a/qa/qa/page/component/lazy_loader.rb b/qa/qa/page/component/lazy_loader.rb
index 2123431fc55..1b166efbbff 100644
--- a/qa/qa/page/component/lazy_loader.rb
+++ b/qa/qa/page/component/lazy_loader.rb
@@ -9,8 +9,8 @@ module QA
def self.included(base)
super
- base.view 'app/assets/javascripts/lazy_loader.js' do
- element :js_lazy_loaded
+ base.view 'app/views/layouts/_img_loader.html.haml' do
+ element :js_lazy_loaded_content
end
end
end
diff --git a/qa/qa/page/component/wiki.rb b/qa/qa/page/component/wiki.rb
index ffd31f8d7b7..ed68052f997 100644
--- a/qa/qa/page/component/wiki.rb
+++ b/qa/qa/page/component/wiki.rb
@@ -38,7 +38,7 @@ module QA
# webdriver to miss the hit so we wait for the svg to load before
# clicking the button.
within_element(:svg_content) do
- has_element?(:js_lazy_loaded)
+ has_element?(:js_lazy_loaded_content)
end
click_element(:create_first_page_link)
diff --git a/qa/qa/page/file/edit.rb b/qa/qa/page/file/edit.rb
index d2b8c8260fd..b9b676ee3c4 100644
--- a/qa/qa/page/file/edit.rb
+++ b/qa/qa/page/file/edit.rb
@@ -12,10 +12,6 @@ module QA
element :editor_toolbar_button
end
- view 'app/views/projects/blob/_editor.html.haml' do
- element :source_editor_preview_container
- end
-
def has_markdown_preview?(component, content)
within_element(:source_editor_preview_container) do
has_css?(component, exact_text: content)
diff --git a/qa/qa/page/file/form.rb b/qa/qa/page/file/form.rb
index bb8934db498..2e0f8c59213 100644
--- a/qa/qa/page/file/form.rb
+++ b/qa/qa/page/file/form.rb
@@ -11,7 +11,7 @@ module QA
include Shared::Editor
view 'app/views/projects/blob/_editor.html.haml' do
- element :file_name, "text_field_tag 'file_name'" # rubocop:disable QA/ElementWithPattern
+ element :file_name_field
end
view 'app/views/projects/blob/_template_selectors.html.haml' do
@@ -23,7 +23,7 @@ module QA
end
def add_name(name)
- fill_in 'file_name', with: name
+ fill_element(:file_name_field, with: name)
end
def select_template(template_type, template)
diff --git a/qa/qa/page/file/shared/editor.rb b/qa/qa/page/file/shared/editor.rb
index dab02c1e34f..f392d52747e 100644
--- a/qa/qa/page/file/shared/editor.rb
+++ b/qa/qa/page/file/shared/editor.rb
@@ -11,7 +11,7 @@ module QA
super
base.view 'app/views/projects/blob/_editor.html.haml' do
- element :editor
+ element :source_editor_preview_container
end
end
@@ -30,7 +30,7 @@ module QA
private
def text_area
- within_element :editor do
+ within_element :source_editor_preview_container do
find('textarea', visible: false)
end
end
diff --git a/qa/qa/page/label/index.rb b/qa/qa/page/label/index.rb
index e19bc0838c9..70df2e4dc9e 100644
--- a/qa/qa/page/label/index.rb
+++ b/qa/qa/page/label/index.rb
@@ -23,7 +23,7 @@ module QA
# This can cause webdriver to miss the hit so we wait for the svg to load (implicitly with has_element?)
# before clicking the button.
within_element(:label_svg_content) do
- has_element?(:js_lazy_loaded)
+ has_element?(:js_lazy_loaded_content)
end
click_element :create_new_label_button
diff --git a/qa/qa/page/project/branches/show.rb b/qa/qa/page/project/branches/show.rb
index 4bf8abb555b..22b960b47ce 100644
--- a/qa/qa/page/project/branches/show.rb
+++ b/qa/qa/page/project/branches/show.rb
@@ -16,22 +16,22 @@ module QA
end
view 'app/views/projects/branches/_branch.html.haml' do
- element :branch_name
+ element :badge_content
+ element :branch_container
+ element :branch_link
end
view 'app/views/projects/branches/_panel.html.haml' do
- element :all_branches
+ element :all_branches_container
end
view 'app/views/projects/branches/index.html.haml' do
- element :delete_merged_branches
+ element :delete_merged_branches_link
end
def delete_branch(branch_name)
- within_element(:all_branches) do
- within(".js-branch-#{branch_name}") do
- click_element(:delete_branch_button)
- end
+ within_element(:branch_container, name: branch_name) do
+ click_element(:delete_branch_button)
end
click_element(:delete_branch_confirmation_button)
@@ -41,22 +41,20 @@ module QA
def has_no_branch?(branch_name, reload: false)
wait_until(reload: reload) do
- within_element(:all_branches) do
- has_no_element?(:branch_name, text: branch_name)
+ within_element(:all_branches_container) do
+ has_no_element?(:branch_link, text: branch_name)
end
end
end
def has_branch_with_badge?(branch_name, badge)
- within_element(:all_branches) do
- within(".js-branch-#{branch_name} .badge") do
- has_text?(badge)
- end
+ within_element(:branch_container, name: branch_name) do
+ has_element?(:badge_content, text: badge)
end
end
def delete_merged_branches
- click_element(:delete_merged_branches)
+ click_element(:delete_merged_branches_link)
click_confirmation_ok_button
end
end
diff --git a/qa/qa/page/project/pipeline/show.rb b/qa/qa/page/project/pipeline/show.rb
index 06d154f5178..33ba27a788a 100644
--- a/qa/qa/page/project/pipeline/show.rb
+++ b/qa/qa/page/project/pipeline/show.rb
@@ -35,10 +35,6 @@ module QA
element :status_icon, 'ci-status-icon-${status}' # rubocop:disable QA/ElementWithPattern
end
- view 'app/views/projects/pipelines/_info.html.haml' do
- element :pipeline_badges
- end
-
view 'app/assets/javascripts/pipelines/components/graph/job_group_dropdown.vue' do
element :job_dropdown_container
element :jobs_dropdown_menu
@@ -68,12 +64,6 @@ module QA
has_no_element?(:job_link, text: job_name)
end
- def has_tag?(tag_name)
- within_element(:pipeline_badges) do
- has_selector?('.badge', text: tag_name)
- end
- end
-
def linked_pipelines
all_elements(:linked_pipeline_container, minimum: 1)
end
diff --git a/qa/qa/page/project/settings/mirroring_repositories.rb b/qa/qa/page/project/settings/mirroring_repositories.rb
index f55faff19e7..61ee3e4f03c 100644
--- a/qa/qa/page/project/settings/mirroring_repositories.rb
+++ b/qa/qa/page/project/settings/mirroring_repositories.rb
@@ -6,25 +6,25 @@ module QA
module Settings
class MirroringRepositories < Page::Base
view 'app/views/projects/mirrors/_authentication_method.html.haml' do
- element :authentication_method
- element :password
+ element :authentication_method_field
+ element :password_field
end
view 'app/views/projects/mirrors/_mirror_repos.html.haml' do
- element :mirror_repository_url_input
+ element :mirror_repository_url_field
element :mirror_repository_button
end
view 'app/views/projects/mirrors/_mirror_repos_list.html.haml' do
- element :mirror_repository_url_cell
- element :mirror_last_update_at_cell
- element :mirror_error_badge
- element :mirrored_repository_row
+ element :mirror_repository_url_content
+ element :mirror_last_update_at_content
+ element :mirror_error_badge_content
+ element :mirrored_repository_row_container
element :copy_public_key_button
end
view 'app/views/projects/mirrors/_mirror_repos_form.html.haml' do
- element :mirror_direction
+ element :mirror_direction_field
end
view 'app/views/shared/_remote_mirror_update_button.html.haml' do
@@ -37,28 +37,23 @@ module QA
element :fingerprints_list
end
- view 'app/views/projects/mirrors/_authentication_method.html.haml' do
- element :authentication_method
- element :password
- end
-
def repository_url=(value)
- fill_element :mirror_repository_url_input, value
+ fill_element :mirror_repository_url_field, value
end
def password=(value)
- fill_element :password, value
+ fill_element :password_field, value
end
def mirror_direction=(value)
raise ArgumentError, "Mirror direction must be 'Push' or 'Pull'" unless %w[Push Pull].include?(value)
- select_element(:mirror_direction, value)
+ select_element(:mirror_direction_field, value)
# Changing the mirror direction causes the fields below to change,
# and that change is animated, so we need to wait for the animation
# to complete otherwise changes to those fields could fail
- wait_for_animated_element :authentication_method
+ wait_for_animated_element :authentication_method_field
end
def authentication_method=(value)
@@ -66,13 +61,13 @@ module QA
raise ArgumentError, "Authentication method must be 'SSH public key', 'Password', or 'None'"
end
- select_element(:authentication_method, value)
+ select_element(:authentication_method_field, value)
end
def public_key(url)
row_index = find_repository_row_index url
- within_element_by_index(:mirrored_repository_row, row_index) do
+ within_element_by_index(:mirrored_repository_row_container, row_index) do
find_element(:copy_public_key_button)['data-clipboard-text']
end
end
@@ -92,7 +87,7 @@ module QA
def update(url)
row_index = find_repository_row_index(url)
- within_element_by_index(:mirrored_repository_row, row_index) do
+ within_element_by_index(:mirrored_repository_row_container, row_index) do
# When a repository is first mirrored, the update process might
# already be started, so the button is already "clicked"
click_element :update_now_button unless has_element? :updating_button
@@ -105,16 +100,16 @@ module QA
row_index = find_repository_row_index(url)
wait_until(sleep_interval: 1) do
- within_element_by_index(:mirrored_repository_row, row_index) do
- last_update = find_element(:mirror_last_update_at_cell, wait: 0)
+ within_element_by_index(:mirrored_repository_row_container, row_index) do
+ last_update = find_element(:mirror_last_update_at_content, wait: 0)
last_update.has_text?('just now') || last_update.has_text?('seconds')
end
end
# Fail early if the page still shows that there has been no update
- within_element_by_index(:mirrored_repository_row, row_index) do
- find_element(:mirror_last_update_at_cell, wait: 0).assert_no_text('Never')
- assert_no_element(:mirror_error_badge)
+ within_element_by_index(:mirrored_repository_row_container, row_index) do
+ find_element(:mirror_last_update_at_content, wait: 0).assert_no_text('Never')
+ assert_no_element(:mirror_error_badge_content)
end
end
@@ -122,7 +117,7 @@ module QA
def find_repository_row_index(target_url)
wait_until(max_duration: 5, reload: false) do
- all_elements(:mirror_repository_url_cell, minimum: 1).index do |url|
+ all_elements(:mirror_repository_url_content, minimum: 1).index do |url|
# The url might be a sanitized url but the target_url won't be so
# we compare just the paths instead of the full url
URI.parse(url.text).path == target_url.path
diff --git a/qa/qa/page/project/settings/protected_branches.rb b/qa/qa/page/project/settings/protected_branches.rb
index a78d8a6ccf4..4fbf656210f 100644
--- a/qa/qa/page/project/settings/protected_branches.rb
+++ b/qa/qa/page/project/settings/protected_branches.rb
@@ -6,8 +6,8 @@ module QA
module Settings
class ProtectedBranches < Page::Base
view 'app/views/projects/protected_branches/shared/_dropdown.html.haml' do
- element :protected_branch_select
element :protected_branch_dropdown
+ element :protected_branch_dropdown_content
end
view 'app/views/projects/protected_branches/_create_protected_branch.html.haml' do
@@ -22,9 +22,9 @@ module QA
end
def select_branch(branch_name)
- click_element :protected_branch_select
+ click_element :protected_branch_dropdown
- within_element(:protected_branch_dropdown) do
+ within_element(:protected_branch_dropdown_content) do
click_on branch_name
end
end
diff --git a/qa/qa/page/project/show.rb b/qa/qa/page/project/show.rb
index 26c2da07b34..a82fa7f5cf3 100644
--- a/qa/qa/page/project/show.rb
+++ b/qa/qa/page/project/show.rb
@@ -32,7 +32,7 @@ module QA
end
view 'app/views/projects/_last_push.html.haml' do
- element :create_merge_request
+ element :create_merge_request_button
end
view 'app/views/projects/_home_panel.html.haml' do
@@ -54,7 +54,7 @@ module QA
end
view 'app/views/projects/empty.html.haml' do
- element :quick_actions
+ element :quick_actions_container
end
view 'app/assets/javascripts/repository/components/breadcrumbs.vue' do
@@ -72,7 +72,7 @@ module QA
end
view 'app/views/projects/blob/viewers/_loading.html.haml' do
- element :spinner
+ element :spinner_placeholder
end
view 'app/views/projects/buttons/_download.html.haml' do
@@ -80,11 +80,11 @@ module QA
end
def wait_for_viewers_to_load
- has_no_element?(:spinner, wait: QA::Support::Repeater::DEFAULT_MAX_WAIT_TIME)
+ has_no_element?(:spinner_placeholder, wait: QA::Support::Repeater::DEFAULT_MAX_WAIT_TIME)
end
def create_first_new_file!
- within_element(:quick_actions) do
+ within_element(:quick_actions_container) do
click_link_with_text 'New file'
end
end
@@ -122,7 +122,7 @@ module QA
end
def has_create_merge_request_button?
- has_css?(element_selector_css(:create_merge_request))
+ has_css?(element_selector_css(:create_merge_request_button))
end
def has_file?(name)
@@ -152,7 +152,7 @@ module QA
has_create_merge_request_button?
end
- click_element :create_merge_request
+ click_element :create_merge_request_button
end
def open_web_ide!
diff --git a/qa/qa/specs/features/api/4_verify/api_variable_inheritance_with_forward_pipeline_variables_spec.rb b/qa/qa/specs/features/api/4_verify/api_variable_inheritance_with_forward_pipeline_variables_spec.rb
index 8ca0ae1f052..8890b3ff317 100644
--- a/qa/qa/specs/features/api/4_verify/api_variable_inheritance_with_forward_pipeline_variables_spec.rb
+++ b/qa/qa/specs/features/api/4_verify/api_variable_inheritance_with_forward_pipeline_variables_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner do
+ RSpec.describe 'Verify', :runner, product_group: :pipeline_authoring do
describe 'Pipeline API defined variable inheritance' do
include_context 'variable inheritance test prep'
diff --git a/qa/qa/specs/features/api/4_verify/cancel_pipeline_when_block_user_spec.rb b/qa/qa/specs/features/api/4_verify/cancel_pipeline_when_block_user_spec.rb
index 7c3fb9ebeba..a360c662cf8 100644
--- a/qa/qa/specs/features/api/4_verify/cancel_pipeline_when_block_user_spec.rb
+++ b/qa/qa/specs/features/api/4_verify/cancel_pipeline_when_block_user_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :requires_admin do
+ RSpec.describe 'Verify', :requires_admin, product_group: :pipeline_execution do
describe 'When user is blocked' do
let!(:admin_api_client) { Runtime::API::Client.as_admin }
let!(:user_api_client) { Runtime::API::Client.new(:gitlab, user: user) }
diff --git a/qa/qa/specs/features/api/4_verify/file_variable_spec.rb b/qa/qa/specs/features/api/4_verify/file_variable_spec.rb
index 9722f62d5a7..5d6bc5a44f7 100644
--- a/qa/qa/specs/features/api/4_verify/file_variable_spec.rb
+++ b/qa/qa/specs/features/api/4_verify/file_variable_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner, feature_flag: {
+ RSpec.describe 'Verify', :runner, product_group: :pipeline_authoring, feature_flag: {
name: 'ci_stop_expanding_file_vars_for_runners',
scope: :project
} do
diff --git a/qa/qa/specs/features/api/4_verify/remove_runner_spec.rb b/qa/qa/specs/features/api/4_verify/remove_runner_spec.rb
index 6e6198328e5..eb1b085c35c 100644
--- a/qa/qa/specs/features/api/4_verify/remove_runner_spec.rb
+++ b/qa/qa/specs/features/api/4_verify/remove_runner_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner do
+ RSpec.describe 'Verify', :runner, product_group: :runner do
describe 'Runner removal' do
include Support::API
diff --git a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_remove_ci_variable_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_remove_ci_variable_spec.rb
index fa8d0d1501c..d985868b96a 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_remove_ci_variable_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/add_remove_ci_variable_spec.rb
@@ -2,7 +2,7 @@
module QA
RSpec.describe 'Verify' do
- describe 'Add or Remove CI variable via UI', :smoke do
+ describe 'Add or Remove CI variable via UI', :smoke, product_group: :pipeline_authoring do
let(:project) do
Resource::Project.fabricate_via_api! do |project|
project.name = 'project-with-ci-variables'
diff --git a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/custom_variable_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/custom_variable_spec.rb
index 63801536c34..1db6f48a404 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/custom_variable_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/custom_variable_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner do
+ RSpec.describe 'Verify', :runner, product_group: :pipeline_authoring do
describe 'Pipeline with customizable variable' do
let(:executor) { "qa-runner-#{Time.now.to_i}" }
let(:pipeline_job_name) { 'customizable-variable' }
diff --git a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/pipeline_with_protected_variable_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/pipeline_with_protected_variable_spec.rb
index 5bb60e64da5..52785af1431 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/pipeline_with_protected_variable_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/pipeline_with_protected_variable_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner do
+ RSpec.describe 'Verify', :runner, product_group: :pipeline_authoring do
describe 'Pipeline with protected variable' do
let(:executor) { "qa-runner-#{Faker::Alphanumeric.alphanumeric(8)}" }
let(:protected_value) { Faker::Alphanumeric.alphanumeric(8) }
diff --git a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/prefill_variables_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/prefill_variables_spec.rb
index 8352ad6aa33..7eec0f8870a 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/prefill_variables_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/prefill_variables_spec.rb
@@ -2,7 +2,7 @@
module QA
RSpec.describe 'Verify' do
- describe 'Pipeline with prefill variables' do
+ describe 'Pipeline with prefill variables', product_group: :pipeline_authoring do
let(:prefill_variable_description1) { Faker::Lorem.sentence }
let(:prefill_variable_value1) { Faker::Lorem.word }
let(:prefill_variable_description2) { Faker::Lorem.sentence }
diff --git a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/ui_variable_inheritable_when_forward_pipeline_variables_true_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/ui_variable_inheritable_when_forward_pipeline_variables_true_spec.rb
index 7782c0240e9..a5ebd4004d2 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/ui_variable_inheritable_when_forward_pipeline_variables_true_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/ui_variable_inheritable_when_forward_pipeline_variables_true_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner do
+ RSpec.describe 'Verify', :runner, product_group: :pipeline_authoring do
describe 'UI defined variable' do
include_context 'variable inheritance test prep'
diff --git a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/ui_variable_non_inheritable_when_forward_pipeline_variables_false_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/ui_variable_non_inheritable_when_forward_pipeline_variables_false_spec.rb
index 69a99483b38..f53454b801c 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/ci_variable/ui_variable_non_inheritable_when_forward_pipeline_variables_false_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/ci_variable/ui_variable_non_inheritable_when_forward_pipeline_variables_false_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner do
+ RSpec.describe 'Verify', :runner, product_group: :pipeline_authoring do
describe 'UI defined variable' do
include_context 'variable inheritance test prep'
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb
index 1bba5355790..b6270c11ef6 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/create_and_process_pipeline_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :smoke, :runner, quarantine: {
+ RSpec.describe 'Verify', :smoke, :runner, product_group: :pipeline_execution, quarantine: {
issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/356295',
type: :investigating
} do
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/include_local_config_file_paths_with_wildcard_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/include_local_config_file_paths_with_wildcard_spec.rb
index b9b87ed29bb..027383550a7 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/include_local_config_file_paths_with_wildcard_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/include_local_config_file_paths_with_wildcard_spec.rb
@@ -2,7 +2,7 @@
module QA
RSpec.describe 'Verify' do
- describe 'Include local config file paths with wildcard', :reliable do
+ describe 'Include local config file paths with wildcard', :reliable, product_group: :pipeline_authoring do
let(:project) do
Resource::Project.fabricate_via_api! do |project|
project.name = 'project-with-pipeline'
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/include_multiple_files_from_a_project_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/include_multiple_files_from_a_project_spec.rb
index 2fa6b9179ef..5fca2ac392a 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/include_multiple_files_from_a_project_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/include_multiple_files_from_a_project_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner do
+ RSpec.describe 'Verify', :runner, product_group: :pipeline_authoring do
describe 'Include multiple files from a project' do
let(:executor) { "qa-runner-#{Faker::Alphanumeric.alphanumeric(8)}" }
let(:expected_text) { Faker::Lorem.sentence }
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/locked_artifacts_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/locked_artifacts_spec.rb
index 3356d1274c8..ba1363d79c5 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/locked_artifacts_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/locked_artifacts_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner, :requires_admin do
+ RSpec.describe 'Verify', :runner, :requires_admin, product_group: :pipeline_insights do
describe 'Artifacts' do
context 'when locked' do
let(:file_name) { 'artifact.txt' }
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/merge_mr_when_pipline_is_blocked_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/merge_mr_when_pipline_is_blocked_spec.rb
index d201627218e..f63c5d4a85d 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/merge_mr_when_pipline_is_blocked_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/merge_mr_when_pipline_is_blocked_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner do
+ RSpec.describe 'Verify', :runner, product_group: :pipeline_execution do
context 'When pipeline is blocked' do
let(:executor) { "qa-runner-#{Faker::Alphanumeric.alphanumeric(8)}" }
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/mr_event_rule_pipeline_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/mr_event_rule_pipeline_spec.rb
index 65561bbba29..8ec3209379f 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/mr_event_rule_pipeline_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/mr_event_rule_pipeline_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner do
+ RSpec.describe 'Verify', :runner, product_group: :pipeline_authoring do
context 'When job is configured to only run on merge_request_events' do
let(:mr_only_job_name) { 'mr_only_job' }
let(:non_mr_only_job_name) { 'non_mr_only_job' }
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/parent_child_pipelines_independent_relationship_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/parent_child_pipelines_independent_relationship_spec.rb
index 9e3c29db9e7..a7ca7b82d1e 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/parent_child_pipelines_independent_relationship_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/parent_child_pipelines_independent_relationship_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner, :reliable do
+ RSpec.describe 'Verify', :runner, :reliable, product_group: :pipeline_execution do
describe 'Parent-child pipelines independent relationship' do
let!(:project) do
Resource::Project.fabricate_via_api! do |project|
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/pass_dotenv_variables_to_downstream_via_bridge_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/pass_dotenv_variables_to_downstream_via_bridge_spec.rb
index bbcc71bade7..fca34fc1f8e 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/pass_dotenv_variables_to_downstream_via_bridge_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/pass_dotenv_variables_to_downstream_via_bridge_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner do
+ RSpec.describe 'Verify', :runner, product_group: :pipeline_authoring do
describe 'Pass dotenv variables to downstream via bridge' do
let(:executor) { "qa-runner-#{Faker::Alphanumeric.alphanumeric(number: 8)}" }
let(:upstream_var) { Faker::Alphanumeric.alphanumeric(number: 8) }
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_editor_branch_switcher_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_editor_branch_switcher_spec.rb
index ac91a9dd2d3..30c71bc590c 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_editor_branch_switcher_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_editor_branch_switcher_spec.rb
@@ -2,7 +2,7 @@
module QA
RSpec.describe 'Verify' do
- describe 'Pipeline editor' do
+ describe 'Pipeline editor', product_group: :pipeline_authoring do
let(:random_test_string) { SecureRandom.hex(10) }
let(:project) do
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_editor_can_create_merge_request_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_editor_can_create_merge_request_spec.rb
index 931bb97ba32..1f7871b0900 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_editor_can_create_merge_request_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_editor_can_create_merge_request_spec.rb
@@ -2,7 +2,7 @@
module QA
RSpec.describe 'Verify' do
- describe 'Pipeline editor' do
+ describe 'Pipeline editor', product_group: :pipeline_authoring do
let(:project) do
Resource::Project.fabricate_via_api! do |project|
project.name = 'pipeline-editor-project'
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_editor_tabs_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_editor_tabs_spec.rb
index cd3d9eb6a2f..dbe24e2a2b2 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_editor_tabs_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_editor_tabs_spec.rb
@@ -2,7 +2,7 @@
module QA
RSpec.describe 'Verify' do
- describe 'Pipeline editor', :reliable do
+ describe 'Pipeline editor', :reliable, product_group: :pipeline_authoring do
let(:project) do
Resource::Project.fabricate_via_api! do |project|
project.name = 'pipeline-editor-project'
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_with_image_pull_policy_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_with_image_pull_policy_spec.rb
index f9113573295..b1ecce297c9 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_with_image_pull_policy_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/pipeline_with_image_pull_policy_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner do
+ RSpec.describe 'Verify', :runner, product_group: :pipeline_authoring do
describe 'Pipeline with image:pull_policy' do
let(:runner_name) { "qa-runner-#{Faker::Alphanumeric.alphanumeric(number: 8)}" }
let(:job_name) { "test-job-#{pull_policies.join('-')}" }
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/run_pipeline_via_web_only_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/run_pipeline_via_web_only_spec.rb
index f36593218a9..e8ec01577b1 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/run_pipeline_via_web_only_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/run_pipeline_via_web_only_spec.rb
@@ -2,7 +2,7 @@
module QA
RSpec.describe 'Verify' do
- describe 'Run pipeline', :reliable do
+ describe 'Run pipeline', :reliable, product_group: :pipeline_execution do
context 'with web only rule' do
let(:job_name) { 'test_job' }
let(:project) do
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/run_pipeline_with_manual_jobs_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/run_pipeline_with_manual_jobs_spec.rb
index fb7e3a8437f..4223caaafef 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/run_pipeline_with_manual_jobs_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/run_pipeline_with_manual_jobs_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner do
+ RSpec.describe 'Verify', :runner, product_group: :pipeline_execution do
describe 'Run pipeline with manual jobs' do
let(:executor) { "qa-runner-#{SecureRandom.hex(4)}" }
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/trigger_child_pipeline_with_manual_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/trigger_child_pipeline_with_manual_spec.rb
index 1c75beebb48..536569b1f60 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/trigger_child_pipeline_with_manual_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/trigger_child_pipeline_with_manual_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner do
+ RSpec.describe 'Verify', :runner, product_group: :pipeline_execution do
describe "Trigger child pipeline with 'when:manual'" do
let(:executor) { "qa-runner-#{Faker::Alphanumeric.alphanumeric(8)}" }
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/trigger_matrix_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/trigger_matrix_spec.rb
index 205b4d1168a..6cf534dd21a 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/trigger_matrix_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/trigger_matrix_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner do
+ RSpec.describe 'Verify', :runner, product_group: :pipeline_authoring do
describe 'Trigger matrix' do
let(:executor) { "qa-runner-#{Faker::Alphanumeric.alphanumeric(8)}" }
diff --git a/qa/qa/specs/features/browser_ui/4_verify/pipeline/update_ci_file_with_pipeline_editor_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/pipeline/update_ci_file_with_pipeline_editor_spec.rb
index d34df17c477..1f49c7a3663 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/pipeline/update_ci_file_with_pipeline_editor_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/pipeline/update_ci_file_with_pipeline_editor_spec.rb
@@ -2,7 +2,7 @@
module QA
RSpec.describe 'Verify' do
- describe 'Update CI file with pipeline editor' do
+ describe 'Update CI file with pipeline editor', product_group: :pipeline_authoring do
let(:random_test_string) { SecureRandom.hex(10) }
let(:project) do
diff --git a/qa/qa/specs/features/browser_ui/4_verify/runner/register_runner_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/runner/register_runner_spec.rb
index f8261bba342..24c49be13bb 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/runner/register_runner_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/runner/register_runner_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner do
+ RSpec.describe 'Verify', :runner, product_group: :runner do
describe 'Runner registration' do
let(:executor) { "qa-runner-#{Time.now.to_i}" }
let!(:runner) do
diff --git a/qa/qa/specs/features/browser_ui/4_verify/testing/endpoint_coverage_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/testing/endpoint_coverage_spec.rb
index adcf91a550c..0166c53ffd5 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/testing/endpoint_coverage_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/testing/endpoint_coverage_spec.rb
@@ -9,7 +9,7 @@ module QA
# pipeline created (Sidekiq read/write) ->
# runner picks up pipeline (API read/write) ->
# User views pipeline succeeds (Web read)
- RSpec.describe 'Verify', :runner do
+ RSpec.describe 'Verify', :runner, product_group: :pipeline_insights do
context 'Endpoint Coverage' do
let!(:project) do
Resource::Project.fabricate_via_api! do |project|
diff --git a/qa/qa/specs/features/browser_ui/4_verify/testing/view_code_coverage_spec.rb b/qa/qa/specs/features/browser_ui/4_verify/testing/view_code_coverage_spec.rb
index 122fb0fc1a0..2a4852a2b8b 100644
--- a/qa/qa/specs/features/browser_ui/4_verify/testing/view_code_coverage_spec.rb
+++ b/qa/qa/specs/features/browser_ui/4_verify/testing/view_code_coverage_spec.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module QA
- RSpec.describe 'Verify', :runner do
+ RSpec.describe 'Verify', :runner, product_group: :pipeline_insights do
describe 'Code coverage statistics' do
let(:executor) { "qa-runner-#{Time.now.to_i}" }
let(:runner) do
diff --git a/scripts/lib/glfm/constants.rb b/scripts/lib/glfm/constants.rb
index d020d2fec5c..c4feef8464e 100644
--- a/scripts/lib/glfm/constants.rb
+++ b/scripts/lib/glfm/constants.rb
@@ -15,24 +15,25 @@ module Glfm
# GitLab Flavored Markdown specification files
specification_input_glfm_path = specification_path.join('input/gitlab_flavored_markdown')
- GLFM_INTRO_MD_PATH = specification_input_glfm_path.join('glfm_intro.md')
- GLFM_OFFICIAL_SPECIFICATION_EXAMPLES_MD_PATH =
- specification_input_glfm_path.join('glfm_official_specification_examples.md')
- GLFM_INTERNAL_EXTENSION_EXAMPLES_MD_PATH = specification_input_glfm_path.join('glfm_internal_extension_examples.md')
+ GLFM_OFFICIAL_SPECIFICATION_MD_PATH =
+ specification_input_glfm_path.join('glfm_official_specification.md')
+ GLFM_INTERNAL_EXTENSIONS_MD_PATH = specification_input_glfm_path.join('glfm_internal_extensions.md')
GLFM_EXAMPLE_STATUS_YML_PATH = specification_input_glfm_path.join('glfm_example_status.yml')
GLFM_EXAMPLE_METADATA_YML_PATH =
specification_input_glfm_path.join('glfm_example_metadata.yml')
GLFM_EXAMPLE_NORMALIZATIONS_YML_PATH = specification_input_glfm_path.join('glfm_example_normalizations.yml')
- GLFM_SPEC_OUTPUT_PATH = specification_path.join('output')
- GLFM_SPEC_TXT_PATH = GLFM_SPEC_OUTPUT_PATH.join('spec.txt')
- GLFM_SPEC_HTML_PATH = GLFM_SPEC_OUTPUT_PATH.join('spec.html')
+ GLFM_OUTPUT_SPEC_PATH = specification_path.join('output_spec')
+ GLFM_SPEC_TXT_PATH = GLFM_OUTPUT_SPEC_PATH.join('spec.txt')
+ GLFM_SPEC_HTML_PATH = GLFM_OUTPUT_SPEC_PATH.join('spec.html')
# Example Snapshot (ES) files
- EXAMPLE_SNAPSHOTS_PATH = File.expand_path("../../../glfm_specification/example_snapshots", __dir__)
- ES_EXAMPLES_INDEX_YML_PATH = File.join(EXAMPLE_SNAPSHOTS_PATH, 'examples_index.yml')
- ES_MARKDOWN_YML_PATH = File.join(EXAMPLE_SNAPSHOTS_PATH, 'markdown.yml')
- ES_HTML_YML_PATH = File.join(EXAMPLE_SNAPSHOTS_PATH, 'html.yml')
- ES_PROSEMIRROR_JSON_YML_PATH = File.join(EXAMPLE_SNAPSHOTS_PATH, 'prosemirror_json.yml')
+ ES_OUTPUT_EXAMPLE_SNAPSHOTS_PATH = specification_path.join('output_example_snapshots')
+ ES_SNAPSHOT_SPEC_MD_PATH = ES_OUTPUT_EXAMPLE_SNAPSHOTS_PATH.join('snapshot_spec.md')
+ ES_SNAPSHOT_SPEC_HTML_PATH = ES_OUTPUT_EXAMPLE_SNAPSHOTS_PATH.join('snapshot_spec.html')
+ ES_EXAMPLES_INDEX_YML_PATH = ES_OUTPUT_EXAMPLE_SNAPSHOTS_PATH.join('examples_index.yml')
+ ES_MARKDOWN_YML_PATH = ES_OUTPUT_EXAMPLE_SNAPSHOTS_PATH.join('markdown.yml')
+ ES_HTML_YML_PATH = ES_OUTPUT_EXAMPLE_SNAPSHOTS_PATH.join('html.yml')
+ ES_PROSEMIRROR_JSON_YML_PATH = ES_OUTPUT_EXAMPLE_SNAPSHOTS_PATH.join('prosemirror_json.yml')
# Other constants used for processing files
GLFM_SPEC_TXT_HEADER = <<~MARKDOWN
@@ -41,8 +42,9 @@ module Glfm
version: alpha
...
MARKDOWN
- INTRODUCTION_HEADER_LINE_TEXT = /\A# Introduction\Z/.freeze
- END_TESTS_COMMENT_LINE_TEXT = /\A<!-- END TESTS -->\Z/.freeze
+ INTRODUCTION_HEADER_LINE_TEXT = '# Introduction'
+ BEGIN_TESTS_COMMENT_LINE_TEXT = '<!-- BEGIN TESTS -->'
+ END_TESTS_COMMENT_LINE_TEXT = '<!-- END TESTS -->'
MARKDOWN_TEMPFILE_BASENAME = %w[MARKDOWN_TEMPFILE_ .yml].freeze
METADATA_TEMPFILE_BASENAME = %w[METADATA_TEMPFILE_ .yml].freeze
STATIC_HTML_TEMPFILE_BASENAME = %w[STATIC_HTML_TEMPFILE_ .yml].freeze
diff --git a/scripts/lib/glfm/update_example_snapshots.rb b/scripts/lib/glfm/update_example_snapshots.rb
index 9075260e748..8f817d0173e 100644
--- a/scripts/lib/glfm/update_example_snapshots.rb
+++ b/scripts/lib/glfm/update_example_snapshots.rb
@@ -30,12 +30,12 @@ module Glfm
def process(skip_static_and_wysiwyg: false)
output('Updating example snapshots...')
- output("Reading #{GLFM_SPEC_TXT_PATH}...")
- glfm_spec_txt_lines = File.open(GLFM_SPEC_TXT_PATH).readlines
+ output("Reading #{ES_SNAPSHOT_SPEC_MD_PATH}...")
+ es_snapshot_spec_md_lines = File.open(ES_SNAPSHOT_SPEC_MD_PATH).readlines
- # Parse all the examples from `spec.txt`, using a Ruby port of the Python `get_tests`
+ # Parse all the examples from `snapshot_spec.md`, using a Ruby port of the Python `get_tests`
# function the from original CommonMark/GFM `spec_test.py` script.
- all_examples = parse_examples(glfm_spec_txt_lines)
+ all_examples = parse_examples(es_snapshot_spec_md_lines)
add_example_names(all_examples)
@@ -55,7 +55,7 @@ module Glfm
# in the H1 header count. So, even though due to the concatenation it appears before the
# GitLab examples sections, it doesn't result in their header counts being off by +1.
# 5. If an example contains the 'disabled' string extension, it is skipped (and will thus
- # result in a skip in the `spec_txt_example_position`). This behavior is taken from the
+ # result in a skip in the `spec_example_position`). This behavior is taken from the
# GFM `spec_test.py` script (but it's NOT in the original CommonMark `spec_test.py`).
# 6. If a section contains ONLY disabled examples, the section numbering will still be
# incremented to match the rendered HTML specification section numbering.
@@ -202,7 +202,7 @@ module Glfm
) do |example, hash|
name = example.fetch(:name).to_sym
hash[name] = {
- 'spec_txt_example_position' => example.fetch(:example),
+ 'spec_example_position' => example.fetch(:example),
'source_specification' => source_specification_for_extensions(example.fetch(:extensions))
}
end
diff --git a/scripts/lib/glfm/update_specification.rb b/scripts/lib/glfm/update_specification.rb
index c7264547e44..521c0919f64 100644
--- a/scripts/lib/glfm/update_specification.rb
+++ b/scripts/lib/glfm/update_specification.rb
@@ -23,17 +23,42 @@ module Glfm
def process(skip_spec_html_generation: false)
output('Updating specification...')
+ # read and optionally update `input/github_flavored_markdown/ghfm_spec_v_x.yy.md`
ghfm_spec_lines = load_ghfm_spec
- glfm_spec_txt_string = build_glfm_spec_txt(ghfm_spec_lines)
+
+ # create `output_spec/spec.txt`
+ glfm_spec_txt_header_lines = GLFM_SPEC_TXT_HEADER.split("\n").map { |line| "#{line}\n" }
+ official_spec_lines = readlines_from_path!(GLFM_OFFICIAL_SPECIFICATION_MD_PATH)
+
+ glfm_spec_txt_string = (glfm_spec_txt_header_lines + official_spec_lines).join('')
write_glfm_spec_txt(glfm_spec_txt_string)
+ # create `output_example_snapshots/snapshot_spec.md`
+ ghfm_spec_example_lines = extract_ghfm_spec_example_lines(ghfm_spec_lines)
+ official_spec_example_lines =
+ extract_glfm_spec_example_lines(official_spec_lines, GLFM_OFFICIAL_SPECIFICATION_MD_PATH)
+ internal_extension_lines = readlines_from_path!(GLFM_INTERNAL_EXTENSIONS_MD_PATH)
+ internal_extension_example_lines =
+ extract_glfm_spec_example_lines(internal_extension_lines, GLFM_INTERNAL_EXTENSIONS_MD_PATH)
+ snapshot_spec_md_string = (
+ glfm_spec_txt_header_lines +
+ ghfm_spec_example_lines +
+ official_spec_example_lines +
+ ["\n"] +
+ internal_extension_example_lines
+ ).join('')
+ write_snapshot_spec_md(snapshot_spec_md_string)
+
if skip_spec_html_generation
- output("Skipping GLFM spec.html generation...")
+ output("Skipping GLFM spec.html and snapshot_spec.html generation...")
return
end
- glfm_spec_html_string = generate_glfm_spec_html(glfm_spec_txt_string)
- write_glfm_spec_html(glfm_spec_html_string)
+ # create `output_spec/spec.html` and `output_snapshot_examples/snapshot_spec.html`
+ spec_html_string, snapshot_spec_html_string =
+ generate_spec_html_files(glfm_spec_txt_string, snapshot_spec_md_string)
+ write_spec_html(spec_html_string)
+ write_snapshot_spec_html(snapshot_spec_html_string)
end
private
@@ -68,9 +93,7 @@ module Glfm
ghfm_spec_txt_uri_parsed = URI.parse(GHFM_SPEC_TXT_URI)
ghfm_spec_txt_uri_io = ghfm_spec_txt_uri_parsed.open
- # Read IO stream into an array of lines for easy processing later
- ghfm_spec_lines = ghfm_spec_txt_uri_io.readlines
- raise "Unable to read lines from #{GHFM_SPEC_TXT_URI}" if ghfm_spec_lines.empty?
+ ghfm_spec_lines = readlines_from_io!(ghfm_spec_txt_uri_io, GHFM_SPEC_TXT_URI)
# Make sure the GHFM spec version has not changed
validate_expected_spec_version!(ghfm_spec_lines[2])
@@ -95,59 +118,42 @@ module Glfm
"Expected 'version: #{GHFM_SPEC_VERSION}', got '#{version_line}'"
end
- def build_glfm_spec_txt(ghfm_spec_txt_lines)
- glfm_spec_txt_lines = ghfm_spec_txt_lines.dup
- replace_header(glfm_spec_txt_lines)
- replace_intro_section(glfm_spec_txt_lines)
- insert_examples(glfm_spec_txt_lines)
- glfm_spec_txt_lines.join('')
- end
-
- def replace_header(spec_txt_lines)
- spec_txt_lines[0, spec_txt_lines.index("...\n") + 1] = GLFM_SPEC_TXT_HEADER
- end
-
- def replace_intro_section(spec_txt_lines)
- glfm_intro_md_lines = File.open(GLFM_INTRO_MD_PATH).readlines
- raise "Unable to read lines from #{GLFM_INTRO_MD_PATH}" if glfm_intro_md_lines.empty?
-
- ghfm_intro_header_begin_index = spec_txt_lines.index do |line|
- line =~ INTRODUCTION_HEADER_LINE_TEXT
+ def extract_ghfm_spec_example_lines(spec_lines)
+ # In the GHFM spec.txt format, all we have to identify the headers containing examples
+ # is the presence of a single initial H1 named "Introduction" before the first
+ # header containing examples, and the <!-- END TESTS --> comment after the last header
+ # containing examples.
+ path = GHFM_SPEC_MD_PATH
+ first_examples_header_index = spec_lines.index do |line|
+ line.start_with?('# ') && !line.start_with?(INTRODUCTION_HEADER_LINE_TEXT)
end
- raise "Unable to locate introduction header line in #{GHFM_SPEC_MD_PATH}" if ghfm_intro_header_begin_index.nil?
+ raise "Unable to find first examples header in #{path}" unless first_examples_header_index
- # Find the index of the next header after the introduction header, starting from the index
- # of the introduction header this is the length of the intro section
- ghfm_intro_section_length = spec_txt_lines[ghfm_intro_header_begin_index + 1..].index do |line|
- line.start_with?('# ')
+ end_tests_comment_index = spec_lines.index do |line|
+ line.start_with?(END_TESTS_COMMENT_LINE_TEXT)
end
+ raise "Unable to locate 'END TESTS' comment line in #{path}" if end_tests_comment_index.nil?
- # Replace the intro section with the GitLab flavored Markdown intro section
- spec_txt_lines[ghfm_intro_header_begin_index, ghfm_intro_section_length] = glfm_intro_md_lines
+ spec_lines[first_examples_header_index..(end_tests_comment_index - 1)]
end
- def insert_examples(spec_txt_lines)
- official_spec_lines = File.open(GLFM_OFFICIAL_SPECIFICATION_EXAMPLES_MD_PATH).readlines
- raise "Unable to read lines from #{GLFM_OFFICIAL_SPECIFICATION_EXAMPLES_MD_PATH}" if official_spec_lines.empty?
-
- internal_extension_lines = File.open(GLFM_INTERNAL_EXTENSION_EXAMPLES_MD_PATH).readlines
- raise "Unable to read lines from #{GLFM_INTERNAL_EXTENSION_EXAMPLES_MD_PATH}" if internal_extension_lines.empty?
+ def extract_glfm_spec_example_lines(spec_lines, path)
+ # In the GLFM input markdown files (unlike the GLFM spec.txt format), we have control over
+ # the contents, so we can use explicit <!-- BEGIN TESTS --> and <!-- END TESTS -->
+ # is the presence of a single initial H1 named "Introduction" before the first
+ # header containing examples, and the <!-- END TESTS --> comment after the last header
+ # containing examples.
+ begin_tests_comment_line_index = spec_lines.index do |line|
+ line.start_with?(BEGIN_TESTS_COMMENT_LINE_TEXT)
+ end
+ raise "Unable to locate 'BEGIN TESTS' comment line in #{path}" unless begin_tests_comment_line_index
- ghfm_end_tests_comment_index = spec_txt_lines.index do |line|
- line =~ END_TESTS_COMMENT_LINE_TEXT
+ end_tests_comment_index = spec_lines.index do |line|
+ line.start_with?(END_TESTS_COMMENT_LINE_TEXT)
end
- raise "Unable to locate 'END TESTS' comment line in #{GHFM_SPEC_MD_PATH}" if ghfm_end_tests_comment_index.nil?
-
- # Insert the GLFM examples before the 'END TESTS' comment line
- spec_txt_lines[ghfm_end_tests_comment_index - 1] = [
- "\n",
- official_spec_lines,
- "\n",
- internal_extension_lines,
- "\n"
- ].flatten
-
- spec_txt_lines
+ raise "Unable to locate 'END TESTS' comment line in #{path}" if end_tests_comment_index.nil?
+
+ spec_lines[(begin_tests_comment_line_index + 1)..(end_tests_comment_index - 1)]
end
def write_glfm_spec_txt(glfm_spec_txt_string)
@@ -156,13 +162,21 @@ module Glfm
write_file(GLFM_SPEC_TXT_PATH, glfm_spec_txt_string)
end
- def generate_glfm_spec_html(glfm_spec_txt_string)
- output("Generating spec.html from spec.txt markdown...")
+ def write_snapshot_spec_md(snapshot_spec_md_string)
+ output("Writing #{ES_SNAPSHOT_SPEC_MD_PATH}...")
+ FileUtils.mkdir_p(Pathname.new(ES_SNAPSHOT_SPEC_MD_PATH).dirname)
+ write_file(ES_SNAPSHOT_SPEC_MD_PATH, snapshot_spec_md_string)
+ end
+
+ def generate_spec_html_files(spec_txt_string, snapshot_spec_md_string)
+ output("Generating spec.html and snapshot_spec.html from spec.txt and snapshot_spec.md markdown...")
input_markdown_yml_string = <<~MARKDOWN
---
spec_txt: |
- #{glfm_spec_txt_string.gsub(/^/, ' ')}
+ #{spec_txt_string.gsub(/^/, ' ')}
+ snapshot_spec_md: |
+ #{snapshot_spec_md_string.gsub(/^/, ' ')}
MARKDOWN
# NOTE: We must copy the input YAML file used by the `render_static_html.rb`
@@ -190,14 +204,33 @@ module Glfm
cmd = %(bin/rspec #{__dir__}/render_static_html.rb)
run_external_cmd(cmd)
- output("Reading generated spec.html from tempfile #{static_html_tempfile_path}...")
- YAML.safe_load(File.open(static_html_tempfile_path), symbolize_names: true).fetch(:spec_txt)
+ output("Reading generated html from tempfile #{static_html_tempfile_path}...")
+ rendered_html_hash = YAML.safe_load(File.open(static_html_tempfile_path), symbolize_names: true)
+ [rendered_html_hash.fetch(:spec_txt), rendered_html_hash.fetch(:snapshot_spec_md)]
end
- def write_glfm_spec_html(glfm_spec_html_string)
+ def write_spec_html(spec_html_string)
output("Writing #{GLFM_SPEC_TXT_PATH}...")
FileUtils.mkdir_p(Pathname.new(GLFM_SPEC_HTML_PATH).dirname)
- write_file(GLFM_SPEC_HTML_PATH, "#{glfm_spec_html_string}\n")
+ write_file(GLFM_SPEC_HTML_PATH, "#{spec_html_string}\n")
+ end
+
+ def write_snapshot_spec_html(snapshot_spec_html_string)
+ output("Writing #{ES_SNAPSHOT_SPEC_HTML_PATH}...")
+ FileUtils.mkdir_p(Pathname.new(ES_SNAPSHOT_SPEC_HTML_PATH).dirname)
+ write_file(ES_SNAPSHOT_SPEC_HTML_PATH, "#{snapshot_spec_html_string}\n")
+ end
+
+ def readlines_from_path!(path)
+ io = File.open(path)
+ readlines_from_io!(io, path)
+ end
+
+ def readlines_from_io!(io, uri_or_path)
+ lines = io.readlines
+ raise "Unable to read lines from #{uri_or_path}" if lines.empty?
+
+ lines
end
end
end
diff --git a/scripts/lib/glfm/verify_all_generated_files_are_up_to_date.rb b/scripts/lib/glfm/verify_all_generated_files_are_up_to_date.rb
index 0b824fc589d..a928c78bfc6 100644
--- a/scripts/lib/glfm/verify_all_generated_files_are_up_to_date.rb
+++ b/scripts/lib/glfm/verify_all_generated_files_are_up_to_date.rb
@@ -12,7 +12,7 @@ module Glfm
include Shared
def process
- verify_cmd = "git status --porcelain #{GLFM_SPEC_OUTPUT_PATH} #{EXAMPLE_SNAPSHOTS_PATH}"
+ verify_cmd = "git status --porcelain #{GLFM_OUTPUT_SPEC_PATH} #{ES_OUTPUT_EXAMPLE_SNAPSHOTS_PATH}"
verify_cmd_output = run_external_cmd(verify_cmd)
unless verify_cmd_output.empty?
msg = "ERROR: Cannot run `#{__FILE__}` because `#{verify_cmd}` shows the following uncommitted changes:\n" \
diff --git a/spec/graphql/types/permission_types/ci/runner_spec.rb b/spec/graphql/types/permission_types/ci/runner_spec.rb
index e5fbbb346e4..b4685794950 100644
--- a/spec/graphql/types/permission_types/ci/runner_spec.rb
+++ b/spec/graphql/types/permission_types/ci/runner_spec.rb
@@ -5,7 +5,7 @@ require 'spec_helper'
RSpec.describe Types::PermissionTypes::Ci::Runner do
it do
expected_permissions = [
- :read_runner, :update_runner, :delete_runner
+ :read_runner, :update_runner, :delete_runner, :assign_runner
]
expected_permissions.each do |permission|
diff --git a/spec/models/integration_spec.rb b/spec/models/integration_spec.rb
index 5dc004d661c..3cd08479977 100644
--- a/spec/models/integration_spec.rb
+++ b/spec/models/integration_spec.rb
@@ -15,6 +15,23 @@ RSpec.describe Integration do
it { is_expected.to have_one(:jira_tracker_data).autosave(true).inverse_of(:integration).with_foreign_key(:integration_id).class_name('Integrations::JiraTrackerData') }
end
+ describe 'default values' do
+ it { is_expected.to be_alert_events }
+ it { is_expected.to be_commit_events }
+ it { is_expected.to be_confidential_issues_events }
+ it { is_expected.to be_confidential_note_events }
+ it { is_expected.to be_issues_events }
+ it { is_expected.to be_job_events }
+ it { is_expected.to be_merge_requests_events }
+ it { is_expected.to be_note_events }
+ it { is_expected.to be_pipeline_events }
+ it { is_expected.to be_push_events }
+ it { is_expected.to be_tag_push_events }
+ it { is_expected.to be_wiki_page_events }
+ it { is_expected.not_to be_active }
+ it { expect(subject.category).to eq(:common) }
+ end
+
describe 'validations' do
it { is_expected.to validate_presence_of(:type) }
it { is_expected.to validate_exclusion_of(:type).in_array(described_class::BASE_CLASSES) }
diff --git a/spec/requests/api/graphql/ci/runner_spec.rb b/spec/requests/api/graphql/ci/runner_spec.rb
index bd90753f9ad..94c0a3c41bd 100644
--- a/spec/requests/api/graphql/ci/runner_spec.rb
+++ b/spec/requests/api/graphql/ci/runner_spec.rb
@@ -104,7 +104,8 @@ RSpec.describe 'Query.runner(id)' do
'userPermissions' => {
'readRunner' => true,
'updateRunner' => true,
- 'deleteRunner' => true
+ 'deleteRunner' => true,
+ 'assignRunner' => true
}
)
expect(runner_data['tagList']).to match_array runner.tag_list
diff --git a/spec/scripts/lib/glfm/update_example_snapshots_spec.rb b/spec/scripts/lib/glfm/update_example_snapshots_spec.rb
index c97226c1a2d..f28a33045ff 100644
--- a/spec/scripts/lib/glfm/update_example_snapshots_spec.rb
+++ b/spec/scripts/lib/glfm/update_example_snapshots_spec.rb
@@ -32,8 +32,8 @@ RSpec.describe Glfm::UpdateExampleSnapshots, '#process' do
subject { described_class.new }
# GLFM input files
- let(:glfm_spec_txt_path) { described_class::GLFM_SPEC_TXT_PATH }
- let(:glfm_spec_txt_local_io) { StringIO.new(glfm_spec_txt_contents) }
+ let(:es_snapshot_spec_md_path) { described_class::ES_SNAPSHOT_SPEC_MD_PATH }
+ let(:es_snapshot_spec_md_local_io) { StringIO.new(es_snapshot_spec_md_contents) }
let(:glfm_example_status_yml_path) { described_class::GLFM_EXAMPLE_STATUS_YML_PATH }
let(:glfm_example_metadata_yml_path) { described_class::GLFM_EXAMPLE_METADATA_YML_PATH }
let(:glfm_example_normalizations_yml_path) { described_class::GLFM_EXAMPLE_NORMALIZATIONS_YML_PATH }
@@ -53,16 +53,11 @@ RSpec.describe Glfm::UpdateExampleSnapshots, '#process' do
# Internal tempfiles
let(:static_html_tempfile_path) { Tempfile.new.path }
- let(:glfm_spec_txt_contents) do
+ let(:es_snapshot_spec_md_contents) do
<<~MARKDOWN
---
title: GitLab Flavored Markdown Spec
...
-
- # Introduction
-
- GLFM intro text...
-
# Inlines
## Strong
@@ -96,7 +91,7 @@ RSpec.describe Glfm::UpdateExampleSnapshots, '#process' do
### Another H3
This is a second consecutive third-level heading. It exists to drive full code coverage
- for this scenario, although it doesn't (yet) exist in the actual spec.txt.
+ for this scenario, although it doesn't (yet) exist in the actual snapshot_spec.md.
## An H2 with all disabled examples
@@ -243,12 +238,6 @@ RSpec.describe Glfm::UpdateExampleSnapshots, '#process' do
.
<p><a href="project-wikis-test-file">project-wikis-test-file</a></p>
````````````````````````````````
-
- <!-- END TESTS -->
-
- # Appendix
-
- Appendix text.
MARKDOWN
end
@@ -305,11 +294,11 @@ RSpec.describe Glfm::UpdateExampleSnapshots, '#process' do
---
01_00_00__obsolete_entry_to_be_deleted__001:
canonical: |
- This entry is no longer exists in the spec.txt, so it will be deleted.
+ This entry is no longer exists in the snapshot_spec.md, so it will be deleted.
static: |-
- This entry is no longer exists in the spec.txt, so it will be deleted.
+ This entry is no longer exists in the snapshot_spec.md, so it will be deleted.
wysiwyg: |-
- This entry is no longer exists in the spec.txt, so it will be deleted.
+ This entry is no longer exists in the snapshot_spec.md, so it will be deleted.
02_01_00__inlines__strong__001:
canonical: |
This entry is existing, but not skipped, so it will be overwritten.
@@ -332,7 +321,7 @@ RSpec.describe Glfm::UpdateExampleSnapshots, '#process' do
---
01_00_00__obsolete_entry_to_be_deleted__001: |-
{
- "obsolete": "This entry is no longer exists in the spec.txt, and is not skipped, so it will be deleted."
+ "obsolete": "This entry is no longer exists in the snapshot_spec.md, and is not skipped, so it will be deleted."
}
02_01_00__inlines__strong__001: |-
{
@@ -370,7 +359,7 @@ RSpec.describe Glfm::UpdateExampleSnapshots, '#process' do
# actual network and filesystem I/O during the spec run.
# input files
- allow(File).to receive(:open).with(glfm_spec_txt_path) { glfm_spec_txt_local_io }
+ allow(File).to receive(:open).with(es_snapshot_spec_md_path) { es_snapshot_spec_md_local_io }
allow(File).to receive(:open).with(glfm_example_status_yml_path) do
StringIO.new(glfm_example_status_yml_contents)
end
@@ -454,43 +443,43 @@ RSpec.describe Glfm::UpdateExampleSnapshots, '#process' do
<<~YAML
---
02_01_00__inlines__strong__001:
- spec_txt_example_position: 1
+ spec_example_position: 1
source_specification: commonmark
02_01_00__inlines__strong__002:
- spec_txt_example_position: 2
+ spec_example_position: 2
source_specification: github
02_03_00__inlines__strikethrough_extension__001:
- spec_txt_example_position: 4
+ spec_example_position: 4
source_specification: github
03_01_00__first_gitlab_specific_section_with_examples__strong_but_with_two_asterisks__001:
- spec_txt_example_position: 5
+ spec_example_position: 5
source_specification: gitlab
03_02_01__first_gitlab_specific_section_with_examples__h2_which_contains_an_h3__example_in_an_h3__001:
- spec_txt_example_position: 6
+ spec_example_position: 6
source_specification: gitlab
04_01_00__second_gitlab_specific_section_with_examples__strong_but_with_html__001:
- spec_txt_example_position: 7
+ spec_example_position: 7
source_specification: gitlab
05_01_00__third_gitlab_specific_section_with_skipped_examples__strong_but_skipped__001:
- spec_txt_example_position: 8
+ spec_example_position: 8
source_specification: gitlab
05_02_00__third_gitlab_specific_section_with_skipped_examples__strong_but_manually_modified_and_skipped__001:
- spec_txt_example_position: 9
+ spec_example_position: 9
source_specification: gitlab
06_01_00__api_request_overrides__group_upload_link__001:
- spec_txt_example_position: 10
+ spec_example_position: 10
source_specification: gitlab
06_02_00__api_request_overrides__project_repo_link__001:
- spec_txt_example_position: 11
+ spec_example_position: 11
source_specification: gitlab
06_03_00__api_request_overrides__project_snippet_ref__001:
- spec_txt_example_position: 12
+ spec_example_position: 12
source_specification: gitlab
06_04_00__api_request_overrides__personal_snippet_ref__001:
- spec_txt_example_position: 13
+ spec_example_position: 13
source_specification: gitlab
06_05_00__api_request_overrides__project_wiki_link__001:
- spec_txt_example_position: 14
+ spec_example_position: 14
source_specification: gitlab
YAML
end
diff --git a/spec/scripts/lib/glfm/update_specification_spec.rb b/spec/scripts/lib/glfm/update_specification_spec.rb
index 83af7cc7ca9..8a7d7100363 100644
--- a/spec/scripts/lib/glfm/update_specification_spec.rb
+++ b/spec/scripts/lib/glfm/update_specification_spec.rb
@@ -37,33 +37,22 @@ RSpec.describe Glfm::UpdateSpecification, '#process' do
let(:ghfm_spec_md_path) { described_class::GHFM_SPEC_MD_PATH }
let(:ghfm_spec_txt_local_io) { StringIO.new(ghfm_spec_txt_contents) }
- let(:glfm_intro_md_path) { described_class::GLFM_INTRO_MD_PATH }
- let(:glfm_intro_md_io) { StringIO.new(glfm_intro_md_contents) }
- let(:glfm_official_specification_examples_md_path) { described_class::GLFM_OFFICIAL_SPECIFICATION_EXAMPLES_MD_PATH }
- let(:glfm_official_specification_examples_md_io) { StringIO.new(glfm_official_specification_examples_md_contents) }
- let(:glfm_internal_extension_examples_md_path) { described_class::GLFM_INTERNAL_EXTENSION_EXAMPLES_MD_PATH }
- let(:glfm_internal_extension_examples_md_io) { StringIO.new(glfm_internal_extension_examples_md_contents) }
+ let(:glfm_official_specification_md_path) { described_class::GLFM_OFFICIAL_SPECIFICATION_MD_PATH }
+ let(:glfm_official_specification_md_io) { StringIO.new(glfm_official_specification_md_contents) }
+ let(:glfm_internal_extensions_md_path) { described_class::GLFM_INTERNAL_EXTENSIONS_MD_PATH }
+ let(:glfm_internal_extensions_md_io) { StringIO.new(glfm_internal_extensions_md_contents) }
let(:glfm_spec_txt_path) { described_class::GLFM_SPEC_TXT_PATH }
let(:glfm_spec_txt_io) { StringIO.new }
let(:glfm_spec_html_path) { described_class::GLFM_SPEC_HTML_PATH }
let(:glfm_spec_html_io) { StringIO.new }
+ let(:es_snapshot_spec_md_path) { described_class::ES_SNAPSHOT_SPEC_MD_PATH }
+ let(:es_snapshot_spec_md_io) { StringIO.new }
+ let(:es_snapshot_spec_html_path) { described_class::ES_SNAPSHOT_SPEC_HTML_PATH }
+ let(:es_snapshot_spec_html_io) { StringIO.new }
let(:markdown_tempfile_io) { StringIO.new }
- let(:ghfm_spec_txt_contents) do
+ let(:ghfm_spec_txt_examples) do
<<~MARKDOWN
- ---
- title: GitHub Flavored Markdown Spec
- version: 0.29
- date: '2019-04-06'
- license: '[CC-BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)'
- ...
-
- # Introduction
-
- ## What is GitHub Flavored Markdown?
-
- It's like GLFM, but with an H.
-
# Section with Examples
## Strong
@@ -75,7 +64,23 @@ RSpec.describe Glfm::UpdateSpecification, '#process' do
````````````````````````````````
End of last GitHub examples section.
+ MARKDOWN
+ end
+ let(:ghfm_spec_txt_contents) do
+ <<~MARKDOWN
+ ---
+ title: GitHub Flavored Markdown Spec
+ version: 0.29
+ date: '2019-04-06'
+ license: '[CC-BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)'
+ ...
+
+ # Introduction
+
+ GHFM Intro.
+
+ #{ghfm_spec_txt_examples}
<!-- END TESTS -->
# Appendix
@@ -84,26 +89,28 @@ RSpec.describe Glfm::UpdateSpecification, '#process' do
MARKDOWN
end
- let(:glfm_intro_md_contents) do
- # language=Markdown
+ let(:glfm_official_specification_md_examples) do
<<~MARKDOWN
- # Introduction
-
- ## What is GitLab Flavored Markdown?
+ # Official Specification Section with Examples
- Intro text about GitLab Flavored Markdown.
+ Some examples.
MARKDOWN
end
- let(:glfm_official_specification_examples_md_contents) do
+ let(:glfm_official_specification_md_contents) do
<<~MARKDOWN
- # Official Specification Section with Examples
+ # GLFM Introduction
- Some examples.
+ GLFM intro text.
+
+ <!-- BEGIN TESTS -->
+ #{glfm_official_specification_md_examples}
+ <!-- END TESTS -->
+ # Non-example official content
MARKDOWN
end
- let(:glfm_internal_extension_examples_md_contents) do
+ let(:glfm_internal_extensions_md_examples) do
<<~MARKDOWN
# Internal Extension Section with Examples
@@ -111,6 +118,16 @@ RSpec.describe Glfm::UpdateSpecification, '#process' do
MARKDOWN
end
+ let(:glfm_internal_extensions_md_contents) do
+ <<~MARKDOWN
+ # Non-example internal content
+ <!-- BEGIN TESTS -->
+ #{glfm_internal_extensions_md_examples}
+ <!-- END TESTS -->
+ # More non-example internal content
+ MARKDOWN
+ end
+
before do
# Mock default ENV var values
stub_env('UPDATE_GHFM_SPEC_MD')
@@ -123,17 +140,18 @@ RSpec.describe Glfm::UpdateSpecification, '#process' do
allow(URI).to receive(:parse).with(ghfm_spec_txt_uri).and_return(ghfm_spec_txt_uri_parsed)
allow(ghfm_spec_txt_uri_parsed).to receive(:open).and_return(ghfm_spec_txt_uri_io)
allow(File).to receive(:open).with(ghfm_spec_md_path) { ghfm_spec_txt_local_io }
- allow(File).to receive(:open).with(glfm_intro_md_path) { glfm_intro_md_io }
- allow(File).to receive(:open).with(glfm_official_specification_examples_md_path) do
- glfm_official_specification_examples_md_io
+ allow(File).to receive(:open).with(glfm_official_specification_md_path) do
+ glfm_official_specification_md_io
end
- allow(File).to receive(:open).with(glfm_internal_extension_examples_md_path) do
- glfm_internal_extension_examples_md_io
+ allow(File).to receive(:open).with(glfm_internal_extensions_md_path) do
+ glfm_internal_extensions_md_io
end
# output files
allow(File).to receive(:open).with(glfm_spec_txt_path, 'w') { glfm_spec_txt_io }
allow(File).to receive(:open).with(glfm_spec_html_path, 'w') { glfm_spec_html_io }
+ allow(File).to receive(:open).with(es_snapshot_spec_md_path, 'w') { es_snapshot_spec_md_io }
+ allow(File).to receive(:open).with(es_snapshot_spec_html_path, 'w') { es_snapshot_spec_html_io }
# Allow normal opening of Tempfile files created during script execution.
tempfile_basenames = [
@@ -216,90 +234,109 @@ RSpec.describe Glfm::UpdateSpecification, '#process' do
end
end
- describe 'writing GLFM spec.txt' do
- let(:glfm_contents) { reread_io(glfm_spec_txt_io) }
+ describe 'writing output_spec/spec.txt' do
+ let(:glfm_spec_txt_contents) { reread_io(glfm_spec_txt_io) }
before do
subject.process(skip_spec_html_generation: true)
end
- it 'replaces the header text with the GitLab version' do
- expect(glfm_contents).not_to match(/GitHub Flavored Markdown Spec/m)
- expect(glfm_contents).not_to match(/^version: \d\.\d/m)
- expect(glfm_contents).not_to match(/^date: /m)
- expect(glfm_contents).not_to match(/^license: /m)
- expect(glfm_contents).to match(/#{Regexp.escape(described_class::GLFM_SPEC_TXT_HEADER)}\n/mo)
- end
-
- it 'replaces the intro section with the GitLab version' do
- expect(glfm_contents).not_to match(/What is GitHub Flavored Markdown/m)
- expect(glfm_contents).to match(/#{Regexp.escape(glfm_intro_md_contents)}/m)
+ it 'includes only the header and official examples' do
+ expected = described_class::GLFM_SPEC_TXT_HEADER + glfm_official_specification_md_contents
+ expect(glfm_spec_txt_contents).to eq(expected)
end
+ end
- it 'inserts the GitLab official spec and internal extension examples sections before the appendix section' do
- expected = <<~MARKDOWN
- End of last GitHub examples section.
-
- # Official Specification Section with Examples
-
- Some examples.
+ describe 'writing output_example_snapshots/snapshot_spec.md' do
+ let(:es_snapshot_spec_md_contents) { reread_io(es_snapshot_spec_md_io) }
- # Internal Extension Section with Examples
+ before do
+ subject.process(skip_spec_html_generation: true)
+ end
- Some examples.
+ it 'replaces the header text with the GitLab version' do
+ expect(es_snapshot_spec_md_contents).not_to match(/GitHub Flavored Markdown Spec/m)
+ expect(es_snapshot_spec_md_contents).not_to match(/^version: \d\.\d/m)
+ expect(es_snapshot_spec_md_contents).not_to match(/^date: /m)
- <!-- END TESTS -->
+ expect(es_snapshot_spec_md_contents).to match(/#{Regexp.escape(described_class::GLFM_SPEC_TXT_HEADER)}/mo)
+ end
- # Appendix
- MARKDOWN
- expect(glfm_contents).to match(/#{Regexp.escape(expected)}/m)
+ it 'includes header and all examples', :unlimited_max_formatted_output_length do
+ # rubocop:disable Style/StringConcatenation (string contatenation is more readable)
+ expected = described_class::GLFM_SPEC_TXT_HEADER +
+ ghfm_spec_txt_examples +
+ "\n" +
+ glfm_official_specification_md_examples +
+ "\n\n" + # NOTE: We want a blank line between the official and internal examples
+ glfm_internal_extensions_md_examples +
+ "\n"
+ # rubocop:enable Style/StringConcatenation
+ expect(es_snapshot_spec_md_contents).to eq(expected)
end
end
- describe 'writing GLFM spec.html' do
- let(:glfm_contents) { reread_io(glfm_spec_html_io) }
+ # rubocop:disable RSpec/MultipleMemoizedHelpers
+ describe 'writing output html files' do
+ let(:spec_html_contents) { reread_io(glfm_spec_html_io) }
+ let(:snapshot_spec_html_contents) { reread_io(es_snapshot_spec_html_io) }
before do
subject.process
end
- it 'renders HTML from spec.txt', :unlimited_max_formatted_output_length do
- expected = <<~HTML
+ it 'renders expected HTML', :unlimited_max_formatted_output_length do
+ # NOTE: We do assertions for both output HTML files in this same `it` example block,
+ # because calling a full `subject.process` without `skip_spec_html_generation: true`
+ # is very slow, and want to avoid doing it twice.
+
+ expected_spec_html = <<~RENDERED_HTML
<div class="gl-relative markdown-code-block js-markdown-code">
<pre data-sourcepos="1:1-4:3" class="code highlight js-syntax-highlight language-yaml" lang="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="6:1-6:14" dir="auto">
- <a id="user-content-introduction" class="anchor" href="#introduction" aria-hidden="true"></a>Introduction</h1>
- <h2 data-sourcepos="8:1-8:36" dir="auto">
- <a id="user-content-what-is-gitlab-flavored-markdown" class="anchor" href="#what-is-gitlab-flavored-markdown" aria-hidden="true"></a>What is GitLab Flavored Markdown?</h2>
- <p data-sourcepos="10:1-10:42" dir="auto">Intro text about GitLab Flavored Markdown.</p>
- <h1 data-sourcepos="12:1-12:23" dir="auto">
+ <h1 data-sourcepos="5:1-5:19" dir="auto">
+ <a id="user-content-glfm-introduction" class="anchor" href="#glfm-introduction" aria-hidden="true"></a>GLFM Introduction</h1>
+ <p data-sourcepos="7:1-7:16" dir="auto">GLFM intro text.</p>
+
+ <h1 data-sourcepos="10:1-10:46" dir="auto">
+ <a id="user-content-official-specification-section-with-examples" class="anchor" href="#official-specification-section-with-examples" aria-hidden="true"></a>Official Specification Section with Examples</h1>
+ <p data-sourcepos="12:1-12:14" dir="auto">Some examples.</p>
+
+ <h1 data-sourcepos="15:1-15:30" dir="auto">
+ <a id="user-content-non-example-official-content" class="anchor" href="#non-example-official-content" aria-hidden="true"></a>Non-example official content</h1>
+ RENDERED_HTML
+ expect(spec_html_contents).to be == expected_spec_html
+
+ expected_snapshot_spec_html = <<~RENDERED_HTML
+ <div class="gl-relative markdown-code-block js-markdown-code">
+ <pre data-sourcepos="1:1-4:3" class="code highlight js-syntax-highlight language-yaml" lang="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:23" dir="auto">
<a id="user-content-section-with-examples" class="anchor" href="#section-with-examples" aria-hidden="true"></a>Section with Examples</h1>
- <h2 data-sourcepos="14:1-14:9" dir="auto">
+ <h2 data-sourcepos="7:1-7:9" dir="auto">
<a id="user-content-strong" class="anchor" href="#strong" aria-hidden="true"></a>Strong</h2>
<div class="gl-relative markdown-code-block js-markdown-code">
- <pre data-sourcepos="16:1-20:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__bold__</span>
+ <pre data-sourcepos="9:1-13:32" class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" data-canonical-lang="example" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">__bold__</span>
<span id="LC2" class="line" lang="plaintext">.</span>
<span id="LC3" class="line" lang="plaintext">&lt;p&gt;&lt;strong&gt;bold&lt;/strong&gt;&lt;/p&gt;</span></code></pre>
<copy-code></copy-code>
</div>
- <p data-sourcepos="22:1-22:36" dir="auto">End of last GitHub examples section.</p>
- <h1 data-sourcepos="24:1-24:46" dir="auto">
+ <p data-sourcepos="15:1-15:36" dir="auto">End of last GitHub examples section.</p>
+ <h1 data-sourcepos="17:1-17:46" dir="auto">
<a id="user-content-official-specification-section-with-examples" class="anchor" href="#official-specification-section-with-examples" aria-hidden="true"></a>Official Specification Section with Examples</h1>
- <p data-sourcepos="26:1-26:14" dir="auto">Some examples.</p>
- <h1 data-sourcepos="28:1-28:42" dir="auto">
+ <p data-sourcepos="19:1-19:14" dir="auto">Some examples.</p>
+ <h1 data-sourcepos="22:1-22:42" dir="auto">
<a id="user-content-internal-extension-section-with-examples" class="anchor" href="#internal-extension-section-with-examples" aria-hidden="true"></a>Internal Extension Section with Examples</h1>
- <p data-sourcepos="30:1-30:14" dir="auto">Some examples.</p>
-
- <h1 data-sourcepos="34:1-34:10" dir="auto">
- <a id="user-content-appendix" class="anchor" href="#appendix" aria-hidden="true"></a>Appendix</h1>
- <p data-sourcepos="36:1-36:14" dir="auto">Appendix text.</p>
- HTML
- expect(glfm_contents).to be == expected
+ <p data-sourcepos="24:1-24:14" dir="auto">Some examples.</p>
+ RENDERED_HTML
+ expect(snapshot_spec_html_contents).to be == expected_snapshot_spec_html
end
end
+ # rubocop:enable RSpec/MultipleMemoizedHelpers
def reread_io(io)
# Reset the io StringIO to the beginning position of the buffer
diff --git a/spec/scripts/lib/glfm/verify_all_generated_files_are_up_to_date_spec.rb b/spec/scripts/lib/glfm/verify_all_generated_files_are_up_to_date_spec.rb
index fca037c9ff3..a1fd5d080e1 100644
--- a/spec/scripts/lib/glfm/verify_all_generated_files_are_up_to_date_spec.rb
+++ b/spec/scripts/lib/glfm/verify_all_generated_files_are_up_to_date_spec.rb
@@ -9,8 +9,8 @@ require_relative '../../../../scripts/lib/glfm/verify_all_generated_files_are_up
RSpec.describe Glfm::VerifyAllGeneratedFilesAreUpToDate, '#process' do
subject { described_class.new }
- let(:output_path) { described_class::GLFM_SPEC_OUTPUT_PATH }
- let(:snapshots_path) { described_class::EXAMPLE_SNAPSHOTS_PATH }
+ let(:output_path) { described_class::GLFM_OUTPUT_SPEC_PATH }
+ let(:snapshots_path) { described_class::ES_OUTPUT_EXAMPLE_SNAPSHOTS_PATH }
let(:verify_cmd) { "git status --porcelain #{output_path} #{snapshots_path}" }
before do
diff --git a/spec/services/clusters/kubernetes/configure_istio_ingress_service_spec.rb b/spec/services/clusters/kubernetes/configure_istio_ingress_service_spec.rb
deleted file mode 100644
index f26177a56d0..00000000000
--- a/spec/services/clusters/kubernetes/configure_istio_ingress_service_spec.rb
+++ /dev/null
@@ -1,223 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-RSpec.describe Clusters::Kubernetes::ConfigureIstioIngressService, '#execute' do
- include KubernetesHelpers
-
- let(:cluster) { create(:cluster, :project, :provided_by_gcp) }
- let(:api_url) { 'https://kubernetes.example.com' }
- let(:project) { cluster.project }
- let(:environment) { create(:environment, project: project) }
- let(:cluster_project) { cluster.cluster_project }
- let(:namespace) { "#{project.name}-#{project.id}-#{environment.slug}" }
- let(:kubeclient) { cluster.kubeclient }
-
- subject do
- described_class.new(
- cluster: cluster
- ).execute
- end
-
- before do
- stub_kubeclient_discover_istio(api_url)
- stub_kubeclient_create_secret(api_url, namespace: namespace)
- stub_kubeclient_put_secret(api_url, "#{namespace}-token", namespace: namespace)
-
- stub_kubeclient_get_secret(
- api_url,
- metadata_name: "#{namespace}-token",
- token: Base64.encode64('sample-token'),
- namespace: namespace
- )
-
- stub_kubeclient_get_secret(
- api_url,
- metadata_name: 'istio-ingressgateway-ca-certs',
- namespace: 'istio-system'
- )
-
- stub_kubeclient_get_secret(
- api_url,
- metadata_name: 'istio-ingressgateway-certs',
- namespace: 'istio-system'
- )
-
- stub_kubeclient_put_secret(api_url, 'istio-ingressgateway-ca-certs', namespace: 'istio-system')
- stub_kubeclient_put_secret(api_url, 'istio-ingressgateway-certs', namespace: 'istio-system')
- stub_kubeclient_get_gateway(api_url, 'knative-ingress-gateway', namespace: 'knative-serving')
- stub_kubeclient_put_gateway(api_url, 'knative-ingress-gateway', namespace: 'knative-serving')
- end
-
- context 'without a serverless_domain_cluster' do
- it 'configures gateway to use PASSTHROUGH' do
- subject
-
- expect(WebMock).to have_requested(:put, api_url + '/apis/networking.istio.io/v1alpha3/namespaces/knative-serving/gateways/knative-ingress-gateway').with(
- body: hash_including(
- apiVersion: "networking.istio.io/v1alpha3",
- kind: "Gateway",
- metadata: {
- generation: 1,
- labels: {
- "networking.knative.dev/ingress-provider" => "istio",
- "serving.knative.dev/release" => "v0.7.0"
- },
- name: "knative-ingress-gateway",
- namespace: "knative-serving",
- selfLink: "/apis/networking.istio.io/v1alpha3/namespaces/knative-serving/gateways/knative-ingress-gateway"
- },
- spec: {
- selector: {
- istio: "ingressgateway"
- },
- servers: [
- {
- hosts: ["*"],
- port: {
- name: "http",
- number: 80,
- protocol: "HTTP"
- }
- },
- {
- hosts: ["*"],
- port: {
- name: "https",
- number: 443,
- protocol: "HTTPS"
- },
- tls: {
- mode: "PASSTHROUGH"
- }
- }
- ]
- }
- )
- )
- end
- end
-
- context 'with a serverless_domain_cluster' do
- let(:serverless_domain_cluster) { create(:serverless_domain_cluster) }
- let(:certificate) { OpenSSL::X509::Certificate.new(serverless_domain_cluster.certificate) }
-
- before do
- cluster.application_knative = serverless_domain_cluster.knative
- end
-
- it 'configures certificates' do
- subject
-
- expect(serverless_domain_cluster.reload.key).not_to be_blank
- expect(serverless_domain_cluster.reload.certificate).not_to be_blank
-
- expect(certificate.subject.to_s).to include(serverless_domain_cluster.knative.hostname)
-
- expect(certificate.not_before).to be_within(1.minute).of(Time.current)
- expect(certificate.not_after).to be_within(1.minute).of(Time.current + 1000.years)
-
- expect(WebMock).to have_requested(:put, api_url + '/api/v1/namespaces/istio-system/secrets/istio-ingressgateway-ca-certs').with(
- body: hash_including(
- metadata: {
- name: 'istio-ingressgateway-ca-certs',
- namespace: 'istio-system'
- },
- type: 'Opaque'
- )
- )
-
- expect(WebMock).to have_requested(:put, api_url + '/api/v1/namespaces/istio-system/secrets/istio-ingressgateway-certs').with(
- body: hash_including(
- metadata: {
- name: 'istio-ingressgateway-certs',
- namespace: 'istio-system'
- },
- type: 'kubernetes.io/tls'
- )
- )
- end
-
- it 'configures gateway to use MUTUAL' do
- subject
-
- expect(WebMock).to have_requested(:put, api_url + '/apis/networking.istio.io/v1alpha3/namespaces/knative-serving/gateways/knative-ingress-gateway').with(
- body: {
- apiVersion: "networking.istio.io/v1alpha3",
- kind: "Gateway",
- metadata: {
- generation: 1,
- labels: {
- "networking.knative.dev/ingress-provider" => "istio",
- "serving.knative.dev/release" => "v0.7.0"
- },
- name: "knative-ingress-gateway",
- namespace: "knative-serving",
- selfLink: "/apis/networking.istio.io/v1alpha3/namespaces/knative-serving/gateways/knative-ingress-gateway"
- },
- spec: {
- selector: {
- istio: "ingressgateway"
- },
- servers: [
- {
- hosts: ["*"],
- port: {
- name: "http",
- number: 80,
- protocol: "HTTP"
- }
- },
- {
- hosts: ["*"],
- port: {
- name: "https",
- number: 443,
- protocol: "HTTPS"
- },
- tls: {
- mode: "MUTUAL",
- privateKey: "/etc/istio/ingressgateway-certs/tls.key",
- serverCertificate: "/etc/istio/ingressgateway-certs/tls.crt",
- caCertificates: "/etc/istio/ingressgateway-ca-certs/cert.pem"
- }
- }
- ]
- }
- }
- )
- end
- end
-
- context 'when there is an error' do
- before do
- cluster.application_knative = create(:clusters_applications_knative)
-
- allow_next_instance_of(described_class) do |instance|
- allow(instance).to receive(:configure_passthrough).and_raise(error)
- end
- end
-
- context 'Kubeclient::HttpError' do
- let(:error) { Kubeclient::HttpError.new(404, nil, nil) }
-
- it 'puts Knative into an errored state' do
- subject
-
- expect(cluster.application_knative).to be_errored
- expect(cluster.application_knative.status_reason).to eq('Kubernetes error: 404')
- end
- end
-
- context 'StandardError' do
- let(:error) { RuntimeError.new('something went wrong') }
-
- it 'puts Knative into an errored state' do
- subject
-
- expect(cluster.application_knative).to be_errored
- expect(cluster.application_knative.status_reason).to eq('Failed to update.')
- end
- end
- end
-end
diff --git a/spec/services/git/base_hooks_service_spec.rb b/spec/services/git/base_hooks_service_spec.rb
index a8d753ff124..9c59b2d1c0b 100644
--- a/spec/services/git/base_hooks_service_spec.rb
+++ b/spec/services/git/base_hooks_service_spec.rb
@@ -150,11 +150,16 @@ RSpec.describe Git::BaseHooksService do
end
shared_examples 'creates pipeline with params and expected variables' do
+ let(:pipeline_service) { double(execute: service_response) }
+ let(:service_response) { double(error?: false, payload: pipeline, message: "Error") }
+ let(:pipeline) { double(persisted?: true) }
+
it 'calls the create pipeline service' do
expect(Ci::CreatePipelineService)
.to receive(:new)
.with(project, user, pipeline_params)
- .and_return(double(execute!: true))
+ .and_return(pipeline_service)
+ expect(subject).not_to receive(:log_pipeline_errors)
subject.execute
end
@@ -239,4 +244,141 @@ RSpec.describe Git::BaseHooksService do
it_behaves_like 'creates pipeline with params and expected variables'
end
end
+
+ describe "Pipeline creation" do
+ context "when refactored_create_pipeline_execution_method feature flag is disabled" do
+ before do
+ stub_feature_flags(refactored_create_pipeline_execution_method: false)
+ end
+
+ let(:pipeline_params) do
+ {
+ after: newrev,
+ before: oldrev,
+ checkout_sha: checkout_sha,
+ push_options: push_options,
+ ref: ref,
+ variables_attributes: variables_attributes
+ }
+ end
+
+ let(:push_options) { {} }
+ let(:variables_attributes) { [] }
+
+ context 'creates pipeline with params and expected variables' do
+ it 'calls the create pipeline service' do
+ expect(Ci::CreatePipelineService)
+ .to receive(:new)
+ .with(project, user, pipeline_params)
+ .and_return(double(execute!: true))
+
+ subject.execute
+ end
+ end
+
+ context 'when logs pipeline errors' do
+ let(:pipeline) { double(persisted?: false) }
+ let(:service_response) { double(error?: true, payload: pipeline, message: "Error") }
+ let(:create_error_string) { Ci::CreatePipelineService::CreateError.new.to_s }
+
+ before do
+ allow(Ci::CreatePipelineService).to receive(:new) { raise Ci::CreatePipelineService::CreateError }
+ end
+
+ it 'raises an error' do
+ expect(subject)
+ .to receive(:log_pipeline_errors)
+ .with(create_error_string)
+ .and_call_original
+
+ subject.execute
+ end
+ end
+ end
+
+ context "when refactored_create_pipeline_execution_method feature flag is enabled" do
+ before do
+ stub_feature_flags(refactored_create_pipeline_execution_method: project)
+ end
+
+ let(:pipeline_params) do
+ {
+ after: newrev,
+ before: oldrev,
+ checkout_sha: checkout_sha,
+ push_options: push_options,
+ ref: ref,
+ variables_attributes: variables_attributes
+ }
+ end
+
+ let(:pipeline_service) { double(execute: service_response) }
+ let(:push_options) { {} }
+ let(:variables_attributes) { [] }
+
+ context "when the pipeline is persisted" do
+ let(:pipeline) { double(persisted?: true) }
+
+ context "and there are no errors" do
+ let(:service_response) { double(error?: false, payload: pipeline, message: "Error") }
+
+ it "returns success" do
+ expect(Ci::CreatePipelineService)
+ .to receive(:new)
+ .with(project, user, pipeline_params)
+ .and_return(pipeline_service)
+
+ expect(subject.execute[:status]).to eq(:success)
+ end
+ end
+
+ context "and there are errors" do
+ let(:service_response) { double(error?: true, payload: pipeline, message: "Error") }
+
+ it "does not log errors and returns success" do
+ # This behaviour is due to the save_on_errors: true setting that is the default in the execute method.
+ expect(Ci::CreatePipelineService)
+ .to receive(:new)
+ .with(project, user, pipeline_params)
+ .and_return(pipeline_service)
+ expect(subject).not_to receive(:log_pipeline_errors).with(service_response.message)
+
+ expect(subject.execute[:status]).to eq(:success)
+ end
+ end
+ end
+
+ context "when the pipeline wasnt persisted" do
+ let(:pipeline) { double(persisted?: false) }
+
+ context "and there are no errors" do
+ let(:service_response) { double(error?: false, payload: pipeline, message: nil) }
+
+ it "returns success" do
+ expect(Ci::CreatePipelineService)
+ .to receive(:new)
+ .with(project, user, pipeline_params)
+ .and_return(pipeline_service)
+ expect(subject).to receive(:log_pipeline_errors).with(service_response.message)
+
+ expect(subject.execute[:status]).to eq(:success)
+ end
+ end
+
+ context "and there are errors" do
+ let(:service_response) { double(error?: true, payload: pipeline, message: "Error") }
+
+ it "logs errors and returns success" do
+ expect(Ci::CreatePipelineService)
+ .to receive(:new)
+ .with(project, user, pipeline_params)
+ .and_return(pipeline_service)
+ expect(subject).to receive(:log_pipeline_errors).with(service_response.message)
+
+ expect(subject.execute[:status]).to eq(:success)
+ end
+ end
+ end
+ end
+ end
end
diff --git a/spec/workers/cluster_configure_istio_worker_spec.rb b/spec/workers/cluster_configure_istio_worker_spec.rb
deleted file mode 100644
index 5d949fde973..00000000000
--- a/spec/workers/cluster_configure_istio_worker_spec.rb
+++ /dev/null
@@ -1,41 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-RSpec.describe ClusterConfigureIstioWorker do
- describe '#perform' do
- shared_examples 'configure istio service' do
- it 'configures istio' do
- expect_any_instance_of(Clusters::Kubernetes::ConfigureIstioIngressService).to receive(:execute)
-
- described_class.new.perform(cluster.id)
- end
- end
-
- context 'when provider type is gcp' do
- let(:cluster) { create(:cluster, :project, :provided_by_gcp) }
-
- it_behaves_like 'configure istio service'
- end
-
- context 'when provider type is aws' do
- let(:cluster) { create(:cluster, :project, :provided_by_aws) }
-
- it_behaves_like 'configure istio service'
- end
-
- context 'when provider type is user' do
- let(:cluster) { create(:cluster, :project, :provided_by_user) }
-
- it_behaves_like 'configure istio service'
- end
-
- context 'when cluster does not exist' do
- it 'does not provision a cluster' do
- expect_any_instance_of(Clusters::Kubernetes::ConfigureIstioIngressService).not_to receive(:execute)
-
- described_class.new.perform(123)
- end
- end
- end
-end
diff --git a/spec/workers/run_pipeline_schedule_worker_spec.rb b/spec/workers/run_pipeline_schedule_worker_spec.rb
index 10c22b736d2..8ae77706118 100644
--- a/spec/workers/run_pipeline_schedule_worker_spec.rb
+++ b/spec/workers/run_pipeline_schedule_worker_spec.rb
@@ -42,14 +42,77 @@ RSpec.describe RunPipelineScheduleWorker do
end
end
- context 'when everything is ok' do
- let(:create_pipeline_service) { instance_double(Ci::CreatePipelineService) }
+ describe "#run_pipeline_schedule" do
+ context "when refactored_create_pipeline_execution_method feature flag is disabled" do
+ before do
+ stub_feature_flags(refactored_create_pipeline_execution_method: false)
+ end
+
+ context 'when everything is ok' do
+ let(:create_pipeline_service) { instance_double(Ci::CreatePipelineService) }
+
+ it 'calls the Service' do
+ expect(Ci::CreatePipelineService).to receive(:new).with(project, user, ref: pipeline_schedule.ref).and_return(create_pipeline_service)
+ expect(create_pipeline_service).to receive(:execute!).with(:schedule, ignore_skip_ci: true, save_on_errors: false, schedule: pipeline_schedule)
+
+ worker.perform(pipeline_schedule.id, user.id)
+ end
+ end
+
+ context 'when pipeline cannot be created' do
+ before do
+ allow(Ci::CreatePipelineService).to receive(:new) { raise Ci::CreatePipelineService::CreateError }
+ end
+
+ it 'logs a pipeline error' do
+ expect(worker)
+ .to receive(:log_extra_metadata_on_done)
+ .with(:pipeline_creation_error, an_instance_of(Ci::CreatePipelineService::CreateError))
+ .and_call_original
+
+ worker.perform(pipeline_schedule.id, user.id)
+ end
+ end
+ end
- it 'calls the Service' do
- expect(Ci::CreatePipelineService).to receive(:new).with(project, user, ref: pipeline_schedule.ref).and_return(create_pipeline_service)
- expect(create_pipeline_service).to receive(:execute!).with(:schedule, ignore_skip_ci: true, save_on_errors: false, schedule: pipeline_schedule)
+ context "when refactored_create_pipeline_execution_method feature flag is enabled" do
+ let(:create_pipeline_service) { instance_double(Ci::CreatePipelineService, execute: service_response) }
+ let(:service_response) { instance_double(ServiceResponse, payload: pipeline, error?: false) }
- worker.perform(pipeline_schedule.id, user.id)
+ before do
+ stub_feature_flags(refactored_create_pipeline_execution_method: project)
+ expect(Ci::CreatePipelineService).to receive(:new).with(project, user, ref: pipeline_schedule.ref).and_return(create_pipeline_service)
+
+ expect(create_pipeline_service).to receive(:execute).with(:schedule, ignore_skip_ci: true, save_on_errors: false, schedule: pipeline_schedule).and_return(service_response)
+ end
+
+ context "when pipeline is persisted" do
+ let(:pipeline) { instance_double(Ci::Pipeline, persisted?: true) }
+
+ it "returns the service response" do
+ expect(worker.perform(pipeline_schedule.id, user.id)).to eq(service_response)
+ end
+
+ it "does not log errors" do
+ expect(worker).not_to receive(:log_extra_metadata_on_done) # aka pipeline_creation_error
+
+ expect(worker.perform(pipeline_schedule.id, user.id)).to eq(service_response)
+ end
+ end
+
+ context "when pipeline was not persisted" do
+ let(:service_response) { instance_double(ServiceResponse, error?: true, message: "Error", payload: pipeline) }
+ let(:pipeline) { instance_double(Ci::Pipeline, persisted?: false) }
+
+ it "logs a pipeline creation error" do
+ expect(worker)
+ .to receive(:log_extra_metadata_on_done)
+ .with(:pipeline_creation_error, service_response.message)
+ .and_call_original
+
+ expect(worker.perform(pipeline_schedule.id, user.id)).to eq(service_response.message)
+ end
+ end
end
end
@@ -82,20 +145,5 @@ RSpec.describe RunPipelineScheduleWorker do
worker.perform(pipeline_schedule.id, user.id)
end
end
-
- context 'when pipeline cannot be created' do
- before do
- allow(Ci::CreatePipelineService).to receive(:new) { raise Ci::CreatePipelineService::CreateError }
- end
-
- it 'logging a pipeline error' do
- expect(worker)
- .to receive(:log_extra_metadata_on_done)
- .with(:pipeline_creation_error, an_instance_of(Ci::CreatePipelineService::CreateError))
- .and_call_original
-
- worker.perform(pipeline_schedule.id, user.id)
- end
- end
end
end