Markdown is not rendered as expected

Hi!

I’m currently working with Congo theme that uses Tailwind CSS.
After building the theme CSS from the source I stumbled upon an issue that neither front matter variable or content is rendered with appropriate styles through markdown processor (goldmark).
For example front matter variable

content: " 
1. List item
2. List item
3. List item
"

This is what I see in browser.
image

As far as I understand it renders using Tailwind default styles and I am not sure why it is not processed as markdown content despite using markdownify function. I can manually add inline styles that are required in layout files but it doesn’t feel like the right way at all :slight_smile:

It’s my first theme customization and I am not sure where to look to achieve desired behavior.
Any help is appreciated!

See https://yaml-multiline.info/.

You need to do this:

---
title: Post 1
content: |
  1. List item
  2. List item
  3. List item
---

and this:

{{ .Params.content | markdownify }}

@jmooring thanks. It yields a an ordered list now, however, it’s does not rended numbers preceding the item (same for unordered list). I am not sure how to add right styles to compiled CSS file, so that I could get markdown styles as well.
image

Please raise the question with the theme author:
https://github.com/jpanther/congo/discussions

For future reference:
https://github.com/jpanther/congo/discussions/481

1 Like

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