typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

When searching highlighted text, the search results are not readable in light themes

Open lucidBrot opened this issue 1 year ago • 0 comments

  • [x] Searched existing issues to avoid creating duplicates.

  • [x] Confirmed that it can be reproduced in built-in themes without customized css. Github, pixyll, and Newsprint are affected. Night is not affected.

  • [x] Searched http://support.typora.io/


Describe the bug Searching for ==TODO== will show the search results unreadably as what looks like == ==. In the Night theme, this is no issue. Enabling or disabling regex does not matter.

This is relevant because when e.g. searching for everything highlighted by using RegEx search and searching for ==.*== I am unable to see what the highlighted result actually is saying.

To Reproduce Steps to reproduce the behavior:

  1. Go to Preferences and enable Markdown > Syntax Support > Highlight
  2. Write in a file some text, including a few occurrences of ==something==
  3. Press CTRLF and enter the search term something, then Enter to jump to the first result.
  4. If you are using most themes (e.g. github) you will only see a black bar instead of the search term.

Expected behavior I would expect the text to be readable. Ideally, the highlighted parts of the result would somehow still look different than the non-highlighted parts. But using a background color that is the same as the text color to distinguish highlighted from normal text is a bad idea.

Screenshots / Screencasts

Github Night
image image
image image

Sample Markdown File typora-highlighting.md This should be very simple to reproduce in any file that has some highlighting though.

Desktop (please complete the following information):

  • OS: Windows 10 Pro, 64 bit

Typora Version 1.3.8

lucidBrot avatar Jul 31 '22 14:07 lucidBrot