Fix ab-size for embedded code in Issues by britsync07-prog · Pull Request #10039 · refined-github/refined-github · GitHub
Skip to content

Fix ab-size for embedded code in Issues - #10039

Open
britsync07-prog wants to merge 1 commit into
refined-github:mainfrom
britsync07-prog:fix/tab-size-in-issues
Open

Fix ab-size for embedded code in Issues#10039
britsync07-prog wants to merge 1 commit into
refined-github:mainfrom
britsync07-prog:fix/tab-size-in-issues

Conversation

@britsync07-prog

Copy link
Copy Markdown

Fixes #10031

Description

GitHub's React issue view wraps comments and descriptions in [data-testid='markdown-body'] and .markdown-body rather 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-size override 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

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.
@github-actions github-actions Bot added the bug label Sep 4, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

tab-size broken for code embedded in Issues

3 participants