Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit b5da225

Browse files
committed
claat/render: correct header level in markdown rendering
1 parent b2f019a commit b5da225

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

claat/render/md.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func (mw *mdWriter) itemsList(n *types.ItemsListNode) {
225225

226226
func (mw *mdWriter) header(n *types.HeaderNode) {
227227
mw.newBlock()
228-
mw.writeString(strings.Repeat("#", n.Level))
228+
mw.writeString(strings.Repeat("#", n.Level+1))
229229
mw.writeString(" ")
230230
mw.write(n.Content.Nodes...)
231231
if !mw.lineStart {

0 commit comments

Comments
 (0)