File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -122,17 +122,17 @@ export default function(hljs) {
122
122
{
123
123
begin : / \\ [ * _ ` ] /
124
124
} ,
125
- // inline constrained strong
125
+ // inline contrained string (single line)
126
126
{
127
127
className : 'strong' ,
128
- // must not follow a word character or be followed by an asterisk or space
129
- begin : / \B \* ( \w \n ? \w ) + (? ! \n \n ) / ,
130
- end : / \* / ,
131
- // allow escaped asterisk followed by word char
132
- contains : [ {
133
- begin : '\\\\*\\w ' ,
134
- relevance : 0
135
- } ]
128
+ // must not precede or follow a word character
129
+ begin : / \B \* \w + \* \B / ,
130
+ } ,
131
+ // inline constrained strong (multi-line)
132
+ {
133
+ className : 'strong ' ,
134
+ // must not precede or follow a word character
135
+ begin : / \B \* ( \w \n ? ) * \* / ,
136
136
} ,
137
137
// inline unconstrained emphasis
138
138
{
You can’t perform that action at this time.
0 commit comments