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.29k stars 1.64k forks source link

Improved book.toml file Settings #2198

Open Grey-Wind opened 1 year ago

Grey-Wind commented 1 year ago

Problem

Allows direct writing of JavaScript code. For example:

[output.html]
additional-js = {
alert("Hello, world!");}

Proposed Solution

No response

Notes

No response

Grey-Wind commented 1 year ago

I think this solves the JavaScript file setup problem to some extent

ophilli commented 6 months ago

@Grey-Wind I do not understand your problem / solution here.

Is your problem that you can't include JS in an mdbook so you want to add an additional-js field to the output.html section?

Grey-Wind commented 6 days ago

I mean when I want to use some simple functions, I can write it in the toml file.

Grey-Wind commented 6 days ago

I mean when I want to use some simple functions, I can write it in the toml file.

Such as alert.