Skip to content

Commit dbf6d34

Browse files
committed
Improve markdown flush method
1 parent 63205ee commit dbf6d34

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

llamafile/highlight_markdown.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,13 @@ void HighlightMarkdown::flush(std::string *r) {
163163
case LANG:
164164
lang_.clear();
165165
break;
166+
case STAR:
167+
*r += '*';
168+
break;
169+
case STRONG:
170+
case STRONG_STAR:
171+
*r += RESET;
172+
break;
166173
case CODE:
167174
case CODE_TICK:
168175
case CODE_TICK_TICK:

0 commit comments

Comments
 (0)