Can HTML be used inside Markdown? #5329
-
Using https://marketplace.visualstudio.com/_apis/public/gallery/publishers/bierner/vsextensions/markdown-mermaid/1.22.0/vspackage (from https://marketplace.visualstudio.com/items?itemName=bierner.markdown-mermaid) it appears that every HTML element I try to include in my Markdown strings ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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:
However, it's essential to note that not all HTML elements may be supported or rendered correctly by all Markdown parsers. Additionally, some Markdown parsers may have security restrictions or limitations on which HTML elements are allowed to prevent XSS (Cross-Site Scripting) attacks. If you're encountering issues with including HTML elements in your Markdown content, you may need to consult the documentation or specifications of the Markdown parser you're using to understand its capabilities and any restrictions it may have regarding HTML elements. Additionally, testing your Markdown content with different parsers or rendering environments can help identify compatibility issues. |
Beta Was this translation helpful? Give feedback.
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:
Inline HTML: You can include HTML elements directly within Markdown content. For example:
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.