Search results do not convert/remove footnote references correctly #891
-
I installed an empty instance of yellow locally with the only extension The limit is 4,088 characters between the second There is no error message. Neither in debug mode nor in the
I'm not very good at describing what doesn't work properly, but I'm happy to answer questions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I suspect that the cause could be in search.php:151:
which actually keeps only the first 4096 bytes. The footnotes are normally at the bottom of the markdown file, so if the text is longer they are not included in this portion of the file. But a footnote reference of the form |
Beta Was this translation helpful? Give feedback.
-
This bug was caused by the code to extract relevant search results, the intention being that if you display only some text characters from the top of a page, you don't render the entire page and throw most of it away afterwards. Rendering only 4096 bytes showed a significant difference during performance testing. Unfortunately this kind of performance improvement doesn't work for Markdown footnotes, as Giovanni explained. Looks like we have to spend more CPU time to handle possible footnotes. The search extension and core extension have been updated, text descriptions no longer contain reference numbers as suggested by Robert. Should be fixed now, please try it out. |
Beta Was this translation helpful? Give feedback.
This bug was caused by the code to extract relevant search results, the intention being that if you display only some text characters from the top of a page, you don't render the entire page and throw most of it away afterwards. Rendering only 4096 bytes showed a significant difference during performance testing. Unfortunately this kind of performance improvement doesn't work for Markdown footnotes, as Giovanni explained. Looks like we have to spend more CPU time to handle possible footnotes. The search extension and core extension have been updated, text descriptions no longer contain reference numbers as suggested by Robert.
Should be fixed now, please try it out.