I am trying to use the HTML details tag for a collapsing section - which is notated in markdown. But the content is enclosed in a pre-block and a code-block and there is a copy button.
Here’s my source:
- here we have one level
<details open>
<summary>a test of details</summary>
- some content
- some more content
- indented one level
- indented two levels
- more indented one level
</details>
- here we have the next at one level
Here’s what it looks like rendered:
And here’s what the generated HTML looks like:
<li>
<p>here we have one level</p>
<details open="">
<summary>a test of details</summary>
<pre><button class="code-copy-btn" type="button">copy</button><code> - some content
- some more content
- indented one level
- indented two levels
- more indented one level
</code></pre>
</details>
</li>
I don’t know where that extra stuff is coming from. I really just want the normally rendered markdown stuff.
Hugo version: hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66+extended windows/amd64 BuildDate=2022-06-16T07:09:16Z VendorInfo=gohugoio
Excerpt of config.toml
:
[markup.goldmark.renderer]
unsafe = true
[markup.goldmark.extensions]
footnote = true
strikethrough = true
table = true
Theme is monkeyWzr at a27a143
.
With this custom.css
:
/* hide the 'article-gallery' */
.article-gallery {
display: none;
}
/* make sure menus don't print */
@media print {
div#header-post { display: none; }
div#footer-post { display: none; }
div#footer-post-container { display: none; }
footer#footer { display: none; }
body { font-size: 11px; }
}