Add `allowedTypes` and `resizableTypes` to `imageProcessing` configuration
Prior to this commit, SVG images were not processed by `render-image.html` because SVG does not have a physical dimension like JPEG. This logic was done using a conditional.
I have now realised that Hugo can be very slow when resizing `gif` images. So I created this whitelist mechanism:
- `allowedTypes`: image types with width and height attributes
- `resizableTypes`: image types that can be resized
Here's a list of media types: bmp, gif, jpeg, png, svg+xml, tiff, webp
https://gohugo.io/templates/output-formats/#media-types
* fix(codeblock): pass through the options of chroma
Pass through the options of chroma highlighting processing for whom
may use some options in codeblock.
This commit fix problem with the following scenarios:
```python {linenos=true}
print("Hello World")
```
Signed-off-by: cubercsl <2014cais01@gmail.com>
* fix(codeblock): margin of no highlight codeblock
This commit fix the wrong margin value of the codeblock which
can not highlight.
The margin is now use the value of ".article-content pre"
Signed-off-by: cubercsl <2014cais01@gmail.com>
Signed-off-by: cubercsl <2014cais01@gmail.com>