Sha256: fa823f7e0a3be7a522d5391e2e158978e91026f4e4451d64549fc21701a585cc
Contents?: true
Size: 436 Bytes
Versions: 9
Compression:
Stored size: 436 Bytes
Contents
module ReverseAdoc module Converters class Strong < Base 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 end register :strong, Strong.new register :b, Strong.new end end
Version data entries
9 entries across 9 versions & 1 rubygems