{{ message }}
Fix ab-size for embedded code in Issues - #10039
Open
britsync07-prog wants to merge 1 commit into
Open
Conversation
Fixes refined-github#10031 GitHub's React issue view wraps comments in \[data-testid='markdown-body']\ and \.markdown-body\ rather than \.comment-body\, causing embedded code blocks to miss the custom tab-size override. Expand the selector to include these markdown containers.
fregante
reviewed
Sep 4, 2026
Member
There was a problem hiding this comment.
I don’t think we need 3 selectors here since we're only adding support for one new view. Is .markdown-body enough for all?
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 #10031
Description
GitHub's React issue view wraps comments and descriptions in
[data-testid='markdown-body']and.markdown-bodyrather than.comment-body(which is used in PRs). As a result, embedded code blocks with.tab-size[data-tab-size='8']in issues missed the custom--tab-sizeoverride and reverted to GitHub's default 8-character tab stop.This PR expands the selector to include
[data-testid='markdown-body']and.markdown-body, ensuring 4-character tab size applies uniformly across issues, PRs, and discussions.Test URLs
tab-sizesandbox#19tab-sizesandbox#164