func (n *Text) SetSoftLineBreak(v bool) {
	if v {
		n.flags |= textSoftLineBreak
	} else {
		n.flags = n.flags &^ textHardLineBreak
	}
}
SetSoftLineBreak sets whether this node ends with a new line.
package ast
import (
	"fmt"
	"strings"
	textm "github.com/yuin/goldmark/text"
	"github.com/yuin/goldmark/util"
)
type BaseInline struct {
	BaseNode
}
func (b *BaseInline) Type() NodeType {
	return TypeInline
}
func (b *BaseInline) IsRaw() bool {
	return false
}
func (b *BaseInline) HasBlankPreviousLines() bool {
	panic("can not call with inline nodes.")
}
func (b *BaseInline) SetBlankPreviousLines(v bool) {
	panic("can not call with inline nodes.")
}
func (b *BaseInline) Lines() *textm.Segments {
	panic("can not call with inline nodes.")
}
func (b *BaseInline) SetLines(v *textm.Segments) {
	panic("can not call with inline nodes.")
}
type Text struct {
	BaseInline
	Segment textm.Segment
	flags uint8
}
const (
	textSoftLineBreak = 1 << iota
	textHardLineBreak
	textRaw
	textCode
)
func textFlagsString(flags uint8) string {
	buf := []string{}
	if flags&textSoftLineBreak != 0 {
		buf = append(buf, "SoftLineBreak")
	}
	if flags&textHardLineBreak != 0 {
		buf = append(buf, "HardLineBreak")
	}
	if flags&textRaw != 0 {
		buf = append(buf, "Raw")
	}
	if flags&textCode != 0 {
		buf = append(buf, "Code")
	}
	return strings.Join(buf, ", ")
}
func (n *Text) Inline() {
}
func (n *Text) SoftLineBreak() bool {
	return n.flags&textSoftLineBreak != 0
}