@@ -39,17 +39,8 @@ const rules = {
3939 const removeSyntaxRegex = isBlock ? / ^ * > > > ? / : / ^ * > ? / gm;
4040 const content = all . replace ( removeSyntaxRegex , '' ) ;
4141
42- state . inQuote = true
43- if ( ! isBlock )
44- state . inline = true ;
45-
46- const parsed = parse ( content , state ) ;
47-
48- state . inQuote = state . inQuote || false ;
49- state . inline = state . inline || false ;
50-
5142 return {
52- content : parsed ,
43+ content : parse ( content , Object . assign ( { } , state , { inQuote : true } ) ) ,
5344 type : 'blockQuote'
5445 }
5546 }
@@ -113,8 +104,11 @@ const rules = {
113104 strike : Object . assign ( { } , markdown . defaultRules . del , {
114105 match : markdown . inlineRegex ( / ^ ~ ~ ( [ \s \S ] + ?) ~ ~ (? ! _ ) / ) ,
115106 } ) ,
116- inlineCode : Object . assign ( { } , markdown . defaultRules . inlineCode {
117- match : source => source = source . trimEnd ( ) , markdown. defaultRules . inlineCode . match . regex . exec ( source )
107+ inlineCode : Object . assign ( { } , markdown . defaultRules . inlineCode , {
108+ match : source => markdown . defaultRules . inlineCode . match . regex . exec ( source ) ,
109+ html : function ( node , output , state ) {
110+ return htmlTag ( 'code' , markdown . sanitizeText ( node . content . trim ( ) ) , null , state ) ;
111+ }
118112 } ) ,
119113 text : Object . assign ( { } , markdown . defaultRules . text , {
120114 match : source => / ^ [ \s \S ] + ?(? = [ ^ 0 - 9 A - Z a - z \s \u00c0 - \uffff - ] | \n \n | \n | \w + : \S | $ ) / . exec ( source ) ,
0 commit comments