summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdmin <admin@marx.cafe>2022-12-12 01:04:32 -0500
committerAdmin <admin@marx.cafe>2022-12-12 01:04:32 -0500
commite59d3b1b06c859370e7c7c2c6c7a5788907279a7 (patch)
treef46b7b6f797a05dec4078b11e29d0ec9756a521f
parent150104139c8d3ece3bd440d509f4bc142047fed4 (diff)
Typo in html2md
-rwxr-xr-xhtml2md.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/html2md.rb b/html2md.rb
index 664cfa7..ae39111 100755
--- a/html2md.rb
+++ b/html2md.rb
@@ -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