Skip to content

fix(preferences): make the Markdown marks setting readable (#216) - #217

Merged
gnacho merged 1 commit into
masterfrom
fix/216-markup-switch
Nov 25, 2026
Merged

gnacho merged 1 commit into
masterfrom
fix/216-markup-switch

Conversation

@gnacho

@gnacho gnacho commented Nov 25, 2026

Copy link
Copy Markdown
Owner

The "Markdown marks" row in Preferences > Editor was unreadable: its subtitle
described an implementation detail ("Hiding text still crashes this GTK: the
marks shrink instead") and the combo offered three entries where two of them
did the same thing, because the text-hiding gate is closed on every build.

Since gtk_hides_invisible_safely() only allows two real behaviours (marks
shrunk and invisible, or marks dimmed), that branch now renders a single
switch, in user language:

Hide Markdown marks
Asterisks, hashes and URLs disappear while you write. Off keeps them
dimmed instead.

Turning it off stores Dim, turning it on stores Hidden. A value saved as
Focus shows the switch as on, which matches what the editor does with it.
The three-entry combo is kept for the healthy-GTK branch behind the same gate,
so nothing changes when the upstream fix (GNOME/gtk#8346, MR !10228) ships.

Verified with the release build under Xvfb: make check green (222 unit
tests), the row renders without truncation, and toggling it changes the
editor (hidden marks vs dimmed marks with the raw list dashes).

Closes #216

@gnacho
gnacho merged commit 16fc669 into master Nov 25, 2026
3 checks passed
@gnacho
gnacho deleted the fix/216-markup-switch branch November 25, 2026 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Illegible setting "Markdown marks"

1 participant