Use Bold instead of Semibold by entities.
This commit is contained in:
parent
ab5a226056
commit
cc9b7e2c2f
2 changed files with 3 additions and 3 deletions
|
|
@ -541,7 +541,7 @@ bool Parser::checkEntities() {
|
||||||
const auto entityBegin = _start + _waitingEntity->offset();
|
const auto entityBegin = _start + _waitingEntity->offset();
|
||||||
const auto entityEnd = entityBegin + entityLength;
|
const auto entityEnd = entityBegin + entityLength;
|
||||||
if (entityType == EntityType::Bold) {
|
if (entityType == EntityType::Bold) {
|
||||||
flags = TextBlockFSemibold;
|
flags = TextBlockFBold;
|
||||||
} else if (entityType == EntityType::Italic) {
|
} else if (entityType == EntityType::Italic) {
|
||||||
flags = TextBlockFItalic;
|
flags = TextBlockFItalic;
|
||||||
} else if (entityType == EntityType::Underline) {
|
} else if (entityType == EntityType::Underline) {
|
||||||
|
|
@ -3243,7 +3243,7 @@ TextForMimeData String::toText(
|
||||||
auto markdownTrackers = composeEntities
|
auto markdownTrackers = composeEntities
|
||||||
? std::vector<MarkdownTagTracker>{
|
? std::vector<MarkdownTagTracker>{
|
||||||
{ TextBlockFItalic, EntityType::Italic },
|
{ TextBlockFItalic, EntityType::Italic },
|
||||||
{ TextBlockFSemibold, EntityType::Bold },
|
{ TextBlockFBold, EntityType::Bold },
|
||||||
{ TextBlockFUnderline, EntityType::Underline },
|
{ TextBlockFUnderline, EntityType::Underline },
|
||||||
{ TextBlockFStrikeOut, EntityType::StrikeOut },
|
{ TextBlockFStrikeOut, EntityType::StrikeOut },
|
||||||
{ TextBlockFCode, EntityType::Code }, // #TODO entities
|
{ TextBlockFCode, EntityType::Code }, // #TODO entities
|
||||||
|
|
|
||||||
|
|
@ -664,7 +664,7 @@ QTextCharFormat PrepareTagFormat(
|
||||||
result.setFont(st.font);
|
result.setFont(st.font);
|
||||||
} else if (tag == kTagBold) {
|
} else if (tag == kTagBold) {
|
||||||
result.setForeground(st.textFg);
|
result.setForeground(st.textFg);
|
||||||
result.setFont(st.font->semibold());
|
result.setFont(st.font->bold());
|
||||||
} else if (tag == kTagItalic) {
|
} else if (tag == kTagItalic) {
|
||||||
result.setForeground(st.textFg);
|
result.setForeground(st.textFg);
|
||||||
result.setFont(st.font->italic());
|
result.setFont(st.font->italic());
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue