File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -450,6 +450,7 @@ var inline = {
450
450
escape : / ^ \\ ( [ \\ ` * { } \[ \] ( ) # + \- . ! _ > ] ) / ,
451
451
autolink : / ^ < ( [ ^ > ] + ( @ | : \/ ) [ ^ > ] + ) > / ,
452
452
url : noop ,
453
+ sup : / ^ < s u p > ( [ \s \S ] + ?) < \/ s u p > / ,
453
454
tag : / ^ < ! - - [ \s \S ] * ?- - > | ^ < \/ ? \w + (?: " [ ^ " ] * " | ' [ ^ ' ] * ' | [ ^ ' " > ] ) * ?> / ,
454
455
link : / ^ ! ? \[ ( i n s i d e ) \] \( h r e f \) / ,
455
456
reflink : / ^ ! ? \[ ( i n s i d e ) \] \s * \[ ( [ ^ \] ] * ) \] / ,
@@ -596,6 +597,13 @@ InlineLexer.prototype.output = function(src) {
596
597
continue ;
597
598
}
598
599
600
+ // sup
601
+ if ( cap = this . rules . sup . exec ( src ) ) {
602
+ src = src . substring ( cap [ 0 ] . length ) ;
603
+ out . push ( React . DOM . sup ( null , this . output ( cap [ 2 ] || cap [ 1 ] ) ) ) ;
604
+ continue ;
605
+ }
606
+
599
607
// tag
600
608
if ( cap = this . rules . tag . exec ( src ) ) {
601
609
src = src . substring ( cap [ 0 ] . length ) ;
You can’t perform that action at this time.
0 commit comments