Currently, an escaped backtick (\`) is translated to \\` which gets
rendered as "Left Single Quotation Mark" (‘) (for a UTF-8 locale).
This commit translates \` to \` which results in an actual backtick in
the rendered man page.
---
Example: man rc, section ARGUMENT EXPANSION.
src/main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/main.c b/src/main.c
index ca7db55..cd2a968 100644
--- a/src/main.c
+++ b/src/main.c
@@ -209,6 +209,8 @@ static void parse_text(struct parser *p) {
parser_fatal(p, "Unexpected EOF");
} else if (ch == '\\') {
fprintf(p->output, "\\\\");
+ } else if (ch == '`') {
+ fprintf(p->output, "\\`");
} else {
utf8_fputch(p->output, ch);
}
--
2.42.0