Skip to content

Commit

Permalink
I want executable runkits for Node
Browse files Browse the repository at this point in the history
instead of Glitch
  • Loading branch information
SallyMcGrath committed Dec 15, 2023
1 parent 3c4769c commit e3473e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layouts/_default/_markup/render-codeblock-runkit.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{ $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>

0 comments on commit e3473e2

Please sign in to comment.