Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create an extension to execute JavaScript code in the browser #60

Open
ggrossetie opened this issue Mar 13, 2016 · 2 comments
Open

Create an extension to execute JavaScript code in the browser #60

ggrossetie opened this issue Mar 13, 2016 · 2 comments

Comments

@ggrossetie
Copy link
Member

This could be really useful when writing documentation for a JavaScript library.
The extension will search for JavaScript source code blocks and add a link/button "Run this code in your browser" to execute the code and print the result in the browser.

@mojavelinux
Copy link
Member

This is something I've always envisioned being part of the source block. Perhaps we can add an "interactive" option to source block and use a Treeprocessor to add a "run this code" button and output area. That way, it wouldn't just be specific to JavaScript (though we could start there).

@mojavelinux
Copy link
Member

Interesting to note that we might be able to support Ruby execution via Opal :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants