gregorias / anki-code-highlighter

Anki plugin for code syntax highlighting.
GNU Affero General Public License v3.0
54 stars 3 forks source link

Code-Highlighter not working. (https://github.com/RisingOrange/anki-enhanced-cloze got updated ) #64

Closed KAGEYAM4 closed 9 months ago

KAGEYAM4 commented 9 months ago

Bug description https://github.com/RisingOrange/anki-enhanced-cloze got an update and now code-highlighter is not displaying highlighted code.

Reproduction steps Steps to reproduce the behavior:

  1. Create a highligh-code using ctrl-', pygments, block, bash.

If applicable, provide the offending field's HTML code.

Sometimes “silence is golden,” and we don't want output from a command, we just want to throw it away. This applies particularly to error and status messages. The system provides a way to do this by {{c1::redirecting output to a special file called “/dev/null”. This file is a system device often referred to as a <i>bit bucket</i>, which accepts input and does nothing with it}}. To suppress error messages from a command, we do this:<br><pre style="display:flex; justify-content:center;"><div class="pygments" style="display:flex; justify-content:center;">
<pre><code class="nohighlight"><span class="o">[</span>me@linuxbox<span class="w"> </span>~<span class="o">]</span>$<span class="w"> </span>ls<span class="w"> </span>-l<span class="w"> </span>/bin/usr<span class="w"> </span><span class="m">2</span>&gt;<span class="w"> </span>/dev/null
</code></pre>
</div>
</pre>

Expected behavior The code isn't highlighted at all. Previously it was working fine.

Screenshots Screenshot_20230828_111631

Additional information

gregorias commented 9 months ago

Works fine on my side:

image

Could you provide your card template?

Could you try refreshing my plugin's assets? The menu option is under "Tools".

KAGEYAM4 commented 9 months ago

Refreshing Code Assets worked. Thank you.

You should add this troubleshooting tip to the Template of New Issue`.