From 558d2671e7b63f7e79b220c6439cadcc0b0c6b21 Mon Sep 17 00:00:00 2001 From: Rise <8315221+AmazingRise@users.noreply.github.com> Date: Fri, 17 Sep 2021 11:23:36 +0800 Subject: Updated Inserting Figures (markdown) --- Inserting-Figures.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 ``, 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). -- cgit v1.2.3