Skip to content

Can HTML be used inside Markdown? #5329

Discussion options

You must be logged in to vote

In Markdown, the syntax for HTML elements is supported, but it depends on the specific Markdown renderer or parser being used. Some Markdown parsers may have limitations or restrictions on which HTML elements are allowed for security or other reasons.

Here's how you can include HTML elements in Markdown:

  1. Inline HTML: You can include HTML elements directly within Markdown content. For example:

    This is a paragraph with <strong>bold</strong> text.
  2. Block-Level HTML: You can also use HTML block-level elements like <div>, <p>, <ul>, <ol>, etc., which will be rendered as block-level elements in HTML.

    <div>
        <p>This is a paragraph.</p>
        <ul>
            <li>Item 1</li>
            <li>Item 2</li>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RokeJulianLockhart
Comment options

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