Skip to content

Commit

Permalink
spiff up view of runkit
Browse files Browse the repository at this point in the history
It's not themeable but it can be the right size etc
  • Loading branch information
SallyMcGrath committed Dec 15, 2023
1 parent b80a722 commit 88150fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion layouts/_default/_markup/render-codeblock-runkit.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{{ $id := print "runkit-" (substr (md5 .Inner) 0 16) }}
<script src="https://embed.runkit.com" data-element-id="{{ $id }}"></script>
<div id="{{ $id }}">{{ .Inner | safeHTML }}</div>
<div class="highlight">
<div style="background:var(--theme-color--paper);">
<div id="{{ $id }}" style="font-size:0;">{{ .Inner | safeHTML }}</div>
</div>
</div>

0 comments on commit 88150fe

Please sign in to comment.