8
8
9
9
'use strict' ;
10
10
11
- Object . defineProperty ( exports , '__esModule' , {
12
- value : true
13
- } ) ;
14
-
15
11
var _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' ) ; } } ; } ) ( ) ;
16
12
17
13
var _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 () {
278
274
} , {
279
275
key : 'makeHtml' ,
280
276
value : function makeHtml ( text ) {
277
+ console . log ( this ) ;
281
278
var html = this . parse ( text ) ;
282
279
return this . makeFootnotes ( html ) ;
283
280
}
@@ -331,6 +328,7 @@ var Parser = (function () {
331
328
value : function parse ( text ) {
332
329
var _this = this ;
333
330
331
+ console . log ( this . __proto__ ) ;
334
332
var blocks = this . parseBlock ( text , text . split ( "\n" ) ) ;
335
333
var html = '' ;
336
334
@@ -514,9 +512,9 @@ var Parser = (function () {
514
512
value : function parseBlock ( text ) {
515
513
var lines = text . split ( "\n" ) ;
516
514
this . blocks = [ ] ;
517
- this . current = '' ;
515
+ this . current = 'normal ' ;
518
516
this . pos = - 1 ;
519
- console . log ( this . specialWhiteList ) ;
517
+ console . log ( this ) ;
520
518
var special = Object . keys ( this . specialWhiteList ) . join ( "|" ) ;
521
519
var emptyCount = 0 ;
522
520
@@ -1461,8 +1459,6 @@ var Parser = (function () {
1461
1459
return Parser ;
1462
1460
} ) ( ) ;
1463
1461
1464
- exports [ 'default' ] = Parser ;
1465
-
1466
1462
var 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