mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:52:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			307 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			307 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <AK/NonnullOwnPtrVector.h>
 | |
| #include <AK/String.h>
 | |
| #include <LibMarkdown/MDBlock.h>
 | |
| 
 | |
| class MDDocument final {
 | |
| public:
 | |
|     String render_to_html() const;
 | |
|     String render_for_terminal() const;
 | |
| 
 | |
|     bool parse(const StringView&);
 | |
| 
 | |
| private:
 | |
|     NonnullOwnPtrVector<MDBlock> m_blocks;
 | |
| };
 | 
