Excluded EntityType::Pre from clickable types.
This commit is contained in:
parent
79d2052a83
commit
45893ec223
1 changed files with 2 additions and 1 deletions
|
|
@ -491,7 +491,8 @@ bool Parser::checkEntities() {
|
|||
const auto isSingleLine = !trimmed.isEmpty()
|
||||
&& ranges::none_of(trimmed, IsNewline);
|
||||
|
||||
if (isSingleLine) {
|
||||
// TODO: remove trimming.
|
||||
if (isSingleLine && (entityType == EntityType::Code)) {
|
||||
_monos.push_back({ .text = text, .type = entityType });
|
||||
monoIndex = _monos.size();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue