-/* $Id: mdoc_markdown.c,v 1.3 2017/03/06 14:58:10 schwarze Exp $ */
+/* $Id: mdoc_markdown.c,v 1.4 2017/03/07 12:39:01 schwarze Exp $ */
/*
* Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
*
{ 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 */
{
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;
}
{
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("*>");
}
}
--- /dev/null
+FD-EMPTY(1) - General Commands Manual
+
+# NAME
+
+**Fd-empty** - empty preprocessor directive macros
+
+# SYNOPSIS
+
+**#include <sys/types.h>**
+**#include <stdlib.h>**
+
+# DESCRIPTION
+
+leading text
+trailing text
+
+OpenBSD - February 5, 2015
--- /dev/null
+IN-BREAK(2) - System Calls Manual
+
+# NAME
+
+**In-break** - line break before header include file
+
+# SYNOPSIS
+
+**#include <fcntl.h>**
+
+*int*
+**open**(*const char \*path*, *int flags*, *mode\_t mode*);
+
+**#include <sys/types.h>**
+**#include <unistd.h>**
+
+*int*
+**dup**(*int oldd*);
+
+*ssize\_t*
+**write**(*int d*, *const void \*buf*, *size\_t nbytes*);
+
+# DESCRIPTION
+
+<*fcntl.h*>
+*int*
+**open**(*const char \*path*, *int flags*, *mode\_t mode*)
+<*sys/types.h*>
+<*unistd.h*>
+*int*
+**dup**(*int oldd*)
+*ssize\_t*
+**write**(*int d*, *const void \*buf*, *size\_t nbytes*)
+
+OpenBSD - June 6, 2010