Sha256: 883d8c8c280a77977df9b83963d28132929a67356a58cf68138e115ea1f6cf3d
Contents?: true
Size: 451 Bytes
Versions: 10
Compression:
Stored size: 451 Bytes
Contents
module ReverseAsciidoctor module Converters class Em < Base def convert(node, state = {}) content = treat_children(node, state.merge(already_italic: true)) if content.strip.empty? || state[:already_italic] content else "#{content[/^\s*/]}_#{content.strip}_#{content[/\s*$/]}" end end end register :em, Em.new register :i, Em.new register :cite, Em.new end end
Version data entries
10 entries across 10 versions & 2 rubygems