mdBook icon indicating copy to clipboard operation
mdBook copied to clipboard

Improved book.toml file Settings

Open Grey-Wind opened this issue 2 years ago • 4 comments

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 avatar Sep 21 '23 10:09 Grey-Wind

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

Grey-Wind avatar Sep 21 '23 10:09 Grey-Wind

@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?

ophilli avatar May 04 '24 23:05 ophilli

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

Grey-Wind avatar Nov 07 '24 10:11 Grey-Wind

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

Such as alert.

Grey-Wind avatar Nov 07 '24 10:11 Grey-Wind