@@ -20,6 +20,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd
20
20
21
21
function _classCallCheck ( instance , Constructor ) { if ( ! ( instance instanceof Constructor ) ) { throw new TypeError ( 'Cannot call a class as a function' ) ; } }
22
22
23
+ require ( 'babel-core/polyfill' ) ;
24
+
23
25
var _md5 = require ( 'md5' ) ;
24
26
25
27
var _md52 = _interopRequireDefault ( _md5 ) ;
@@ -610,6 +612,12 @@ var Parser = (function () {
610
612
} else {
611
613
this . startBlock ( 'normal' , key ) ;
612
614
}
615
+ } else if ( this . isBlock ( 'quote' ) ) {
616
+ if ( / ^ \s * $ / . test ( line ) ) {
617
+ this . startBlock ( 'normal' , key ) ;
618
+ } else {
619
+ this . setBlock ( key ) ;
620
+ }
613
621
} else {
614
622
var block = this . getBlock ( ) ;
615
623
if ( block === null || block . length === 0 || block [ 0 ] !== 'normal' ) {
@@ -769,6 +777,7 @@ var Parser = (function () {
769
777
} , {
770
778
key : 'parseQuote' ,
771
779
value : function parseQuote ( lines ) {
780
+ console . log ( lines ) ;
772
781
lines . forEach ( function ( line , key ) {
773
782
lines [ key ] = line . replace ( / ^ \s * > ? / , '' ) ;
774
783
} ) ;
@@ -1239,4 +1248,7 @@ var Parser = (function () {
1239
1248
} ) ( ) ;
1240
1249
1241
1250
exports [ 'default' ] = Parser ;
1251
+
1252
+ var parser = new Parser ( ) ;
1253
+ console . log ( parser . makeHtml ( '>1234\n1234' ) ) ;
1242
1254
module . exports = exports [ 'default' ] ;
0 commit comments