Skip to content

Commit

Permalink
Merge pull request #457 from BBaoVanC/fix-underline-css
Browse files Browse the repository at this point in the history
Fix `font-style: underline;` should be `text-decoration: underline;`
  • Loading branch information
trishume committed Jan 12, 2023
2 parents dd14114 + a5ae4ec commit c61ce60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ pub fn css_for_theme_with_class_style(theme: &Theme, style: ClassStyle) -> Resul

if let Some(fs) = i.style.font_style {
if fs.contains(FontStyle::UNDERLINE) {
css.push_str("font-style: underline;\n");
css.push_str("text-decoration: underline;\n");
}
if fs.contains(FontStyle::BOLD) {
css.push_str("font-weight: bold;\n");
Expand Down

0 comments on commit c61ce60

Please sign in to comment.