Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search word not getting highlighted in code block #8801

Closed
3 tasks done
fenilgmehta opened this issue Jul 21, 2023 · 1 comment
Closed
3 tasks done

Search word not getting highlighted in code block #8801

fenilgmehta opened this issue Jul 21, 2023 · 1 comment

Comments

@fenilgmehta
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

Found a related issue #8332. Not sure if it is for the same thing.
Steps to reproduce:

  1. Copy and paste the below block into a new doc.
nice

wow 1

nice

```bash
hello
wow 2
how
are
you
```

ok

wow 3

nice
  1. Press Ctrl+F/Cmd+F and search wow
  2. wow which is followed by 1 and 3 get highlighted, but wow followed by 2 does not get highlighted

wow 3 - working as expected
image

wow 2 - not working as expected
image

Expected result

wow which is followed by 2 should also get highlighted like other occurrences of wow

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.9.6

Log file

-

More information

No response

@Vanessa219
Copy link
Member

The code block is rendered using highlight.js, so it can only be positioned, but not marked.

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

No branches or pull requests

2 participants