Render hyperlinks with hyperref green colour
This commit is contained in:
1 parent
a8b20563fb
commit
09781d40e9
12 files changed
+158
-11
No files matched your search
@@ -1384,3 +1384,16 @@ fn natbib_citations_use_author_year() {
|
||||
"bibliography years should carry a/b suffixes: {third}"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn href_text_is_painted_with_the_link_colour() {
|
||||
let source = r"\documentclass{article}
|
||||
\begin{document}
|
||||
See \href{https://example.com}{the example site} for details.
|
||||
\end{document}";
|
||||
let value = fresh_preview(source, "href.tex");
|
||||
assert_eq!(value["status"], "ok", "{value}");
|
||||
let svg = page_svg(&value, 0);
|
||||
assert!(svg.contains("fill=\"#008000\""), "{svg}");
|
||||
assert!(svg.contains(">example</text>"), "{svg}");
|
||||
}
|
||||
Reference in new issue
Block a user