github_flavoured.c (discount-2.2.3a.tar.bz2) | : | github_flavoured.c (discount-2.2.4.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 69 | skipping to change at line 69 | |||
DELETE(line); | DELETE(line); | |||
if ( (pandoc == 3) && !(flags & (MKD_NOHEADER|MKD_STRICT)) ) { | if ( (pandoc == 3) && !(flags & (MKD_NOHEADER|MKD_STRICT)) ) { | |||
/* the first three lines started with %, so we have a header. | /* the first three lines started with %, so we have a header. | |||
* clip the first three lines out of content and hang them | * clip the first three lines out of content and hang them | |||
* off header. | * off header. | |||
*/ | */ | |||
Line *headers = T(a->content); | Line *headers = T(a->content); | |||
a->title = headers; __mkd_header_dle(a->title); | a->title = headers; __mkd_trim_line(a->title, 1); | |||
a->author= headers->next; __mkd_header_dle(a->author); | a->author= headers->next; __mkd_trim_line(a->author, 1); | |||
a->date = headers->next->next; __mkd_header_dle(a->date); | a->date = headers->next->next; __mkd_trim_line(a->date, 1); | |||
T(a->content) = headers->next->next->next; | T(a->content) = headers->next->next->next; | |||
} | } | |||
return a; | return a; | |||
} | } | |||
/* convert a block of text into a linked list | /* convert a block of text into a linked list | |||
*/ | */ | |||
Document * | Document * | |||
End of changes. 1 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added |