-
-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GeSHi highlight icon bug #4237
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I noticed yesterday that a bash file I had in a code block has a broken icon:
<code bash updpkg>
Looking at the HTML I saw this for the class:
class="mediafile mf_"
It should have been:
class="mediafile mf_bash"
Looking at the code I see that the class name is being determined by the file extension:
dokuwiki/inc/parser/xhtml.php
Lines 654 to 666 in a6016e3
Files don't always have extensions, especially on Unix like systems. If there is no extension, the code should fallback to using the language to determine the correct icon instead of failing with "mf_" as the result.
The text was updated successfully, but these errors were encountered: