class ReverseAsciidoctor::Converters::Strong
Public Instance Methods
convert(node, state = {})
click to toggle source
# File lib/reverse_asciidoctor/converters/strong.rb, line 4 def convert(node, state = {}) content = treat_children(node, state.merge(already_strong: true)) if content.strip.empty? || state[:already_strong] content else "#{content[/^\s*/]}*#{content.strip}*#{content[/\s*$/]}" end end