Refactor PDF content rendering: improve list indentation logic, add numbered code block rendering with gutter, and update text wrapping alignment.
This commit is contained in:
+2
-2
@@ -119,8 +119,8 @@ func RenderAST(doc ast.Node, content []byte, r *IHKRenderer) error {
|
||||
}
|
||||
// Fall through: render as plain code block on error
|
||||
}
|
||||
// Render non-diagram code blocks as monospace paragraphs
|
||||
r.RenderParagraphSpans([]InlineSpan{{Text: code, Code: true}})
|
||||
// Render as a numbered code block (gutter + monospace body).
|
||||
r.RenderCodeBlock(lang, code)
|
||||
return ast.WalkSkipChildren, nil
|
||||
|
||||
// ── Images ────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user