crazy-max / dokuwiki-plugin-syntaxhighlighter4

SyntaxHighlighter4 plugin for DokuWiki
http://bit.ly/2vfZ9jG
Other
53 stars 5 forks source link

span tags appear in sxh block of page when searching dokuwiki for string #15

Closed mbm329 closed 4 years ago

mbm329 commented 6 years ago

If I have a block on a page: <sxh> testing123 </sxh> When searching dokuwiki for "testing123", the page will appear in the search results. Upon clicking the link from the search results to the page, the following in the sxh block of the rendered page: <span class="search_hit">testing123</span>

Dokuwiki is effectively attempting to highlight the string that it found in the sxh code block. However, instead of rendering the HTML code, it is just printing it to the screen.

crazy-max commented 6 years ago

Hi @mbm329,

Thanks for your report, i keep you in touch!

crazy-max commented 6 years ago

Here I am again @mbm329, I met this problem recently. I'm going to try to see if it's possible to fix this bug but in my opinion it will be necessary to overload the result of the rendering of the search what doesn't look easy.

crazy-max commented 6 years ago

Apparently, this is a known issue on dokuwiki. See splitbrain/dokuwiki#992.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.