SEMANTIC ANALYSIS PHASE RENDERING PHASE Raw Text AST Nodes Scored Chunks DOM Buffer Markdown Input Semantic Labeling Headings: W=3 Quotes: W=2 Paragraphs: W=1 Lists: W=1.5 Greedy Split Decision HTML Template Playwright Capture PNG Output