+ inline_display(window, &line->text->text[offset], colors);
+ } else {
+
+ // IS_CENTER
+ if(CHECK_BIT(line->bits, IS_CENTER)) {
+ if(line->length < max_cols) {
+ wmove(window, y, x + ((max_cols - line->length) / 2));
+ }
+ }
+
+ // IS_H1 || IS_H2
+ if(CHECK_BIT(line->bits, IS_H1) || CHECK_BIT(line->bits, IS_H2)) {
+
+ // set headline color
+ if(colors)
+ wattron(window, COLOR_PAIR(CP_BLUE));
+
+ // enable underline for H1
+ if(CHECK_BIT(line->bits, IS_H1))
+ wattron(window, A_UNDERLINE);
+
+ // skip hashes
+ while(line->text->text[offset] == '#')
+ offset = next_word(line->text, offset);
+
+ // print whole lines
+ wprintw(window,
+ "%s", &line->text->text[offset]);
+
+ wattroff(window, A_UNDERLINE);
+
+ // no line-wide markdown
+ } else {
+
+ inline_display(window, &line->text->text[offset], colors);
+ }
+ }