mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
mkd_text() is now mkd_generateline(); the new
function `mkd_line()` formats a line into a string, similarly to `mkd_toc()`, `mkd_xml()`, and so on. There are a whole bunch of new public functions now, so I'm pushing the version up to 1.4.0
This commit is contained in:
@@ -310,7 +310,7 @@ ftitle(MMIOT *doc, FILE* output, int flags)
|
||||
h = pagename;
|
||||
|
||||
if ( h )
|
||||
mkd_text(h, strlen(h), output, flags);
|
||||
mkd_generateline(h, strlen(h), output, flags);
|
||||
}
|
||||
|
||||
|
||||
@@ -322,7 +322,7 @@ fdate(MMIOT *doc, FILE *output, int flags)
|
||||
char *h = infop ? ctime(&infop->st_mtime) : mkd_doc_date(doc);
|
||||
|
||||
if ( h )
|
||||
mkd_text(h, strlen(h), output, flags|MKD_TAGTEXT);
|
||||
mkd_generateline(h, strlen(h), output, flags|MKD_TAGTEXT);
|
||||
}
|
||||
|
||||
|
||||
@@ -339,7 +339,7 @@ fauthor(MMIOT *doc, FILE *output, int flags)
|
||||
#endif
|
||||
|
||||
if ( h )
|
||||
mkd_text(h, strlen(h), output, flags);
|
||||
mkd_generateline(h, strlen(h), output, flags);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user