mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-06-11 17:46:32 -04:00
markdown: test block link aria-label and title handling
This commit is contained in:
@@ -594,6 +594,38 @@ test "browser.markdown: block link" {
|
||||
);
|
||||
}
|
||||
|
||||
test "browser.markdown: block link with aria-label" {
|
||||
try testMarkdownHTML(
|
||||
\\<a href="https://example.com" aria-label="Docs">
|
||||
\\ <h3>Title</h3>
|
||||
\\ <p>Description</p>
|
||||
\\</a>
|
||||
,
|
||||
\\
|
||||
\\### Title
|
||||
\\
|
||||
\\Description
|
||||
\\[Docs](https://example.com)
|
||||
\\
|
||||
);
|
||||
}
|
||||
|
||||
test "browser.markdown: block link with title" {
|
||||
try testMarkdownHTML(
|
||||
\\<a href="https://example.com" title="Docs">
|
||||
\\ <h3>Title</h3>
|
||||
\\ <p>Description</p>
|
||||
\\</a>
|
||||
,
|
||||
\\
|
||||
\\### Title
|
||||
\\
|
||||
\\Description
|
||||
\\[Docs](https://example.com)
|
||||
\\
|
||||
);
|
||||
}
|
||||
|
||||
test "browser.markdown: inline link" {
|
||||
try testMarkdownHTML(
|
||||
\\<p>Visit <a href="https://example.com">Example</a>.</p>
|
||||
|
||||
Reference in New Issue
Block a user