commit 879bec9d5b01f33bcf01ffa93802c7967b5a451d
parent b98c71e21963f8cc27ed5a7c5d9a5a203966f980
Author: Drew DeVault <sir@cmpwn.com>
Date: Tue, 20 Apr 2021 10:35:04 -0400
haredoc: mark all references as "invalid" (for now)
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/cmd/haredoc/html.ha b/cmd/haredoc/html.ha
@@ -155,7 +155,7 @@ fn markup_html(in: *io::stream) (void | io::error) = {
free(tx);
},
re: reference => {
- fmt::print("<a href='#' class='ref'>")?;
+ fmt::print("<a href='#' class='ref invalid'>")?;
const ident = unparse::identstr(re);
defer free(ident);
html::escape(os::stdout, ident);
@@ -386,6 +386,10 @@ h2, h3, h4 {
display: flex;
}
+.invalid {
+ color: red;
+}
+
.heading-extra {
align-self: flex-end;
flex-grow: 1;