lib/stepmod/utils/converters/strong.rb in stepmod-utils-0.3.12 vs lib/stepmod/utils/converters/strong.rb in stepmod-utils-0.3.13

- old
+ new

@@ -6,15 +6,16 @@ class Strong < ReverseAdoc::Converters::Base BLANK_CHARS = "{blank}" def convert(node, state = {}) content = treat_children(node, state.merge(already_strong: true)) + strong_tag = state[:non_flanking_whitesapce] ? '**' : '*' if content.strip.empty? || state[:already_strong] content else handle_express_escape_seq( node, - "#{content[/^\s*/]}*#{content.strip}*#{content[/\s*$/]}" + "#{content[/^\s*/]}#{strong_tag}#{content.strip}#{strong_tag}#{content[/\s*$/]}" ) end end private