Skip to content

Question re interleaving #2038

Answered by wooorm
omidantilong asked this question in Q&A
May 15, 2022 · 1 comments · 11 replies
Discussion options

You must be logged in to vote

Hi!

You need to use `backticks` in markdown on GitHub around HTML. Otherwise they’re treated as actual HTML.

Your understanding of those docs is correct. Your understanding of markdown and HTML blocks is also correct. MDX, as explained in the docs, deviates from that. Our users wanted interleaving.

In your example, you are not using interleaving, and I believe that this fact, not using interleaving, makes the interleaving awkward.

<div>
  This is already a paragraph. You must not wrap it in `<p>`s.
</div>

You can style that div whatever way you want.
I understand the theoretical need to style <p>s, but believe that in most cases you can instead style a <div> around it, which is perhaps b…

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@ChristianMurphy
Comment options

@omidantilong
Comment options

@omidantilong
Comment options

@ChristianMurphy
Comment options

@omidantilong
Comment options

Answer selected by ChristianMurphy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants