88
99'use strict' ;
1010
11- Object . defineProperty ( exports , '__esModule' , {
12- value : true
13- } ) ;
14-
1511var _slicedToArray = ( function ( ) { function sliceIterator ( arr , i ) { var _arr = [ ] ; var _n = true ; var _d = false ; var _e = undefined ; try { for ( var _i = arr [ Symbol . iterator ] ( ) , _s ; ! ( _n = ( _s = _i . next ( ) ) . done ) ; _n = true ) { _arr . push ( _s . value ) ; if ( i && _arr . length === i ) break ; } } catch ( err ) { _d = true ; _e = err ; } finally { try { if ( ! _n && _i [ 'return' ] ) _i [ 'return' ] ( ) ; } finally { if ( _d ) throw _e ; } } return _arr ; } return function ( arr , i ) { if ( Array . isArray ( arr ) ) { return arr ; } else if ( Symbol . iterator in Object ( arr ) ) { return sliceIterator ( arr , i ) ; } else { throw new TypeError ( 'Invalid attempt to destructure non-iterable instance' ) ; } } ; } ) ( ) ;
1612
1713var _createClass = ( function ( ) { function defineProperties ( target , props ) { for ( var i = 0 ; i < props . length ; i ++ ) { var descriptor = props [ i ] ; descriptor . enumerable = descriptor . enumerable || false ; descriptor . configurable = true ; if ( 'value' in descriptor ) descriptor . writable = true ; Object . defineProperty ( target , descriptor . key , descriptor ) ; } } return function ( Constructor , protoProps , staticProps ) { if ( protoProps ) defineProperties ( Constructor . prototype , protoProps ) ; if ( staticProps ) defineProperties ( Constructor , staticProps ) ; return Constructor ; } ; } ) ( ) ;
@@ -278,6 +274,7 @@ var Parser = (function () {
278274 } , {
279275 key : 'makeHtml' ,
280276 value : function makeHtml ( text ) {
277+ console . log ( this ) ;
281278 var html = this . parse ( text ) ;
282279 return this . makeFootnotes ( html ) ;
283280 }
@@ -331,6 +328,7 @@ var Parser = (function () {
331328 value : function parse ( text ) {
332329 var _this = this ;
333330
331+ console . log ( this . __proto__ ) ;
334332 var blocks = this . parseBlock ( text , text . split ( "\n" ) ) ;
335333 var html = '' ;
336334
@@ -514,9 +512,9 @@ var Parser = (function () {
514512 value : function parseBlock ( text ) {
515513 var lines = text . split ( "\n" ) ;
516514 this . blocks = [ ] ;
517- this . current = '' ;
515+ this . current = 'normal ' ;
518516 this . pos = - 1 ;
519- console . log ( this . specialWhiteList ) ;
517+ console . log ( this ) ;
520518 var special = Object . keys ( this . specialWhiteList ) . join ( "|" ) ;
521519 var emptyCount = 0 ;
522520
@@ -1461,8 +1459,6 @@ var Parser = (function () {
14611459 return Parser ;
14621460} ) ( ) ;
14631461
1464- exports [ 'default' ] = Parser ;
1465-
14661462var parser = new Parser ( ) ;
1467- console . log ( parser . makeHtml ( '##sdfsfd##' ) ) ;
1468- module . exports = exports [ 'default' ] ;
1463+ console . log ( parser ) ;
1464+ console . log ( parser . makeHtml ( '##sdfsfd##' ) ) ;
0 commit comments