mdx-js / specification

Archived info on MDX language and AST definitions
265 stars 11 forks source link

Wrap markdown in arbitrary HTML #19

Closed billcolumbia closed 6 years ago

billcolumbia commented 6 years ago

Trying to do something like this:

<div class="taco">

# Hello

</div>

... which ends up rendering like:

<div class="taco"></div>
<h1>Hello</h1>

... but I expected:

<div class="taco">
    <h1>Hello</h1>
</div>

For my typical markdown files that get parsed by remark, it does work. So I'm just trying to figure out why it wouldn't work in mdx. I searched through issues here and found #15, which seemed like it might be related?

billcolumbia commented 6 years ago

Might also be related to #11

billcolumbia commented 6 years ago

Just found https://github.com/mdx-js/mdx/issues/241 - Will close I suppose. Bummer, sorry about that.