class ReverseMarkdown::Converters::Ol
Public Instance Methods
convert(node, state = {})
click to toggle source
# File lib/reverse_markdown/converters/ol.rb, line 4 def convert(node, state = {}) ol_count = state.fetch(:ol_count, 0) + 1 "\n" << treat_children(node, state.merge(ol_count: ol_count)) end