Skip to main content

Markdown .md tests

This file should be interpreted in a more CommonMark compliant way

Comment

Html comment:

MDX comment: {/* comment */}

JSX syntax

import BrowserWindow from '@site/src/components/BrowserWindow';

BrowserWindow content

export const answer = 42;

Test {xyz}

Admonition

Admonitions still work

title

note

Heading Id

Custom heading syntax {#custom-heading-id} still works


HTML

Styling

blue span

green p

lime red

Embeds

Closed image tag:


Unclosed image tag:


Iframe


Security

<p>
When pressing this button, no alert should be printed
<button onClick="alert('unsafe');">Click me</button>
</p>

When pressing this button, no alert should be printed