Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

replaced tildes (~) with at signs (@).

  • Loading branch information...
commit 1975b129f8fee948f5f9de0962ea7cb8c0182981 1 parent 8e0484b
@agentlame authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/markdown.c
View
12 src/markdown.c
@@ -601,11 +601,11 @@ char_emphasis_or_autolink_username(struct buf *ob, struct sd_markdown *rndr, uin
if (size < 2)
return 0;
- if((data[1] != '~') || (size > 3 && data[2] == '~')) {
+ if((data[1] != '@') || (size > 3 && data[2] == '@')) {
r = char_autolink_username(ob, rndr, data, offset, size);
}
- if (!r && data[1] == '~')
+ if (!r && data[1] == '@')
r = char_emphasis(ob, rndr, data, offset, size);
return r;
@@ -707,11 +707,11 @@ char_codespan(struct buf *ob, struct sd_markdown *rndr, uint8_t *data, size_t of
static size_t
char_escape(struct buf *ob, struct sd_markdown *rndr, uint8_t *data, size_t offset, size_t size)
{
- static const char *escape_chars = "\\`*_{}[]()#+-.!:|&<>/^~";
+ static const char *escape_chars = "\\`*_{}[]()#+-.!:|&<>/^@";
struct buf work = { 0, 0, 0, 0 };
if (size > 2) {
- if (data[1] == '~' && data[2] == '~') {
+ if (data[1] == '@' && data[2] == '@') {
bufputc(ob, data[1]);
bufputc(ob, data[2]);
return 3;
@@ -2437,9 +2437,9 @@ sd_markdown_new(
md->active_char['/'] = MD_CHAR_AUTOLINK_SUBREDDIT;
if (extensions & MKDEXT_STRIKETHROUGH)
- md->active_char['~'] = MD_CHAR_EMPHASIS_OR_AUTOLINK_USERNAME;
+ md->active_char['@'] = MD_CHAR_EMPHASIS_OR_AUTOLINK_USERNAME;
else
- md->active_char['~'] = MD_CHAR_AUTOLINK_USERNAME;
+ md->active_char['@'] = MD_CHAR_AUTOLINK_USERNAME;
}
if (extensions & MKDEXT_SUPERSCRIPT)
Please sign in to comment.
Something went wrong with that request. Please try again.