{% spaceless %} {% with prism_version="1.8.3" %} {% for key, val in self.items %} {% if key == "language" %} {% comment %} We are going to load Prism's JS, CSS, and the language dialects we need. We only load Prism's core CSS and JS on the first loop through in case there are multiple code blocks in multiple languages on the page. {% endcomment %} {% comment %} try { prism_loaded; } catch(err) { document.write(''); $.getScript('https://cdnjs.cloudflare.com/ajax/libs/prism/{{ prism_version }}/prism.min.js'); document.write(''); $.getScript('https://cdnjs.cloudflare.com/ajax/libs/prism/{{ prism_version }}/plugins/line-numbers/prism-line-numbers.min.js'); prism_loaded = true; } language_class_name = 'language-{{ val }}'; {% endcomment %} {% endif %} {% if key == "code" %}
                    {{ val }}
                
{% endif %} {% endfor %} {% endwith %} {% endspaceless %}