Skip to content

Commit

Permalink
Fix highlighting issue for punctuation after links
Browse files Browse the repository at this point in the history
  • Loading branch information
pbek committed Dec 11, 2019
1 parent 19bd9aa commit 4316c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markdownhighlighter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ void MarkdownHighlighter::initHighlightingRules() {
HighlightingRule rule(HighlighterState::Link);

// highlight urls without any other markup
rule.pattern = QRegularExpression(QStringLiteral(R"(\b\w+?:\/\/[^\s]+)"));
rule.pattern = QRegularExpression(QStringLiteral(R"(\b\w+?:\/\/[^\s>]+)"));
rule.capturingGroup = 0;
_highlightingRulesAfter.append(rule);

Expand Down

0 comments on commit 4316c28

Please sign in to comment.