mirror of
				https://github.com/flynx/pWiki.git
				synced 2025-11-04 04:50:09 +00:00 
			
		
		
		
	notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									aa6b5bd1b7
								
							
						
					
					
						commit
						91365e442b
					
				@ -436,7 +436,10 @@ module.BaseParser = {
 | 
				
			|||||||
	// XXX macros: we are mixing up ast state and parse state...
 | 
						// XXX macros: we are mixing up ast state and parse state...
 | 
				
			||||||
	// 		one should only be used for parsing and be forgotten after 
 | 
						// 		one should only be used for parsing and be forgotten after 
 | 
				
			||||||
	// 		the ast is constructed the other should be part of the ast...
 | 
						// 		the ast is constructed the other should be part of the ast...
 | 
				
			||||||
	// XXX ASYNC this does not yet work as a replacement for .expand(..), not sure why...
 | 
						// XXX ASYNC this does not yet work as a replacement for .expand(..), 
 | 
				
			||||||
 | 
						// 		not sure why...
 | 
				
			||||||
 | 
						// 		...either we are mis-syncing somewhere or there is some broken
 | 
				
			||||||
 | 
						// 		data flow -- need to check the whole call stack to make sure...
 | 
				
			||||||
	_expand: function(page, ast, state={}){
 | 
						_expand: function(page, ast, state={}){
 | 
				
			||||||
		var that = this
 | 
							var that = this
 | 
				
			||||||
		ast = ast == null ?
 | 
							ast = ast == null ?
 | 
				
			||||||
@ -456,7 +459,7 @@ module.BaseParser = {
 | 
				
			|||||||
		// 		state per macro call that is both containing all the state 
 | 
							// 		state per macro call that is both containing all the state 
 | 
				
			||||||
		// 		from previous macros, and is not affected by the changes 
 | 
							// 		from previous macros, and is not affected by the changes 
 | 
				
			||||||
		// 		done by next macros (unless needed)...
 | 
							// 		done by next macros (unless needed)...
 | 
				
			||||||
		return Promise.iter(ast, 
 | 
							return Promise.seqiter(ast, 
 | 
				
			||||||
			function(value){
 | 
								function(value){
 | 
				
			||||||
				// text block...
 | 
									// text block...
 | 
				
			||||||
				if(typeof(value) == 'string'){
 | 
									if(typeof(value) == 'string'){
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user