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-sizeadd it as a preprocessor in book.toml
[preprocessor.image-size]
command = "mdbook-image-size"