refactor: releasepr markdown handling

This commit is contained in:
Julian Tölle 2024-08-31 23:41:09 +02:00
parent 0750bd6b46
commit 94caead6aa
6 changed files with 466 additions and 83 deletions

View file

@ -7,7 +7,8 @@ import (
// A Section struct represents a section of elements.
type Section struct {
gast.BaseBlock
Name string
Name string
Hidden bool
}
// Dump implements Node.Dump.
@ -26,6 +27,10 @@ func (n *Section) Kind() gast.NodeKind {
return KindSection
}
func (n *Section) HideInOutput() {
n.Hidden = true
}
// NewSection returns a new Section node.
func NewSection(name string) *Section {
return &Section{Name: name}