mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-24 11:25:30 +00:00
Support a la markdown.
This commit is contained in:
parent
ff998635dd
commit
0035a02432
@ -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
|
||||
|
11
mxmldoc.c
11
mxmldoc.c
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user