# Markdown is not rendered as expected

**URL:** <https://discourse.gohugo.io/t/markdown-is-not-rendered-as-expected/43130>\
**Category:** support\
**Tags:** yaml\
**Created:** [February 23, 2023, 10:09pm UTC](https://discourse.gohugo.io/t/markdown-is-not-rendered-as-expected/43130 "2023-02-23T22:09:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bob3x255](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bob3x255/32/17445_2.png) [@bob3x255](https://discourse.gohugo.io/u/bob3x255)\
**Post date:** [February 23, 2023, 10:09pm UTC](https://discourse.gohugo.io/t/markdown-is-not-rendered-as-expected/43130/1 "2023-02-23T22:09:14Z")

</div>

Hi!

I’m currently working with [Congo](https://jpanther.github.io/congo/) theme that uses Tailwind CSS.  
After [building the theme CSS from the source](https://jpanther.github.io/congo/docs/advanced-customisation/#building-the-theme-css-from-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

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

```

This is what I see in browser.  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/0/8/08dfcef4861a6fa2ec214278bc7e571543d23ca3.png)

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 🙂

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

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [February 23, 2023, 10:54pm UTC](https://discourse.gohugo.io/t/markdown-is-not-rendered-as-expected/43130/2 "2023-02-23T22:54:38Z")

</div>

See [https://yaml-multiline.info/](https://yaml-multiline.info/).

You need to do this:

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

```

and this:

```plaintext
{{ .Params.content | markdownify }}

```

---

<div class="post-metadata">

**Author:** ![bob3x255](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bob3x255/32/17445_2.png) [@bob3x255](https://discourse.gohugo.io/u/bob3x255)\
**Post date:** [February 23, 2023, 11:33pm UTC](https://discourse.gohugo.io/t/markdown-is-not-rendered-as-expected/43130/3 "2023-02-23T23:33:10Z")

</div>

@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](https://canada1.discourse-cdn.com/flex036/uploads/gohugo/original/3X/e/2/e287386a0ca7a99da9af3ea4da7332ea43b84395.png)

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [February 23, 2023, 11:34pm UTC](https://discourse.gohugo.io/t/markdown-is-not-rendered-as-expected/43130/4 "2023-02-23T23:34:45Z")

</div>

> [@bob3x255](#):
>
> I am not sure how to add right styles to compiled CSS file

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

---

<div class="post-metadata">

**Author:** ![nternetinspired](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/nternetinspired/32/19706_2.png) [@nternetinspired](https://discourse.gohugo.io/u/nternetinspired)\
**Post date:** [February 24, 2023, 12:51pm UTC](https://discourse.gohugo.io/t/markdown-is-not-rendered-as-expected/43130/5 "2023-02-24T12:51:31Z")

</div>

For future reference:  
[https://github.com/jpanther/congo/discussions/481](https://github.com/jpanther/congo/discussions/481)

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [March 3, 2023, 7:26pm UTC](https://discourse.gohugo.io/t/markdown-is-not-rendered-as-expected/43130/6 "2023-03-03T19:26:05Z")

</div>

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