Skip to content

Commit

Permalink
Merge pull request vmg#88 from andre-d/fix29
Browse files Browse the repository at this point in the history
Escaping will not happen if the escape character is at the end
  • Loading branch information
vmg committed Jan 26, 2012
2 parents 519e355 + b8be4a8 commit dde042f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/markdown.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,8 @@ char_escape(struct buf *ob, struct sd_markdown *rndr, uint8_t *data, size_t offs
rndr->cb.normal_text(ob, &work, rndr->opaque);
}
else bufputc(ob, data[1]);
} else if (size == 1) {
bufputc(ob, data[0]);
}

return 2;
Expand Down

0 comments on commit dde042f

Please sign in to comment.