I’m super excited for this! One thought though, on the syntax. Wouldn’t it be a bit odd if suddenly this line in a README.md: ```js const foo = 1 + 1 ``` Rendered as: `2` ? Isn’t that kind of what we’re doing here with the mermaid source tag? That tag is for showing source code, no? Feels like there should be another tag for rendering it.
Only the mermaid identifier is supported for triple backticks blocks, you can't put js and have it spit out script that executes in the browser.
```ruby
# syntax highlighted as ruby
a = 1 + 1
```
And: ```js
// syntax highlighted as js
a = 1 + 1
```
So maybe we should have something like a "bang" prefix to evaluate and inline/embed like: ```!ruby
# evaluated
as ruby
a = 1 + 1
# renders 2 because of implicit return?
```