refactor: releasepr markdown handling (#42)

This commit is contained in:
Julian Tölle 2024-09-01 14:19:13 +02:00 committed by GitHub
parent 0750bd6b46
commit 36a0b90bcd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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}