aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--md.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/md.c b/md.c
index 2e283df..e5aaea7 100644
--- a/md.c
+++ b/md.c
@@ -783,6 +783,21 @@ int parse_markdown(char* input, char* buffer, size_t buffer_size) {
break;
} else
goto default2;
+ case('<'):
+ char* closing_gt = cur_char;
+ while(*closing_gt != 0 && *closing_gt != '\n') {
+ if(*closing_gt == '>') break;
+ closing_gt++;
+ }
+ if(*closing_gt != '>')
+ goto default2;
+
+ NEW_ACTIVE_CHILD(active_element, active_element->allow_inner ? active_element : root, -1, t_inner, false);
+ active_element->value = malloc(closing_gt - cur_char + 1);
+ memcpy(active_element->value, cur_char, closing_gt - cur_char + 1);
+ *(char*)((active_element->value) + (unsigned int)(closing_gt - cur_char) + 1) = 0;
+ cur_char = closing_gt;
+ active_element = active_element->parent;
case(' '):
if(hash_chain > 0) {
if(active_element->type != t_h) {
Jeremias Stotters git repositories generated by CGIT