reset markup on newline

This commit is contained in:
MihailRis 2024-12-06 18:51:13 +03:00
parent b4a387601f
commit 2f292537ad

View File

@ -94,6 +94,9 @@ Result<CharT> process_markdown(
restyle(first, style, styles, ss, pos, eraseMarkdown);
continue;
}
if (first == '\n') {
styles.palette.push_back(styles.palette.at(1));
}
emit(first, styles, ss);
pos++;
}