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
18.4k stars 1.65k forks source link

Execute JS code blocks #2439

Closed XinranSix closed 2 months ago

XinranSix commented 2 months 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 2 months ago

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