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
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:
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: