Skip to content

Commit

Permalink
Update italic highlighting rules to avoid intra word highlights. ajax…
Browse files Browse the repository at this point in the history
  • Loading branch information
RickStrahl committed Aug 15, 2020
1 parent e97afe3 commit 20e6319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ace/mode/markdown_highlight_rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ var MarkdownHighlightRules = function() {
regex : "([*]{2}|[_]{2}(?=\\S))(.*?\\S[*_]*)(\\1)"
}, { // emphasis * _
token : "string.emphasis",
regex : "([*]|[_](?=\\S))(.*?\\S[*_]*)(\\1)"
regex : "(?<=\\s|^)([*_])[^*_]*\\1(?=\\s|$)"
}, { //
token : ["text", "url", "text"],
regex : "(<)("+
Expand Down

0 comments on commit 20e6319

Please sign in to comment.