Permalink
Browse files

Escaping will not happen if the escape character is at the end

  • Loading branch information...
1 parent 519e355 commit b8be4a8a357bedc751d70c1703eb71aa7dbeb4b6 @andre-d andre-d committed Jan 25, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/markdown.c
View
2 src/markdown.c
@@ -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;

0 comments on commit b8be4a8

Please sign in to comment.