Commit 0035a024 authored by Michael R Sweet's avatar Michael R Sweet

Support a la markdown.

parent ff998635
.TH mxml 3 "Mini-XML API" "08/31/18" "Mini-XML API"
.TH mxml 3 "Mini-XML API" "09/09/18" "Mini-XML API"
.SH NAME
mxml \- Mini-XML API
.SH INCLUDE FILE
......
......@@ -3615,11 +3615,16 @@ write_description(
if (!*ptr)
ptr --;
}
else if (!strncmp(ptr, "@code ", 6))
else if (!strncmp(ptr, "@code ", 6) || *ptr == '`')
{
for (ptr += 6; isspace(*ptr & 255); ptr ++);
char end = *ptr++; /* Terminating character */
for (start = ptr, ptr ++; *ptr && *ptr != '@'; ptr ++);
if (end != '`')
{
for (ptr += 5; isspace(*ptr & 255); ptr ++);
}
for (start = ptr, ptr ++; *ptr && *ptr != end; ptr ++);
if (*ptr)
*ptr = '\0';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment