Permalink
Browse files

fixed #5 render extension does not work correctly

  • Loading branch information...
1 parent f453eca commit b2dd5e7a8769286100ca9744bced8e578ba4d95b @chobie committed Jan 8, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/php_sundown.c
  2. +1 −1 src/sundown_markdown.c
View
@@ -251,7 +251,7 @@ static void sundown__render(SundownRendererType render_type, INTERNAL_FUNCTION_P
}
opt.self = object;
- markdown = sd_markdown_new(0, 16, &sundown_render, &opt);
+ markdown = sd_markdown_new(enabled_extensions, 16, &sundown_render, &opt);
sd_markdown_render(output_buf, input_buf.data, input_buf.size, markdown);
sd_markdown_free(markdown);
@@ -430,7 +430,7 @@ PHP_METHOD(sundown_markdown, render)
}
}
- markdown = sd_markdown_new(render_flags, 16, &sundown_render, &opt);
+ markdown = sd_markdown_new(enabled_extensions, 16, &sundown_render, &opt);
sd_markdown_render(output_buf, input_buf.data, input_buf.size, markdown);
sd_markdown_free(markdown);

0 comments on commit b2dd5e7

Please sign in to comment.