|
|
@ -24,7 +24,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Output:
|
|
|
|
# Output:
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# <figure role=code>
|
|
|
|
# <figure class='code'>
|
|
|
|
# <figcaption><span>Got pain? painrelief.sh</span> <a href="http://site.com/painrelief.sh">Download it!</a>
|
|
|
|
# <figcaption><span>Got pain? painrelief.sh</span> <a href="http://site.com/painrelief.sh">Download it!</a>
|
|
|
|
# <div class="highlight"><pre><code class="sh">
|
|
|
|
# <div class="highlight"><pre><code class="sh">
|
|
|
|
# -- nicely escaped highlighted code --
|
|
|
|
# -- nicely escaped highlighted code --
|
|
|
@ -37,7 +37,7 @@
|
|
|
|
# <sarcasm>Ooooh, sarcasm... How original!</sarcasm>
|
|
|
|
# <sarcasm>Ooooh, sarcasm... How original!</sarcasm>
|
|
|
|
# {% endcodeblock %}
|
|
|
|
# {% endcodeblock %}
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# <figure role=code>
|
|
|
|
# <figure class='code'>
|
|
|
|
# <pre><code><sarcasm> Ooooh, sarcasm... How original!</sarcasm></code></pre>
|
|
|
|
# <pre><code><sarcasm> Ooooh, sarcasm... How original!</sarcasm></code></pre>
|
|
|
|
# </figure>
|
|
|
|
# </figure>
|
|
|
|
#
|
|
|
|
#
|
|
|
@ -80,7 +80,7 @@ module Jekyll
|
|
|
|
def render(context)
|
|
|
|
def render(context)
|
|
|
|
output = super
|
|
|
|
output = super
|
|
|
|
code = super.join
|
|
|
|
code = super.join
|
|
|
|
source = "<figure role=code>"
|
|
|
|
source = "<figure class='code'>"
|
|
|
|
source += @caption if @caption
|
|
|
|
source += @caption if @caption
|
|
|
|
if @filetype
|
|
|
|
if @filetype
|
|
|
|
source += " #{highlight(code, @filetype)}</figure>"
|
|
|
|
source += " #{highlight(code, @filetype)}</figure>"
|
|
|
|