Skip to content
New issue

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

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

Already on GitHub? # to your account

whitespace error before and after highlighted characters or words in table of contents #473

Closed
yutijang opened this issue Dec 27, 2024 · 1 comment · Fixed by #483
Closed

Comments

@yutijang
Copy link

yutijang commented Dec 27, 2024

There is a space error before and after the highlighted character or word in the table of contents. It looks like spaces are inserted before and after the searched character or word in the table of contents (default option On this page)

https://easyops-cn.github.io/docusaurus-search-local/docs/?_highlight=i#markdown-syntax
s1

https://easyops-cn.github.io/docusaurus-search-local/docs/?_highlight=this#markdown-syntax
s2

I tried to find related bug report in this issue but didn't find any similar post about this, so i created this post

thanks for this great plugin!

@weareoutman
Copy link
Member

image image

This is because the button is flex layout with justify-content: space-between;, the inserted <mark> caused the weird layout.

This can only be fixed case by case, will look into it later.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants