Added support for pandoc's fenced code blocks
[smdp.git] / src / viewer.c
index 13874d8..0021e79 100644 (file)
@@ -577,8 +577,10 @@ void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols, int colo
     // IS_CODE
     if(CHECK_BIT(line->bits, IS_CODE)) {
 
-        // set static offset for code
-        offset = CODE_INDENT;
+       if (!CHECK_BIT(line->bits, IS_TILDE_CODE)) {
+               // set static offset for code
+               offset = CODE_INDENT;
+       }
 
         // reverse color for code blocks
         if(colors)