Move code block titles into comments (i18nIgnore) #3635
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of changes does this PR include?
Description
astro
: If a frontmatter block is present, a// JS comment
is added at the beginning of the frontmatter block. Otherwise, an<!-- HTML comment -->
is added at the beginning of the code.markdown
/md
: If a frontmatter block is present, a# YAML/TOML comment
is added at the beginning of the frontmatter block. Otherwise, an<!-- HTML comment -->
is added at the beginning of the code.js(x)
/ts(x)
: A// Single-line comment
is added at the beginning of the code.xml
: Atitle="..."
attribute is added to the opening code fence as no title comments are supported insidexml
snippets yet.src/content/en/guides/integrations-guide
. These changes will also be submitted to the source package README files to prevent them from being overwritten later.