mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
When generating a TOC, don't anchor-encode the human-readable contents of the links .
This commit is contained in:
@@ -64,9 +64,8 @@ mkd_toc(Document *p, char **doc)
|
||||
S(srcp->text->text),
|
||||
(mkd_sta_function_t)Csputc, &res,1,p->ctx->flags);
|
||||
Csprintf(&res, "\">");
|
||||
mkd_string_to_anchor(T(srcp->text->text),
|
||||
S(srcp->text->text),
|
||||
(mkd_sta_function_t)Csputc, &res,0,p->ctx->flags);
|
||||
Csreparse(&res, T(srcp->text->text),
|
||||
S(srcp->text->text), 0);
|
||||
Csprintf(&res, "</a>");
|
||||
|
||||
first = 0;
|
||||
|
||||
Reference in New Issue
Block a user