Markdown CSS Utility
Installation
<link rel="stylesheet" type="text/css" href="@nvidia-elements/markdown/dist/styles/index.css" />
Usage
To style the content inside an HTML element with the markdown styles,
add nve-markdown attribute to the element.
Example
CSS utility attribute for applying markdown typography styles to any element without using the Web Component. Use the nve-markdown attribute on a container and import the styles CSS file separately.
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
- Unordered list item 1
- Unordered list item 2
- Ordered list item 1
- Ordered list item 2
this is a blockqoutestrong
| Syntax | Description |
|---|---|
| Header | Title |
| Paragraph | Text |
Supported tags
- Headings (
h1,h2,h3,h4,h5,h6) - Unordered Lists (
ul,li) - Ordered Lists (
ol,li) - Blockquote (
blockquote) - Code (
pre,code) - Table (
table,thead,th,tr,td) - Image (
img) - Paragraph (
p) - Links (
a) - Bold (
strong) - Strikethrough (
del) - Italics (
em)