Merge "Fix highlighting of table headers on single text row"

This commit is contained in:
jenkins-bot 2018-03-13 22:39:01 +00:00 committed by Gerrit Code Review
commit b7a201e2f0

View file

@ -579,7 +579,7 @@
return inTable( stream, state ); return inTable( stream, state );
} }
} else { } else {
if ( stream.match( /[^'|{[<&~]+/ ) ) { if ( stream.match( /[^'|{[<&~!]+/ ) ) {
return makeStyle( ( isHead ? 'strong' : '' ), state ); return makeStyle( ( isHead ? 'strong' : '' ), state );
} }
if ( stream.match( '||' ) || isHead && stream.match( '!!' ) || ( isStart && stream.eat( '|' ) ) ) { if ( stream.match( '||' ) || isHead && stream.match( '!!' ) || ( isStart && stream.eat( '|' ) ) ) {