@@ -20,6 +20,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd
2020
2121function _classCallCheck ( instance , Constructor ) { if ( ! ( instance instanceof Constructor ) ) { throw new TypeError ( 'Cannot call a class as a function' ) ; } }
2222
23+ require ( 'babel-core/polyfill' ) ;
24+
2325var _md5 = require ( 'md5' ) ;
2426
2527var _md52 = _interopRequireDefault ( _md5 ) ;
@@ -610,6 +612,12 @@ var Parser = (function () {
610612 } else {
611613 this . startBlock ( 'normal' , key ) ;
612614 }
615+ } else if ( this . isBlock ( 'quote' ) ) {
616+ if ( / ^ \s * $ / . test ( line ) ) {
617+ this . startBlock ( 'normal' , key ) ;
618+ } else {
619+ this . setBlock ( key ) ;
620+ }
613621 } else {
614622 var block = this . getBlock ( ) ;
615623 if ( block === null || block . length === 0 || block [ 0 ] !== 'normal' ) {
@@ -769,6 +777,7 @@ var Parser = (function () {
769777 } , {
770778 key : 'parseQuote' ,
771779 value : function parseQuote ( lines ) {
780+ console . log ( lines ) ;
772781 lines . forEach ( function ( line , key ) {
773782 lines [ key ] = line . replace ( / ^ \s * > ? / , '' ) ;
774783 } ) ;
@@ -1239,4 +1248,7 @@ var Parser = (function () {
12391248} ) ( ) ;
12401249
12411250exports [ 'default' ] = Parser ;
1251+
1252+ var parser = new Parser ( ) ;
1253+ console . log ( parser . makeHtml ( '>1234\n1234' ) ) ;
12421254module . exports = exports [ 'default' ] ;
0 commit comments