mdbook-nice

Crates.iomdbook-nice
lib.rsmdbook-nice
version0.1.1
created_at2025-02-12 03:55:22.072107+00
updated_at2025-07-11 07:50:12.483449+00
descriptionA mdbook plugin to add nice css to your book
homepage
repositoryhttps://gitee.com/jakHall/mdbook-nice
max_upload_size
id1552521
size230,873
(passion-coder-min)

documentation

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

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

效果参考:

  • 标题/代码块 标题/代码块

  • 表格 表格

  • 引用块 引用块

  • 图片 图片

参考链接

Commit count: 0

cargo fmt