Skip to content

Commit

Permalink
Improve markdown flush method
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Oct 9, 2024
1 parent 63205ee commit dbf6d34
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions llamafile/highlight_markdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,13 @@ void HighlightMarkdown::flush(std::string *r) {
case LANG:
lang_.clear();
break;
case STAR:
*r += '*';
break;
case STRONG:
case STRONG_STAR:
*r += RESET;
break;
case CODE:
case CODE_TICK:
case CODE_TICK_TICK:
Expand Down

0 comments on commit dbf6d34

Please sign in to comment.