# mdbook-nice **Repository Path**: jakHall/mdbook-nice ## Basic Information - **Project Name**: mdbook-nice - **Description**: mdbook的主题,用于美化部分操作,在结合mdbook-pdf打印时,更好的打印和显示页面. - **Primary Language**: Rust - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-01-04 - **Last Updated**: 2025-02-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mdbook_nice A css theme for mdbook. CSS 美化文件, 主要用于mdbook-pdf打印和html页面的基本美化. 美化思路: 1. 使用伪选择器,berfor和after,实现标题和代码块的背景色和字体颜色. 2. 使用伪选择器,实现表格的边框和背景色. 3. 使用page-break,实现分页. 4. 使用 word-break,word-wrap等实现换行和单词显示操作. ## Installation gitee: `git clone https://gitee.com/jakHall/mdbook-nice` github: `git clone https://github.com/passion-coder-min/mdbook-nice.git` 或者 * `cargo install --git https://gitee.com/jakHall/mdbook-nice` * `cargo install --git https://github.com/passion-coder-min/mdbook-nice.git` ## Usage `mdbook-nice install .` 或者 `mdbook-nice install path` ```sh Install the preprocessor and its assets Usage: mdbook-nice install [dest] Arguments: [dest] The destination directory for the assets [default: ./] Options: -h, --help Print help ``` 效果参考: * 标题/代码块 ![标题/代码块](img/README/image.png) * 表格 ![表格](img/README/image-2.png) * 引用块 ![引用块](img/README/image-1.png) * 图片 ![图片](img/README/image-3.png) ## 参考链接 * [mdbook-mermaid](https://github.com/badboy/mdbook-mermaid/) * [mdbook-pdf](https://github.com/HollowMan6/mdbook-pdf) * [markdown美化](https://github.com/caol64/wenyan)