summaryrefslogtreecommitdiffstats
path: root/mdoc_markdown.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-03-07 12:39:01 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-03-07 12:39:01 +0000
commitb8ef179ea90844da1a88b01ec79d02fe12cf0d23 (patch)
treee4d26296c1c82875810ada1b7f8e7c12eb3a6ac6 /mdoc_markdown.c
parent78f3b980a3571b0a981193a493a0291762bd2aca (diff)
downloadmandoc-b8ef179ea90844da1a88b01ec79d02fe12cf0d23.tar.gz
Fix .In formatting in the SYNOPSIS:
No &zwnj; in the middle of **, please.
Diffstat (limited to 'mdoc_markdown.c')
-rw-r--r--mdoc_markdown.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/mdoc_markdown.c b/mdoc_markdown.c
index 1e1f115d..04710d0e 100644
--- a/mdoc_markdown.c
+++ b/mdoc_markdown.c
@@ -129,7 +129,7 @@ static const struct md_act md_acts[MDOC_MAX + 1] = {
{ NULL, md_pre_Fn, md_post_Fn, NULL, NULL }, /* Fn */
{ NULL, md_pre_Fd, md_post_raw, "*", "*" }, /* Ft */
{ NULL, md_pre_raw, md_post_raw, "**", "**" }, /* Ic */
- { NULL, md_pre_In, md_post_In, "*", "*" }, /* In */
+ { NULL, md_pre_In, md_post_In, NULL, NULL }, /* In */
{ NULL, md_pre_raw, md_post_raw, "`", "`" }, /* Li */
{ md_cond_head, md_pre_Nd, NULL, NULL, NULL }, /* Nd */
{ NULL, md_pre_Nm, md_post_Nm, "**", "**" }, /* Nm */
@@ -1067,16 +1067,15 @@ md_pre_In(struct roff_node *n)
{
if (n->flags & NODE_SYNPRETTY) {
md_pre_syn(n);
- md_pre_raw(n);
- md_rawword("*");
+ md_rawword("**");
outflags &= ~MD_spc;
md_word("#include <");
- outflags &= ~MD_spc;
} else {
md_word("<");
outflags &= ~MD_spc;
- md_pre_raw(n);
+ md_rawword("*");
}
+ outflags &= ~MD_spc;
return 1;
}
@@ -1085,13 +1084,11 @@ md_post_In(struct roff_node *n)
{
if (n->flags & NODE_SYNPRETTY) {
outflags &= ~MD_spc;
- md_rawword(">*");
- md_post_raw(n);
+ md_rawword(">**");
outflags |= MD_nl;
} else {
- md_post_raw(n);
outflags &= ~MD_spc;
- md_rawword(">");
+ md_rawword("*>");
}
}