diff options
author | 2020-01-19 18:02:00 +0000 | |
---|---|---|
committer | 2020-01-19 18:02:00 +0000 | |
commit | 23f80e14e78282088dabbf1cfe358c07030dc9e7 (patch) | |
tree | a76006eb8db0481907b44a8fb28a37ebeb628fa0 /mdoc_markdown.c | |
parent | 66e8f935f05d1018898cee9e0c4ad713fc6b8673 (diff) | |
download | mandoc-23f80e14e78282088dabbf1cfe358c07030dc9e7.tar.gz mandoc-23f80e14e78282088dabbf1cfe358c07030dc9e7.tar.zst mandoc-23f80e14e78282088dabbf1cfe358c07030dc9e7.zip |
Introduce a new mdoc(7) macro .Tg ("tag") to explicitly mark a place
as defining a term. Please only use it when automatic tagging does
not work. Manual page authors will not be required to add the new
macro; using it remains optional. HTML output is still rudimentary
in this version and will be polished later.
Thanks to kn@ for reminding me that i have been considering since
BSDCan 2014 whether something like this might be useful. Given
that possibilities of making automatic tagging better are running
out and there are still several situations where automatic tagging
cannot do the job, i think the time is now ripe.
Feedback and no objection from millert@; OK espie@ inoguchi@ kn@.
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 88e37c0b..7c1c3940 100644 --- a/mdoc_markdown.c +++ b/mdoc_markdown.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_markdown.c,v 1.31 2019/07/01 22:56:24 schwarze Exp $ */ +/* $Id: mdoc_markdown.c,v 1.32 2020/01/19 18:02:00 schwarze Exp $ */ /* * Copyright (c) 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> * @@ -226,6 +226,7 @@ static const struct md_act md_acts[MDOC_MAX - MDOC_Dd] = { { NULL, NULL, md_post_pc, NULL, NULL }, /* %Q */ { NULL, md_pre_Lk, md_post_pc, NULL, NULL }, /* %U */ { NULL, NULL, NULL, NULL, NULL }, /* Ta */ + { NULL, NULL, NULL, NULL, NULL }, /* Tg */ }; static const struct md_act *md_act(enum roff_tok); |