How to include HTML code in HUGO?

Good morning:
On a markdown coded page with the “book” theme - I included html code,

<p>
<a href="https://github.com/cocoland-manual/coco-usermanual/releases/latest/download/cocoUserManual.zip" style="
text-align: center;
font-size: larger;
-moz-border-radius: 1em;
border-radius: 1em;
border: 1px solid #00A2E8;
background-color: white;
color: #00A2E8;
padding: 2px 1em;
">Descargar manual de usuario sin conexión</a>
</p>

But on the resulting page I see the following instead:

<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
<!-- raw HTML omitted -->
.
.

How to make this HTML code included in it’s position?

Did you search the forum? I’d guess that this question has been asked and answered already, may be here: Hugo 0.60.0 Raw HTML omitted Issue

Unrelated: Including verbatim style attributes in HTML is not a very good idea, in my opinion. You’d want consistently styled elements, which you can achieve better with external CSS.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.