Skip to content

Commit

Permalink
Patch for issue #83
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocolacio committed Jan 9, 2018
1 parent 5937a16 commit 9556256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hoedown/html.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ rndr_blockcode(hoedown_buffer *ob, const hoedown_buffer *text, const hoedown_buf
{
if (ob->size) hoedown_buffer_putc(ob, '\n');
hoedown_html_renderer_state *state = data->opaque;
if (lang && (state->flags & HOEDOWN_HTML_MERMAID) != 0 && hoedown_buffer_eq(lang, "mermaid", 5) == 0){
if (lang && (state->flags & HOEDOWN_HTML_MERMAID) != 0 && hoedown_buffer_eq(lang, "mermaid", 7) != 0){
if (text){
HOEDOWN_BUFPUTSL(ob, "<div class=\"mermaid\">");
hoedown_buffer_put(ob, text->data, text->size);
Expand Down

0 comments on commit 9556256

Please sign in to comment.