Skip to content

fix(image): clear conceal_lines when hiding placements - #2911

Open
NickHu wants to merge 1 commit into
folke:mainfrom
NickHu:conceal_lines
Open

NickHu wants to merge 1 commit into
folke:mainfrom
NickHu:conceal_lines

Conversation

@NickHu

@NickHu NickHu commented Jul 14, 2026

Copy link
Copy Markdown

Description

  • When an inline placement is hidden (e.g. cursor inside a concealed math block), _render cleared conceal but left conceal_lines set.
  • Tall math environments use conceal_lines for rows below the image height, so those lines stayed hidden while editing.
  • Clear conceal_lines alongside conceal when hidden is true.

Related Issue(s)

When hiding an inline placement (e.g. cursor in a math block), `_render`
cleared `conceal` but not `conceal_lines`. Tall math environments use
`conceal_lines` for leftover rows below the image, so those lines stayed
hidden while editing.

Fixes folke#2569
@github-actions github-actions Bot added image size/xs Extra small PR (<3 lines changed) labels Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

image size/xs Extra small PR (<3 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(image): certain LaTeX math environments cause lines to be hidden on conceallevel >= 2

1 participant