Skip to content

Commit

Permalink
Use \fP instead of \fR when ending code blocks
Browse files Browse the repository at this point in the history
\fR switches to the roman font, making this only work if the font
was previously roman. With \fP, it switches to the previous font,
working in both headlines as well as regular paragraph text.

Fixes kapouer#4
  • Loading branch information
steveklabnik committed Jul 18, 2015
1 parent 89d7434 commit 036920c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/marked-man.js
Expand Up @@ -110,7 +110,7 @@ InlineLexer.prototype.roff_output = function(src) {
src = src.substring(cap[0].length);
out += '\\fB'
+ resc(cap[2], true)
+ '\\fR';
+ '\\fP';
continue;
}

Expand Down

0 comments on commit 036920c

Please sign in to comment.