on master help sign in
Remove link underlines by default, inherit text color
commitbc6b876b7d8d53943c3373ef91958c2b7e6ada2e authoriko <mail@iko.soy> dateSun 26 Apr 2026, 16:52 (5 months ago) parent48c90a7
1 file changed+2−1
crates/htmlang-core/src/codegen.rs+2−1
crates/htmlang-core/src/codegen.rs+2−1
@@ -1218,6 +1218,7 @@ fn generate_full_inner(doc: &Document, dev: bool) -> String {
12181218*, *::before, *::after {{ box-sizing: border-box; }}
12191219body {{ margin: 0; font-family: system-ui, -apple-system, sans-serif; }}
12201220img {{ display: block; }}
1221+a {{ text-decoration: none; color: inherit; }}
12211222{focus_visible_css}{skip_link_css}{element_css}\
12221223</style>
12231224{noscript_html}\
@@ -1248,7 +1249,7 @@ img {{ display: block; }}
12481249 )
12491250 } else {
12501251 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>",
12521253 title = html_escape(title),
12531254 lang_attr = lang_attr,
12541255 theme_color_html = theme_color_html,