rust-lang / mdBook

Create book from markdown files. Like Gitbook but implemented in Rust
https://rust-lang.github.io/mdBook/
Mozilla Public License 2.0
17.84k stars 1.62k forks source link

Execute JS code blocks #2439

Closed XinranSix closed 1 week ago

XinranSix commented 1 week ago

Problem

when where's a js block like js:

console.log("Hello World!")

I like it to execute directly, just like the Rust code below:

fn main () {
    println!("Hello World!");
}

Proposed Solution

No response

Notes

No response

ehuss commented 1 week ago

Thanks for the report! I believe this is a duplicate of #1453 and #350, so closing in favor of those.