Sha256: d46c4f04c3984e8ce8e29a67ca71f8c410dd8363602fb0eb62d80c632afd9f01
Contents?: true
Size: 1.59 KB
Versions: 2
Compression:
Stored size: 1.59 KB
Contents
{%- include reset/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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-rtd-theme-2.0.2 | _layouts/plugins/extension.liquid |
jekyll-rtd-theme-2.0.1 | _layouts/plugins/extension.liquid |