Repository navigation
Decode YAML escapes in .md issue template frontmatter - #9213
Open
PtJade Ceramic (PtJade-Ceramic) wants to merge 3 commits into
Open
PtJade Ceramic (PtJade-Ceramic) wants to merge 3 commits into
PtJade Ceramic (PtJade-Ceramic) wants to merge 3 commits into
Conversation
The frontmatter of a Markdown issue template is read with regular expressions that only strip the surrounding quotes, so escape sequences such as \U0001F41B reach NewIssue.md and the issue title verbatim instead of being decoded the way GitHub decodes them. Extract that parsing into src/issues/issueTemplate.ts without changing its behavior, so it can be tested without the vscode module, and describe the expected behavior in tests. They fail on this commit. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The frontmatter of a Markdown issue template is now parsed as YAML, the way GitHub parses it, so escape sequences are decoded instead of being copied into NewIssue.md and the issue title. Quotes, inline comments and empty values are handled too, and the body starts after the closing delimiter, so a horizontal rule in the body no longer truncates it. Fixes microsoft#9193 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PtJade Ceramic (PtJade-Ceramic)
force-pushed
the
issue9193
branch
from
November 21, 2026 07:37
972a2b3 to
35836bf
Compare
PtJade Ceramic (PtJade-Ceramic)
force-pushed
the
issue9193
branch
from
November 21, 2026 07:44
35836bf to
bd1a8ea
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #9193