diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-16 13:54:06 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-16 13:54:06 +0000 |
commit | 31f17a62e510f4e0732d1c76e7a56a1a69506dc6 (patch) | |
tree | 3ebfa16f389b97a4bfa5988b198dad27b59d3fb5 /mdoc_markdown.c | |
parent | 44573b326d6604f3025f17909863711b17011d5f (diff) | |
download | mandoc-31f17a62e510f4e0732d1c76e7a56a1a69506dc6.tar.gz mandoc-31f17a62e510f4e0732d1c76e7a56a1a69506dc6.tar.zst mandoc-31f17a62e510f4e0732d1c76e7a56a1a69506dc6.zip |
Implement the \*(.T predefined string (interpolate device name)
by allowing the preprocessor to pass it through to the formatters.
Used for example by the groff_char(7) manual page.
Diffstat (limited to 'mdoc_markdown.c')
-rw-r--r-- | mdoc_markdown.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mdoc_markdown.c b/mdoc_markdown.c index e73440a4..cbc1124d 100644 --- a/mdoc_markdown.c +++ b/mdoc_markdown.c @@ -1,6 +1,6 @@ -/* $Id: mdoc_markdown.c,v 1.24 2018/04/11 17:11:13 schwarze Exp $ */ +/* $Id: mdoc_markdown.c,v 1.25 2018/08/16 13:54:06 schwarze Exp $ */ /* - * Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -580,6 +580,9 @@ md_word(const char *s) case ESCAPE_SPECIAL: uc = mchars_spec2cp(seq, sz); break; + case ESCAPE_DEVICE: + md_rawword("markdown"); + continue; case ESCAPE_FONTBOLD: nextfont = "**"; break; |