# Markdown rendering in \<div\> tag

**URL:** <https://discourse.jupyter.org/t/markdown-rendering-in-div-tag/9062>\
**Category:** JupyterLab\
**Created:** [May 4, 2021, 6:49pm UTC](https://discourse.jupyter.org/t/markdown-rendering-in-div-tag/9062 "2021-05-04T18:49:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathan\_Glenn](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/nathan_glenn/32/4331_2.png) [@Nathan\_Glenn](https://discourse.jupyter.org/u/Nathan_Glenn)\
**Post date:** [May 4, 2021, 6:49pm UTC](https://discourse.jupyter.org/t/markdown-rendering-in-div-tag/9062/1 "2021-05-04T18:49:31Z")

</div>

Hi, I’m using Jupyter Lab 3.0.14 and I’m having trouble with the markdown rendering. The issue is similar to the one in this Notebook ticket: [Problem with rendering of formatted markdown cells · Issue #3874 · jupyter/notebook · GitHub](https://github.com/jupyter/notebook/issues/3874)

I have a markdown cell with the following contents:

```
<div class="alert alert-block alert-info">

# Part 1: The Power of Two Choices
    
</div>

```

My understanding is that the markdown should render as long as there is a blank line between it and the div tags. This works fine in the regular notebook view:

(system wouldn’t let me share the screenshot, sorry ☹ )

However, when I try to export the file to HTML, the rendering no longer works:

![image](https://canada1.discourse-cdn.com/flex031/uploads/jupyter/original/2X/e/e1678d1d0808d1f601ee79c8c3f935c1ee8316d1.png)

Is there a trick I’m missing, like some specific formatting I need for the markdown export to work? Or should I open a new bug ticket?
