Replies: 2 comments 1 reply
-
Like obsidian-dataview it's more beneficial to make it compatible with existing markdown files which unlocks a lot of potential use cases. |
Beta Was this translation helpful? Give feedback.
-
We considered various alternatives but this is what we decided on, and I don’t think we are likely to change it. You can disable code execution in JavaScript code blocks by setting ```js run=false
1 + 2
``` We are also planning on making code block options configurable both at the page level (via front matter) and the project level (via the project config file) #156. This would let you disable JavaScript code execution by default, and then you could opt-in to execution like so: ```js run
1 + 2
``` |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Great work! I'm wondering if it's possible to make Observable framework compatible with ordinary markdown.
For example, the framework use triple to denote executable code block, which makes it hard to migrate existing markdown files to Observable.
It would be great if there is a explicit way to denote the code block as executable, and the rest of the markdown file can be rendered as usual. eg.
For inline code blocks
Multi-line
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions