forked from github/kensanata.oddmuse
Markdown rule: fix rules for __ and _
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user