Support a la markdown.

This commit is contained in:
Michael R Sweet 2018-09-09 22:09:17 -04:00
parent ff998635dd
commit 0035a02432
No known key found for this signature in database
GPG Key ID: 999559A027815955
2 changed files with 9 additions and 4 deletions

View File

@ -1,4 +1,4 @@
.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

View 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';