Permalink
Browse files

fix #13 fix overriding callback methods

  • Loading branch information...
1 parent 483a019 commit c9eca4508c1d4e8c052776470876838875a17cf1 @chobie committed Apr 1, 2012
Showing with 14 additions and 14 deletions.
  1. +13 −13 sundown_markdown.c
  2. +1 −1 tests/006-render-custom-codeblock.phpt
View
@@ -227,35 +227,35 @@ static struct sd_callbacks php_sundown_callbacks = {
};
static const char *php_sundown_method_names[] = {
- "blockCode",
- "blockQuote",
- "blockHtml",
+ "blockcode",
+ "blockquote",
+ "blockhtml",
"header",
"hrule",
- "listBox",
- "listItem",
+ "listbox",
+ "listitem",
"paragraph",
"table",
- "tableRow",
- "tableCell",
+ "tablerow",
+ "tablecell",
"autolink",
"codespan",
- "doubleEmphasis",
+ "doubleemphasis",
"emphasis",
"image",
"linebreak",
"link",
- "rawHtml",
- "tripleEmphasis",
+ "rawhtml",
+ "tripleemphasis",
"strikethrough",
"superscript",
"entity",
- "normalText",
+ "normaltext",
- "docHeader",
- "docFooter"
+ "docheader",
+ "docfooter"
};
static const size_t php_sundown_method_count = sizeof(php_sundown_method_names)/sizeof(char *);
@@ -32,7 +32,7 @@ $m2 = new Sundown\Markdown(
array('fenced_code_blocks' => true)
);
-$m->render('
+$m2->render('
This is a normal paragraph.
``` php

0 comments on commit c9eca45

Please sign in to comment.