Add support for code appendices: enable code blocks with language labels, line-number gutter, and directive-based integration.

This commit is contained in:
Sebastian Unterschütz
2026-05-14 21:00:58 +02:00
parent 3afdc3bf1e
commit 2d3e544d4f
7 changed files with 76 additions and 21 deletions
+2 -1
View File
@@ -171,8 +171,9 @@ func (r *IHKRenderer) RenderAppendices() {
case AppendixKindImage:
r.renderAppendixImage(app.Path)
case AppendixKindTable:
// Render without numbering/recording; the annex header already identifies the table.
r.renderTableBody(app.TableData, "")
case AppendixKindCode:
r.RenderCodeBlock(app.Lang, app.Code)
}
if app.Landscape {