Sha256: d7545f3baadd1a73b11aef1b8ea9ebdda0fe5bbafcb1925752c285ce30873f52
Contents?: true
Size: 1.6 KB
Versions: 1
Compression:
Stored size: 1.6 KB
Contents
{%- include assets/i18n.liquid -%} {%- assign shortcodes = "mermaid, warning, note, tip, danger" | split: ", " -%} {%- if site.debug.extension == false -%} {{ content }} {%- else -%} {%- if content contains "<pre" -%} {%- assign content_blocks = content | split: "<pre" -%} {%- for content_block in content_blocks -%} {%- if content_block contains "</pre>" -%} {%- assign pre_blocks = content_block | split: "</pre>" -%} {%- if content_block contains '><code class="language-' -%} {%- comment %} shortcodes: <pre><code class="language-**"> {% endcomment -%} {%- assign custom = content_block | replace_first: '><code class="language-', "" | replace_first: '">', "<temp/>" | split: "<temp/>" -%} {%- assign lang = custom.first -%} {%- assign codes = custom.last | split: "</code>" | first -%} {%- assign others = custom.last | split: "</code>" | last -%} {%- if shortcodes contains lang -%} {%- include shortcodes/{{ lang }}.liquid -%} {{- others -}} {%- else -%} <pre{{ pre_blocks.first }}</pre> {{ pre_blocks.last }} {%- endif -%} {%- else -%} <pre{{ pre_blocks.first }}</pre> {{ pre_blocks.last -}} {%- endif -%} {%- else -%} {{- content_block -}} {%- endif -%} {%- endfor -%} {%- else -%} {{- content -}} {%- endif -%} {%- endif -%}
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-rtd-theme-2.0.0.pre.beta1 | _layouts/plugins/extension.liquid |