You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
text-editor saves & as &, so full-text search no longer finds the note #3439
I understand this is a bug report and questions should be posted in the Discussions
I searched the issues and discussions of opencloud-eu/web, opencloud-eu/opencloud and opencloud-eu/web-extensions and found nothing about this
Bug Description
When the text editor saves Markdown, it rewrites plain characters in the text. & becomes &, < becomes < and > becomes >. *, _, ~, [, ] and \ get a backslash. The note looks the same, but the file text changes. Full-text search reads the file text, so after one save the note is no longer found by words with these characters. We confirmed this for & on our instance.
The rewrite comes from Tiptap's Markdown output (entity encoding added in ueberdosis/tiptap#7565). Markdown does not need it for plain text like Q&A or a < b.
Reproduction Steps
Create test.md with the line Searchtestalpha&Searchtestbeta.
Search for Searchtestalpha&Searchtestbeta. The note is found.
Open test.md in the text editor, change any other word, save. The line is now Searchtestalpha&Searchtestbeta.
Activity