TableOfContents & Linebreaks not working

I’m not sure why my table of contents and line breaks aren’t working. I have the following:



toc

single.html:

{{ .TableOfContents }}




markdown linebreaks not working

themes>my-theme>hugo.toml and theme.toml:

[markup.goldmark.renderer]
hardWraps = false




post.md

---
title: "post"
---

A
B
C

# Heading 1
Heading 1 sentence.

# Heading 2
Heading 2 sentence.

# Heading 3
Heading 3 sentence.





‘A, B, C’ are not on seperate lines, and there is no table of contents for ‘# Heading 1, # Heading 2, # Heading 3’.
Capture




Repo GitHub - jpnfighter/steve-site: hugo website

https://gohugo.io/getting-started/configuration-markup/#table-of-contents

1 Like

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