#mdbook #size #image #syntax

bin+lib mdbook-image-size

A mdbook preprocessor which support image size syntax

1 unstable release

0.1.0 Nov 27, 2023

#1200 in Text processing

MIT license

18KB
223 lines

mdbook-image-size

A mdbook preprocessor which support image size syntax

width & height

From

![the alt](path/to/your/image "the title" =500x400)

To

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

width only

From

![the alt](path/to/your/image "the title" =500x)

To

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

height only

From

![the alt](path/to/your/image "the title" =x400)

To

<img src="path/to/your/image" alt="the alt" title="the title" height="400">

TIP: No alt and title is ok.

Dependencies

~12–25MB
~333K SLoC