5
5
showdown . subParser ( 'blockGamut' , function ( text , options , globals ) {
6
6
'use strict' ;
7
7
8
+ // we parse blockquotes first so that we can have headings and hrs
9
+ // inside blockquotes
10
+ text = showdown . subParser ( 'blockQuotes' ) ( text , options , globals ) ;
8
11
text = showdown . subParser ( 'headers' ) ( text , options , globals ) ;
9
12
10
13
// Do Horizontal Rules:
@@ -13,10 +16,9 @@ showdown.subParser('blockGamut', function (text, options, globals) {
13
16
text = text . replace ( / ^ [ ] { 0 , 2 } ( [ ] ? \- [ ] ? ) { 3 , } [ \t ] * $ / gm, key ) ;
14
17
text = text . replace ( / ^ [ ] { 0 , 2 } ( [ ] ? _ [ ] ? ) { 3 , } [ \t ] * $ / gm, key ) ;
15
18
16
- text = showdown . subParser ( 'tables' ) ( text , options , globals ) ;
17
19
text = showdown . subParser ( 'lists' ) ( text , options , globals ) ;
18
20
text = showdown . subParser ( 'codeBlocks' ) ( text , options , globals ) ;
19
- text = showdown . subParser ( 'blockQuotes ' ) ( text , options , globals ) ;
21
+ text = showdown . subParser ( 'tables ' ) ( text , options , globals ) ;
20
22
21
23
// We already ran _HashHTMLBlocks() before, in Markdown(), but that
22
24
// was to escape raw HTML in the original Markdown source. This time,
0 commit comments