Ben/add code sandbox (#1053)

* Add codesandbox support

* Fix codesandbox hastiness
This commit is contained in:
Ben Halpern 2018-11-02 10:31:20 -04:00 committed by GitHub
parent ad25882ea7
commit 3bc1d8cf5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -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)

View file

@ -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>