默认情况下,编辑器是Ace编辑器,但是,如果需要,可以通过提供不同的文件夹来覆盖功能: [output.html.playpen] editable = true editor = "/path/to/editor" 请注意,要让编辑器更改正常运行,book.js里面的theme文件夹,你需要覆盖下,因为它与默认的Ace编辑器有一些耦合....
Note: for simplicity, this tool just directly modify thecssTextintheme-dawn.jsandtheme-tomorrow_night.js. That is to say, if you settheme-white = "xcode", you may find there isnotheme-xcode.cssortheme-xcode.jsin thebuild_dir. You are allowed to provide theace-dark.cssandace-white.css...
{{/if}} {{#if search_js}}
The theme picker now shows which theme is currently selected. #1935 FixedAvoid blank line at the end of an ACE code block #1836 mdBook 0.4.2192afe9b...8f01d02FixedFixed an issue where mdBook would fail to compile with Rust nightly-2022-07-22. #1861 mdBook...
className === "theme") { theme = e.target.id; } else { return; } // 若当前 mdbook 主题不是 Light 或 Rust ,则将 giscuz 主题设置为 transparent_dark var giscusTheme = "light" if (theme != "light" && theme != "rust") { giscusTheme = "transparent_dark"; } var msg = ...