aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-07-04 19:56:05 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-07-04 19:56:05 -0300
commit6cef5617423400fdfdbbeb9e2b0d2de8b6c2253d (patch)
tree2f15d8f7c70e1a8ee20c8cd7a93d712dc03d565d /src
parent8c761376ab6921b74364f89e99eeb9a810abb3ce (diff)
downloadblogc-6cef5617423400fdfdbbeb9e2b0d2de8b6c2253d.tar.gz
blogc-6cef5617423400fdfdbbeb9e2b0d2de8b6c2253d.tar.bz2
blogc-6cef5617423400fdfdbbeb9e2b0d2de8b6c2253d.zip
content-parser: fixed bug when using inline delim in link title
Diffstat (limited to 'src')
-rw-r--r--src/content-parser.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/content-parser.c b/src/content-parser.c
index fa17ab8..8821a17 100644
--- a/src/content-parser.c
+++ b/src/content-parser.c
@@ -109,7 +109,7 @@ blogc_content_parse_inline(const char *src)
switch (c) {
case '\\':
- if (open_code || open_code_double) {
+ if (state == LINK_CLOSED && (open_code || open_code_double)) {
b_string_append_c(rv, c);
break;
}
@@ -119,7 +119,7 @@ blogc_content_parse_inline(const char *src)
case '*':
case '_':
- if (open_code || open_code_double) {
+ if (state == LINK_CLOSED && (open_code || open_code_double)) {
b_string_append_c(rv, c);
break;
}
@@ -176,7 +176,7 @@ blogc_content_parse_inline(const char *src)
break;
case '!':
- if (open_code || open_code_double) {
+ if (state == LINK_CLOSED && (open_code || open_code_double)) {
b_string_append_c(rv, c);
break;
}
@@ -188,7 +188,7 @@ blogc_content_parse_inline(const char *src)
break;
case '[':
- if (open_code || open_code_double) {
+ if (state == LINK_CLOSED && (open_code || open_code_double)) {
b_string_append_c(rv, c);
break;
}
@@ -212,7 +212,7 @@ blogc_content_parse_inline(const char *src)
break;
case ']':
- if (open_code || open_code_double) {
+ if (state == LINK_CLOSED && (open_code || open_code_double)) {
b_string_append_c(rv, c);
break;
}
@@ -246,7 +246,7 @@ blogc_content_parse_inline(const char *src)
break;
case '(':
- if (open_code || open_code_double) {
+ if (state == LINK_CLOSED && (open_code || open_code_double)) {
b_string_append_c(rv, c);
break;
}
@@ -260,7 +260,7 @@ blogc_content_parse_inline(const char *src)
break;
case ')':
- if (open_code || open_code_double) {
+ if (state == LINK_CLOSED && (open_code || open_code_double)) {
b_string_append_c(rv, c);
break;
}