When generating a TOC, don't anchor-encode the human-readable contents of the links .

This commit is contained in:
david parsons
2016-12-31 18:18:32 -08:00
parent c5a08735f0
commit 72c99f10b2
+2 -3
View File
@@ -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;