diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-10-25 01:32:40 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-10-25 01:32:40 +0000 |
commit | 6d7bd68376bb91e0b5c2ea4ec175b367ed946fc5 (patch) | |
tree | b0f9734269df7b90bac3701dd8a4ac62cc8550f0 /mdoc_markdown.c | |
parent | a93cab0159f106fce2adae204f5e9a1011800296 (diff) | |
download | mandoc-6d7bd68376bb91e0b5c2ea4ec175b367ed946fc5.tar.gz mandoc-6d7bd68376bb91e0b5c2ea4ec175b367ed946fc5.tar.zst mandoc-6d7bd68376bb91e0b5c2ea4ec175b367ed946fc5.zip |
Implement the \f(CW and \f(CR (constant width font) escape sequences
for HTML output. Somewhat relevant because pod2man(1) relies on this.
Missing feature reported by Pali dot Rohar at gmail dot com.
Note that constant width font was already correctly selected before
this when required by semantic markup. Only attempting physical
markup with the low-level escape sequence was ineffective.
Diffstat (limited to 'mdoc_markdown.c')
-rw-r--r-- | mdoc_markdown.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_markdown.c b/mdoc_markdown.c index 301b71c7..bfa25a66 100644 --- a/mdoc_markdown.c +++ b/mdoc_markdown.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_markdown.c,v 1.26 2018/08/17 20:33:38 schwarze Exp $ */ +/* $Id: mdoc_markdown.c,v 1.27 2018/10/25 01:32:40 schwarze Exp $ */ /* * Copyright (c) 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> * @@ -600,6 +600,7 @@ md_word(const char *s) nextfont = "***"; break; case ESCAPE_FONT: + case ESCAPE_FONTCW: case ESCAPE_FONTROMAN: nextfont = ""; break; |