summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhtml2md.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/html2md.rb b/html2md.rb
index fde907d..97ccfa1 100755
--- a/html2md.rb
+++ b/html2md.rb
@@ -53,6 +53,9 @@ end
# Replace italics
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}**") }
# Replace horizontal rules
body.css('hr').each { |hr| hr.replace "\n\n---\n\n" }
# Remove carriage returns