Skip to content
Browse files

Properly define the header_anchor helper function

Prevents all the various segfaults we've seen since 3.1.0

Fixes #349
  • Loading branch information...
1 parent a1a42f5 commit 7f82fb59945fa528da5ce787ac9fcf0a40386139 @mattr- mattr- committed Feb 17, 2014
Showing with 3 additions and 0 deletions.
  1. +3 −0 ext/redcarpet/markdown.h
View
3 ext/redcarpet/markdown.h
@@ -104,6 +104,9 @@ struct sd_callbacks {
void (*doc_footer)(struct buf *ob, void *opaque);
};
+/* header methods used internally in Redcarpet */
+char* header_anchor(const struct buf *text);
+
struct sd_markdown;
/*********

1 comment on commit 7f82fb5

@robin850
Collaborator

I can be really stupid sometimes. Thank you so much mate! ❤️

Please sign in to comment.
Something went wrong with that request. Please try again.