]> granicus.if.org Git - multimarkdown/commitdiff
FIXED: Fix bug in last commit
authorFletcher T. Penney <fletcher@fletcherpenney.net>
Sun, 29 Jan 2017 12:59:55 +0000 (07:59 -0500)
committerFletcher T. Penney <fletcher@fletcherpenney.net>
Sun, 29 Jan 2017 12:59:55 +0000 (07:59 -0500)
src/html.c

index a89f007d2d3af6258f27b802e48ef20dabd9a6f5..081f5e47e430776bb50cf306037aa83a4f564af5 100644 (file)
@@ -501,7 +501,7 @@ void mmd_export_token_html(DString * out, const char * source, token * t, size_t
                                        continue;
                                }
 
-                               temp_char = label_from_token(scratch->source, temp_token);
+                               temp_char = label_from_token(source, temp_token);
 
                                printf("<li><a href=\"#%s\">", temp_char);
                                mmd_export_token_tree_html(out, source, temp_token->child, offset, scratch);