Hi there,
I am new to hugo, and so far the journey has been excellent and a lot of fun, thanks a lot for that! There is only one thing that I can’t really solve or can’t find in the docs. I am trying to render a table via markdownify (comes from front matter). But somehow the tables gets rendered as plain text in a paragraph tag, whatever I try (surrounding it by breaks, spaces, headers etc.).
Some info:
- hugo version: v0.69.2
- Multi language, with default config and goldmark
unsafe
set to true - Setting content in front matter
- rendering content in template with
| markdownify
Content example:
content: >-
### Info
---
* valid bullet
* valid bullet
| Option | Description |
| ------ | ----------- |
| data | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext | extension to be used for dest files. |
Template render
{{ .content | markdownify }}
result of table:
<p>| Option | Description | | —— | ———– | | data | path to data files to supply the data that will be passed into templates. | | engine | engine to be used for processing templates. Handlebars is the default. | | ext | extension to be used for dest files. |
</p>
Problem:
Table renders as plain text in a paragraph tag, the rest of the markdown renders perfectly.
Maybe I missed configuration or anything else. Hopefully someone else had the same experience and fixed it somehow.
Cheers!
Paul