diff options
-rw-r--r-- | Inserting-Figures.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Inserting-Figures.md b/Inserting-Figures.md index 82a5a7c..37d27b6 100644 --- a/Inserting-Figures.md +++ b/Inserting-Figures.md @@ -12,6 +12,19 @@ To post a centering image, you can: **NOTE:** The blank lines matter, don't remove them. +## Inserting Images in HTML code + +To insert images in HTML, such as `<img src=... />`, there is a limit. Hugo's Markdown renderer doesn't allow raw HTML code by default. + +To enable raw HTML support in Hugo, please configure your `config.toml`: + +```toml +[markup.goldmark.renderer] + unsafe = true +``` + +Please don't raise issues on this. You can give a feedback to Hugo's Markdown renderer, `GoldMark`. + ## Resizing or more ... Inspired by [this issue](https://github.com/AmazingRise/hugo-theme-diary/issues/55), I ported a shortcode from [cupper-hugo-theme](https://github.com/zwbetz-gh/cupper-hugo-theme). |