Ben/add code sandbox (#1053)
* Add codesandbox support * Fix codesandbox hastiness
This commit is contained in:
parent
ad25882ea7
commit
3bc1d8cf5b
2 changed files with 4 additions and 3 deletions
|
|
@ -18,7 +18,8 @@ class CodesandboxTag < LiquidTagBase
|
|||
if valid_id?(input_no_space)
|
||||
input_no_space
|
||||
else
|
||||
raise StandardError, "Invalid repl.it Id"
|
||||
raise StandardError, "Invalid codesandbox Id"
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -27,4 +28,4 @@ class CodesandboxTag < LiquidTagBase
|
|||
end
|
||||
end
|
||||
|
||||
Liquid::Template.register_tag("codesandbox", CodesandboxTag)
|
||||
Liquid::Template.register_tag("codesandbox", CodesandboxTag)
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@
|
|||
|
||||
<h3><strong>repl.it Embed</strong></h3>
|
||||
<p>All you need is the URL after the domain name:</p>
|
||||
<code>{% replit @WigWog/PositiveFineOpensource %}</code>
|
||||
<code>{% codesandbox @WigWog/PositiveFineOpensource %}</code>
|
||||
|
||||
<h3><strong>Instagram Embed</strong></h3>
|
||||
<p>All you need is the Instagram post <code>id</code> from the URL.</p>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue