markdownlint/test/inline_html.md

41 lines
892 B
Markdown

# Regular heading
<h1>Inline HTML Heading {MD033}</h1>
<p>More inline HTML {MD033}
but this time on multiple lines
</p>
<h1>This shouldn't trigger as it's inside a code block</h1>
```text
<p>Neither should this as it's also in a code block {MD046:11}</p>
```
## Elements in code spans
Text `<code>` text \` text
Text \` text `<code>` text
Text \` text \` text `<code>` text
Text \` text `<code>` text `<code>` text
Text \` text `<code>` text \` text `<code>` text
Text \`\` text `<code>` text
Text `<code>` text \` text `<code>` text
## Slash in element name
Text **\<base directory>\another\directory\\<slash/directory>** text
## Self-closing elements
<hr> {MD033}
<hr/> {MD033}
## Links
<a href="https://example.com">Google</a> {MD033}
<a href="https://example.com" target="_blank">Google</a> {MD033}
<a href="https://example.com:9999" target="_blank">Google</a> {MD033}