aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2019-02-24 23:12:40 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2019-02-24 23:12:40 +0100
commit699f4b4032431fbd7f4fbf13fe9e2b085225b215 (patch)
tree3a8b605f56a4c05384abd21d6e58e7017f55ed7e /src
parent2ae2d648ab0bd5340ca1342c97d704b2d4ce948c (diff)
downloadblogc-699f4b4032431fbd7f4fbf13fe9e2b085225b215.tar.gz
blogc-699f4b4032431fbd7f4fbf13fe9e2b085225b215.tar.bz2
blogc-699f4b4032431fbd7f4fbf13fe9e2b085225b215.zip
blogc: content: do not escape inline code
this is more compatible with markdown spec[1] [1] https://daringfireball.net/projects/markdown/syntax#code
Diffstat (limited to 'src')
-rw-r--r--src/blogc/content-parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blogc/content-parser.c b/src/blogc/content-parser.c
index d295a2c..047af4b 100644
--- a/src/blogc/content-parser.c
+++ b/src/blogc/content-parser.c
@@ -347,7 +347,7 @@ blogc_content_parse_inline_internal(const char *src, size_t src_len)
free(tmp3);
tmp3 = NULL;
bc_string_append(rv, "<code>");
- bc_string_append_escaped(rv, tmp2);
+ bc_string_append(rv, tmp2);
bc_string_append(rv, "</code>");
current = tmp - src;
tmp = NULL;
@@ -376,7 +376,7 @@ blogc_content_parse_inline_internal(const char *src, size_t src_len)
free(tmp3);
tmp3 = NULL;
bc_string_append(rv, "<code>");
- bc_string_append_escaped(rv, tmp2);
+ bc_string_append(rv, tmp2);
bc_string_append(rv, "</code>");
current = tmp - src + 1;
tmp = NULL;