Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use upstream version of anchor patch

  • Loading branch information...
commit 96875c83fc6e2969f2814b4e364b5602e06750c0 1 parent ea79c12
Ryan Tomayko rtomayko authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  discount
  2. +2 −2 ext/generate.c
2  discount
@@ -1 +1 @@
-Subproject commit e73f33b1e8b6319d8c7225936877b4e3eb03023d
+Subproject commit cecde1de9acf21e22fada45ab45a52c3f6fa7f17
4 ext/generate.c
View
@@ -1313,9 +1313,9 @@ static void
printheader(Paragraph *pp, MMIOT *f)
{
if ( f->flags & MKD_TOC ) {
- Qprintf(f, "<a name=\"", pp->hnumber);
+ Qstring("<a name=\"", f);
mkd_string_to_anchor(T(pp->text->text), S(pp->text->text), Qchar, f, 1);
- Qprintf(f, "\"></a>\n");
+ Qstring("\"></a>\n", f);
}
Qprintf(f, "<h%d>", pp->hnumber);
push(T(pp->text->text), S(pp->text->text), f);
Please sign in to comment.
Something went wrong with that request. Please try again.