# Heading not rendered

**URL:** <https://talk.jekyllrb.com/t/heading-not-rendered/2084>\
**Category:** Help\
**Created:** [August 19, 2018, 1:02pm UTC](https://talk.jekyllrb.com/t/heading-not-rendered/2084 "2018-08-19T13:02:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brunoripa](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/brunoripa/32/1179_2.png) [@brunoripa](https://talk.jekyllrb.com/u/brunoripa)\
**Post date:** [August 19, 2018, 1:02pm UTC](https://talk.jekyllrb.com/t/heading-not-rendered/2084/1 "2018-08-19T13:02:41Z")

</div>

Hi,

i am using jekyll and i have heading not being rendered.

 ![22](https://canada1.discourse-cdn.com/flex030/uploads/jekyllrb/original/2X/b/b5ed66b6f00ecaadd9f9acdff95e9fccaa099ff2.png)

I have attached an image that shows how ### and ##### are not translated to proper html tags; i can add that:

1. the untranslated string is wrapped into a paragraph tag
2. styles are not causing the problem, since i have wiped away \_styles.scss and still the issue is here.

Here’s my kramdown section of config file:

kramdown:  
auto\_ids: true  
footnote\_nr: 1  
entity\_output: as\_char  
toc\_levels: 1…6  
enable\_coderay: false

syntax\_highlighter\_opts:  
ine\_numbers:  
line\_numbers\_start: 1  
tab\_width: 4  
bold\_every: 10  
css: class

I don’t reasonably remember i have played with this anytime.

Thanks in advance for the help.

Bruno

---

<div class="post-metadata">

**Author:** ![ashmaroli](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@ashmaroli](https://talk.jekyllrb.com/u/ashmaroli)\
**Post date:** [August 19, 2018, 1:51pm UTC](https://talk.jekyllrb.com/t/heading-not-rendered/2084/2 "2018-08-19T13:51:54Z")

</div>

To render Markdown elements nested inside HTML tags, you need to set `{::options parse_block_html="true" /}` first:

```nohighlight
{::options parse_block_html="true" /}
<div>
  ### Heading 3
  [lorem ipsum](http://foo.bar)
</div>
{::options parse_block_html="false" /}

```

This will render into:

```auto
<div>
  <h3>Heading 3</h3>
  <a href="http://foo.bar">lorem ipsum</a>
</div>

```

---

<div class="post-metadata">

**Author:** ![brunoripa](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/brunoripa/32/1179_2.png) [@brunoripa](https://talk.jekyllrb.com/u/brunoripa)\
**Post date:** [August 19, 2018, 3:09pm UTC](https://talk.jekyllrb.com/t/heading-not-rendered/2084/3 "2018-08-19T15:09:35Z")

</div>

Sorry, i ahve not been enough clear. The paragraph tag wrapping the heading is automatically inserted, my md file is very simple:

# h1

stuff

# h2

stuff

…

and down to h6. H3 and H5 are NOT correctly rendered 😕

Sorry if i have not been enough clear. And thanks for help !

---

<div class="post-metadata">

**Author:** ![ashmaroli](https://avatars.discourse-cdn.com/v4/letter/a/df705f/32.png) [@ashmaroli](https://talk.jekyllrb.com/u/ashmaroli)\
**Post date:** [August 19, 2018, 5:52pm UTC](https://talk.jekyllrb.com/t/heading-not-rendered/2084/4 "2018-08-19T17:52:38Z")

</div>

I could not reproduce this at my end.  
I suggest you update your gemset and try again (especially required if you’re using the plugins `jekyll-mentions` or `jemoji`)

```auto
$ bundle update

```

---

<div class="post-metadata">

**Author:** ![yashumittal](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/yashumittal/32/1260_2.png) [@yashumittal](https://talk.jekyllrb.com/u/yashumittal)\
**Post date:** [August 20, 2018, 7:22am UTC](https://talk.jekyllrb.com/t/heading-not-rendered/2084/5 "2018-08-20T07:22:13Z")

</div>

Can you share the `.md` file in which you are facing the issue?

---

<div class="post-metadata">

**Author:** ![sugab](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/sugab/32/6143_2.png) [@sugab](https://talk.jekyllrb.com/u/sugab)\
**Post date:** [December 4, 2024, 6:41am UTC](https://talk.jekyllrb.com/t/heading-not-rendered/2084/6 "2024-12-04T06:41:07Z")

</div>

How to do this in `_layouts/default.html` or CSS so we don’t need to write it every time?
