Sha256: 049451dff0e6b38ee37ff3681f189ede6bf62d253f2c80a8db1eb00ef4a85e90
Contents?: true
Size: 1.58 KB
Versions: 1
Compression:
Stored size: 1.58 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 ' class="language-' -%} {%- comment %} shortcodes: <pre class="language-**"> {% endcomment -%} {%- assign custom = content_block | replace_first: ' class="language-', "" | replace_first: '">', "<temp/>" | split: "<temp/>" -%} {%- assign lang = custom.first -%} {%- assign codes = custom.last | split: "</pre>" | first -%} {%- assign others = custom.last | split: "</pre>" | 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-1.1.8 | _layouts/plugins/extension.liquid |