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

"Run" JS snippets #1461

Open
Scott-MacD opened this issue Jan 25, 2018 · 2 comments
Open

"Run" JS snippets #1461

Scott-MacD opened this issue Jan 25, 2018 · 2 comments
Labels
feature request 🌟 Issue is a new feature request.

Comments

@Scott-MacD
Copy link

I don't know if you would consider this as part of the scope of what Boostnote does, however I would really love to see the ability to "run" code snippit notes in an iFrame, akin to a simplified codepen or jsbin, and one step further still, to be able to embed these snippits into Markdown notes.

I use Boostnote to document style guides, coding practices, and component functionality etc, all of which would be immensely more useful if I could have actual working examples in the documentation, which just sounds like a perfect fit for Boostnote. The snippit note feature is largely unusable for me without this capability, because in order to show how this works in the documentation I need to create a separate codepen and link to it, in which I mine as well just leave all the code on codepen instead of having to maintain it in two seperate places, and makes it harder to skim through examples.

@kazup01 kazup01 added help wanted 🆘 Pull request/issue requires extra help from the community. Check these out if you're new! feature request 🌟 Issue is a new feature request. labels Jan 25, 2018
@0d-gg
Copy link

0d-gg commented Jan 26, 2018

While it would be a neat feature to have js-enabled files... it's definitely something that should be approached carefully. The code snippet must actually be sand-boxed (unlike current JS running in BoostNote as per #1443 ). Even without the code execution/sandbox escape, it's going to be hard to implement in a safe way.

I think of it like macro-enabled office documents. If JS gets officially supported, perhaps a banner should show before executing any scripts letting the user know that a "live" markdown file is being used, with some kind of warning? ex:

image

@bimlas
Copy link
Contributor

bimlas commented Mar 23, 2018

I would love this feature too, like it works on tech.io.

@Flexo013 Flexo013 removed the help wanted 🆘 Pull request/issue requires extra help from the community. Check these out if you're new! label Aug 6, 2019
@Flexo013 Flexo013 changed the title [Feature Request] "Run" snippits "Run" JS snippets Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request 🌟 Issue is a new feature request.
Projects
None yet
Development

No branches or pull requests

5 participants