File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -156,8 +156,8 @@ export default function(hljs) {
156156 end : / \* /
157157 } ,
158158 {
159- begin : / _ (? ! [ _ \s ] ) / ,
160- end : / _ / ,
159+ begin : / (?< ! [ a - z A - Z 0 - 9 ] ) _ (? ! [ _ \s ] ) / ,
160+ end : / _ (? ! [ a - z A - Z 0 - 9 ] ) / ,
161161 relevance : 0
162162 }
163163 ]
Original file line number Diff line number Diff line change @@ -31,3 +31,6 @@ _ not italic_
3131<span class="hljs-quote">> * One (this point is italic)</span>
3232<span class="hljs-quote">> * Two</span>
3333<span class="hljs-quote">> * Three</span>
34+
35+ No italics mid_word underscores.
36+ But italics for <span class="hljs-emphasis">_full_word_</span> with underscores.
Original file line number Diff line number Diff line change @@ -31,3 +31,6 @@ _ not italic_
3131> * One (this point is italic)
3232> * Two
3333> * Three
34+
35+ No italics mid_word underscores.
36+ But italics for _full_word_ with underscores.
You can’t perform that action at this time.
0 commit comments