Method: WordToMarkdown::Converter#remove_unicode_bullets_from_list_items!
- Defined in:
- lib/word-to-markdown/converter.rb
#remove_unicode_bullets_from_list_items! ⇒ Object
95 96 97 98 99 100 |
# File 'lib/word-to-markdown/converter.rb', line 95 def remove_unicode_bullets_from_list_items! path = WordToMarkdown.soffice.major_version == "5" ? "li span span" : "li span" @document.tree.search(path).each do |span| span.inner_html = span.inner_html.gsub /^([#{UNICODE_BULLETS.join("")}]+)/, "" end end |