Repository navigation
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The Markdown export still misnests attachment flags, reformats comments that should remain literal, and includes summaries excluded by field filtering.
3 open issues
What changed in this PR
Adds Markdown bug-report exports through the existing show_bug.cgi flow.
Changes:
- Adds a Markdown template for bug details, flags, attachments, and comments.
- Registers the content type and adds a Markdown export menu option.
- Adds export tests and adjusts template-filter checks.
| File | Description |
|---|---|
template/en/default/bug/show.md.tmpl |
Renders bug reports as Markdown. |
t/bmo/show-bug-markdown.t |
Tests export content and logged-out privacy. |
t/008filter.t |
Exempts Markdown templates from HTML-filter checks. |
extensions/BugModal/template/en/default/bug_modal/edit.html.tmpl |
Adds the Markdown export link. |
Bugzilla/Constants.pm |
Registers text/markdown. |
Bugzilla/CGI.pm |
Recognizes Markdown in response-safety checks. |
Review effort: Balanced
- Only include the summary in the heading when short_desc is displayed - Emit comments that are not markdown as indented code blocks so they stay literal - Indent attachment flags after capturing them, since TRIM strips leading space
dklawren
requested review from
Xzzz and
cgsheeh
and
a balanced review from Copilot
December 3, 2026 23:26
There was a problem hiding this comment.
🟡 Changes recommended
Unescaped metadata is interpreted as Markdown, allowing tag text to disappear and punctuation to alter displayed summaries, field values, user identities, and attachment details.
1 open issue
3 resolved since last review
Review effort: Balanced
This branch has not been deployed
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.

No description provided.