diff --git a/modules/markdown-rule.pl b/modules/markdown-rule.pl
index 7e432b02..232d78f8 100644
--- a/modules/markdown-rule.pl
+++ b/modules/markdown-rule.pl
@@ -158,11 +158,11 @@ push(@MyRules, \&MarkdownExtraRule);
sub MarkdownExtraRule {
# __italic underline__
if (m/\G__/cg) {
- return AddOrCloseHtmlEnvironment('em', 'style="font-style: italic; text-decoration: underline"');
+ return AddOrCloseHtmlEnvironment('em', 'style="font-style: normal; text-decoration: underline"');
}
# _underline_
elsif (m/\G_/cg) {
- return AddOrCloseHtmlEnvironment('em', 'style="font-style: normal; text-decoration: underline";');
+ return AddOrCloseHtmlEnvironment('em', 'style="font-style: normal; text-decoration: underline"');
}
# //italic//
elsif (m/\G\/\//cg) {
diff --git a/t/markdown-rule.t b/t/markdown-rule.t
index 76f6686c..2494487f 100644
--- a/t/markdown-rule.t
+++ b/t/markdown-rule.t
@@ -44,6 +44,10 @@ this is bold
bold
*italic*
italic
+__underline__
+underline
+_underline_
+underline
foo\nbar
foo bar
foo\n===\nbar