Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

Andre d Vicent Marti
Andre d

Corrects an issue where (at the end or the only content):
:-\
renders as :-

:-\

Vicent Marti
Owner

Looking good. Thanks for spotting this!

Vicent Marti vmg merged commit dde042f into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/markdown.c
2  src/markdown.c
View
@@ -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;
Something went wrong with that request. Please try again.