# Markdown not being rendered within HTML block

**URL:** <https://discourse.gohugo.io/t/markdown-not-being-rendered-within-html-block/2532>\
**Category:** support\
**Created:** [January 25, 2016, 8:56pm UTC](https://discourse.gohugo.io/t/markdown-not-being-rendered-within-html-block/2532 "2016-01-25T20:56:59Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![lebarde](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/lebarde/32/2207_2.png) [@lebarde](https://discourse.gohugo.io/u/lebarde)\
**Post date:** [June 1, 2017, 9:47pm UTC](https://discourse.gohugo.io/t/markdown-not-being-rendered-within-html-block/2532/6 "2017-06-01T21:47:18Z")

</div>

Sorry to bump this thread out of the ground.

To have markdown rendered within HTML blocks, what is [usually](https://stackoverflow.com/a/29378250/26465) done in [other](https://kramdown.gettalong.org/syntax.html#html-blocks) Markdown [dialects](https://michelf.ca/projects/php-markdown/extra/#markdown-attr) is to add a `markdown=1` option in the html outer tag. An [other solution](https://github.github.com/gfm/#example-153) retained in Github Flavoured Markdown is to add blank lines this way:

```auto
<div>

*Emphasized* text.

</div>

```

This kind of behaviour is currently what I need to render a gallery. I am doing it this way:

```auto
<div class="gallery" markdown=1>
![Image 1](image_link "image caption")
![Image 2](image_link "image caption")
![Image 3](image_link "image caption")
</div>

```

Then trigger it with CSS.

But note that blackfriday [has not implemented it for now](https://github.com/russross/blackfriday/issues/184#issuecomment-261568011).

My 2 cents.

**EDIT** : **[Here](https://discuss.gohugo.io/t/script-use-advanced-markdown-features-images-etc/6812?u=lebarde)** is a script to render a Markdown draft into HTML with pandoc. It accepts Markdown within a HTML block.

---

_[View the full topic](https://discourse.gohugo.io/t/markdown-not-being-rendered-within-html-block/2532)._
