block: add parse_table_empty
This commit is contained in:
		
					parent
					
						
							
								ee9ea2e023
							
						
					
				
			
			
				commit
				
					
						d9804d963c
					
				
			
		
					 1 changed files with 14 additions and 0 deletions
				
			
		
							
								
								
									
										14
									
								
								src/block.rs
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								src/block.rs
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -2248,6 +2248,20 @@ mod test {
 | 
			
		|||
        );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #[test]
 | 
			
		||||
    fn parse_table_empty() {
 | 
			
		||||
        test_parse!(
 | 
			
		||||
            "||",
 | 
			
		||||
            (Enter(Container(Table)), ""),
 | 
			
		||||
            (Enter(Container(TableRow { head: false })), "|"),
 | 
			
		||||
            (Enter(Leaf(TableCell(Alignment::Unspecified))), "|"),
 | 
			
		||||
            (Inline, ""),
 | 
			
		||||
            (Exit(Leaf(TableCell(Alignment::Unspecified))), "|"),
 | 
			
		||||
            (Exit(Container(TableRow { head: false })), "|"),
 | 
			
		||||
            (Exit(Container(Table)), ""),
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #[test]
 | 
			
		||||
    fn parse_table_escaped() {
 | 
			
		||||
        test_parse!(
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue