diff options
-rwxr-xr-x | html2md.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -54,8 +54,8 @@ end body.css('i').each { |i| i.replace("*#{i.inner_text}*") } body.css('em').each { |i| i.replace("*#{i.inner_text}*") } # Replace bold -body.css('b').each { |b| i.replace("**#{b.inner_text}**") } -body.css('strong').each { |b| i.replace("**#{b.inner_text}**") } +body.css('b').each { |b| b.replace("**#{b.inner_text}**") } +body.css('strong').each { |b| b.replace("**#{b.inner_text}**") } # Replace strike body.css('strike').each { |strike| strike.replace("~~#{strike.inner_text}~~") } # Replace horizontal rules |