on master help sign in
Remove link underlines by default, inherit text color
bc6b876iko
crates/htmlang-core/src/codegen.rs+2−1
@@ -1218,6 +1218,7 @@ fn generate_full_inner(doc: &Document, dev: bool) -> String {
1218*, *::before, *::after {{ box-sizing: border-box; }}
1218*, *::before, *::after {{ box-sizing: border-box; }}
1219body {{ margin: 0; font-family: system-ui, -apple-system, sans-serif; }}
1219body {{ margin: 0; font-family: system-ui, -apple-system, sans-serif; }}
1220img {{ display: block; }}
1220img {{ display: block; }}
1221+a {{ text-decoration: none; color: inherit; }}
1221{focus_visible_css}{skip_link_css}{element_css}\
1222{focus_visible_css}{skip_link_css}{element_css}\
1222</style>
1223</style>
1223{noscript_html}\
1224{noscript_html}\
@@ -1248,7 +1249,7 @@ img {{ display: block; }}
1248 )
1249 )
1249 } else {
1250 } else {
1250 format!(
1251 format!(
1251− "<!DOCTYPE html><html{lang_attr}><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><title>{title}</title>{theme_color_html}{base_html}{canonical_html}{manifest_html}{preload_html}{dns_prefetch_html}{meta_html}{og_html}{favicon_html}{json_ld_html}{head_html}<style>*,*::before,*::after{{box-sizing:border-box}}body{{margin:0;font-family:system-ui,-apple-system,sans-serif}}img{{display:block}}{focus_visible_css}{skip_link_css}{element_css}</style>{noscript_html}</head><body>{body}</body></html>",
1252+ "<!DOCTYPE html><html{lang_attr}><head><meta charset=\"utf-8\"><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><title>{title}</title>{theme_color_html}{base_html}{canonical_html}{manifest_html}{preload_html}{dns_prefetch_html}{meta_html}{og_html}{favicon_html}{json_ld_html}{head_html}<style>*,*::before,*::after{{box-sizing:border-box}}body{{margin:0;font-family:system-ui,-apple-system,sans-serif}}img{{display:block}}a{{text-decoration:none;color:inherit}}{focus_visible_css}{skip_link_css}{element_css}</style>{noscript_html}</head><body>{body}</body></html>",
1252 title = html_escape(title),
1253 title = html_escape(title),
1253 lang_attr = lang_attr,
1254 lang_attr = lang_attr,
1254 theme_color_html = theme_color_html,
1255 theme_color_html = theme_color_html,