Markdown rule: fix rules for __ and _

This commit is contained in:
Alex Schroeder
2017-05-22 17:59:34 +02:00
parent 0872647101
commit 9ef84922d4
2 changed files with 6 additions and 2 deletions

View File

@@ -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) {

View File

@@ -44,6 +44,10 @@ this is <strong>bold</strong>
<strong>bold</strong>
*italic*
<em>italic</em>
__underline__
<em style="font-style: normal; text-decoration: underline">underline</em>
_underline_
<em style="font-style: normal; text-decoration: underline">underline</em>
foo\nbar
foo bar
foo\n===\nbar