lib/md2man/roff.rb in md2man-3.0.2 vs lib/md2man/roff.rb in md2man-4.0.0
- old
+ new
@@ -40,11 +40,11 @@
def normal_paragraph text
"\n.PP\n#{text}\n"
end
def block_code code, language
- code = escape(code, true)
+ code = escape(super, true)
block_quote "\n.nf\n#{code.chomp}\n.fi\n"
end
def block_quote quote
"\n.PP\n.RS\n#{remove_leading_pp(quote).chomp}\n.RE\n"
@@ -159,10 +159,10 @@
def superscript text
warn "md2man/roff: superscript not implemented: #{text.inspect}"
end
def codespan code
- code = escape(code, true)
+ code = escape(super, true)
# NOTE: this double font sequence gives us the best of both worlds:
# man(1) shows it in bold and `groff -Thtml` shows it in monospace
"\\fB\\fC#{code}\\fR"
end