| Crates.io | mdbook-image-size |
| lib.rs | mdbook-image-size |
| version | 0.2.1 |
| created_at | 2023-11-27 14:16:37.496286+00 |
| updated_at | 2024-07-18 07:49:38.259496+00 |
| description | A mdbook preprocessor which support image size syntax |
| homepage | |
| repository | https://github.com/lhybdv/mdbook-image-size.git |
| max_upload_size | |
| id | 1050462 |
| size | 66,855 |
A mdbook preprocessor which support image size syntax
From

To
<p><img src="path/to/your/image" alt="the alt" title="the title" width="500" height="400"></p>
From

To
<p><img src="path/to/your/image" alt="the alt" title="the title" width="500"></p>
From

To
<p><img src="path/to/your/image" alt="the alt" title="the title" height="400"></p>
[!TIP] No alt or title is ok.
left is default
From

To
<p style="text-align:center"><img src="path/to/your/image" alt="the alt" title="the title" width="500" height="400"></p>
From

To
<p style="text-align:right"><img src="path/to/your/image" alt="the alt" title="the title" width="500" height="400"></p>
cargo install mdbook-image-size
add it as a preprocessor in book.toml
[preprocessor.image-size]
command = "mdbook-image-size"