Conversation
|
Can you explain why this happens? |
|
This only fixes the symptom, but not the actual root cause. The underlying problem of #612 is that the highlighting logic replaces substrings in the markdown text. So, for example, searching for "page" also breaks our internal links (in the form of Hence, we either have to use a more sophisticated highlighting logic (parsing the markdown into an AST, then performing replacements only on textnodes and then writing the AST back to markdown), or have to remove the highlighting completely. |
|
For shits I changed the highlighting from matching in the source to matching in the rendered html and it mostly works. When you search for a page id it will show in the search but not highlight anything. |
|
I've checked out your branch and couldn't see any highlighting at all except for search results in the page title. Did you also experience this issue?
|
Adding a space to numeric searches prevents markdown from breaking the search.
Issue 612