Skip to content

Commit

Permalink
Forgot about inline blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Rosenberg committed Jan 25, 2013
1 parent 518e49b commit cbfc995
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ext/redcarpet/html.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,11 @@ rndr_blockquote(struct buf *ob, const struct buf *text, void *opaque)
static int
rndr_codespan(struct buf *ob, const struct buf *text, void *opaque)
{
BUFPUTSL(ob, "<code class=\"prettyprint\">");
struct html_renderopt *options = opaque;
if (options->flags & HTML_PRETTIFY)
BUFPUTSL(ob, "<code class=\"prettyprint\">");
else
BUFPUTSL(ob, "<code>");
if (text) escape_html(ob, text->data, text->size);
BUFPUTSL(ob, "</code>");
return 1;
Expand Down

0 comments on commit cbfc995

Please sign in to comment.