diff options
author | Rise <8315221+AmazingRise@users.noreply.github.com> | 2021-09-17 06:23:36 +0300 |
---|---|---|
committer | Rise <8315221+AmazingRise@users.noreply.github.com> | 2021-09-17 06:23:36 +0300 |
commit | 558d2671e7b63f7e79b220c6439cadcc0b0c6b21 (patch) | |
tree | b38e63b1cb3c1d27629ade495dbac24906235a77 | |
parent | fcf5e7fdd823839db753e310a22dbe6a9f421203 (diff) |
Updated Inserting Figures (markdown)
-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). |