Commit Graph

12 Commits

Author SHA1 Message Date
expikr a132734ea0 Additional Theme
add tests for additional-themes

Update book.js

sanitized default

sanitize the id name in the DOM

catch error if attempting to select or deselect a non-existent theme.

sanitize theme names

Update book.js

Update book.js

Update book.js

Revert "Update book.js"

This reverts commit 0ed9477bf418c48615f7f48fe6209874603401fc.

Update book.js

Update config.rs

Revert "Update hbs_renderer.rs"

This reverts commit 54ad1d530003e8000b725da96cced424e572445c.

Revert "Update config.rs"

This reverts commit 06909a72e5675979f1d686bc2a127b8d77491295.

Revert "Update hbs_renderer.rs"

This reverts commit dc0f9595619dd4ede3f2812d370112ef55ba8f54.

Update hbs_renderer.rs

Update hbs_renderer.rs

Update config.rs

Update book.js

Additional Theme
2023-11-23 17:43:49 +08:00
Jacek Sieka 5c8941ba16 Add Nim to default languages
Nim is a systems programming language (included in the highlight.js
`system` group), and we're quite happily using `mdBook` in several of
our documentation projects starting with our [style
guide](https://status-im.github.io/nim-style-guide/).

While we can maintain our own highlight.js, including `Nim` in the
default distribution would allow us to promote more mdBook usage in the
Nim community at the cost of a ~2kb increase in the `highlight.js` size.
2023-11-08 15:34:35 +01:00
cN3rd 8564a7fb51 Add proper test to inline code within the book. 2023-09-02 14:38:02 -07:00
Eric Huss 4f15a3f85c Document that strikethrough can also use a single tilde. 2023-06-29 12:27:06 -07:00
Eric Huss 861197e61c Add a test to the test_book for custom heading attributes 2023-05-28 11:33:24 -07:00
zjj 54f14e89cf
Update test_book highlight.md
Add missing bash annotation
2023-05-25 12:04:43 +08:00
Andreas Deininger a2c88ae0f1 Convert links from http to https protocol 2023-04-02 21:35:08 +02:00
Brett Chalupa 79c159d123 Add styles for <kbd> elements
Allows for special styles to call them out since they're different than
normal text and different than code. They can make use of styles they
inherit for font style and weight.

Notes on changes:

- Added new CSS variables for reused elements
- The font-* rules are separate for each aspect so that they can inherit
  bold/italic/etc

Closes https://github.com/rust-lang/mdBook/issues/1813
2022-10-06 16:02:29 -04:00
Yashodhan Joshi b8ef89db62 Add rust specific codeblock examples 2021-10-05 12:11:29 +05:30
Yashodhan Joshi c283211a37 Add Languages examples for syntax highlighting 2021-10-05 12:02:33 +05:30
Yashodhan Joshi d5af051d0e Add individual tag examples in test_book 2021-10-04 16:17:52 +05:30
Yashodhan Joshi 68f9afe64b Setup basic structure for test book 2021-10-04 13:14:49 +05:30