asciidoc

package
v1.6.69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package asciidoc provides an object model for Asciidoc files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttributeAsciiDocString

func AttributeAsciiDocString(val Elements) string

func Describe

func Describe(el Element) string

func DescribeSet

func DescribeSet(el Elements) string

func StringValue

func StringValue(el Element) string

func ValueToString

func ValueToString(e any) string

Types

type Admonition

type Admonition struct {
	AdmonitionType AdmonitionType
	AttributeList
}

func NewAdmonition

func NewAdmonition(admonition AdmonitionType) *Admonition

func (*Admonition) Clone added in v1.6.0

func (a *Admonition) Clone() Element

func (*Admonition) Equals

func (a *Admonition) Equals(e Element) bool

func (Admonition) Type

func (Admonition) Type() ElementType

type AdmonitionType

type AdmonitionType uint8
const (
	AdmonitionTypeNone AdmonitionType = iota
	AdmonitionTypeNote
	AdmonitionTypeTip
	AdmonitionTypeImportant
	AdmonitionTypeCaution
	AdmonitionTypeWarning
)

func (AdmonitionType) Clone added in v1.6.0

func (at AdmonitionType) Clone() Element

func (AdmonitionType) Equals

func (at AdmonitionType) Equals(e Element) bool

func (AdmonitionType) Type

func (AdmonitionType) Type() ElementType

type AlchemyEscape

type AlchemyEscape struct {
	Elements
	LineList
	// contains filtered or unexported fields
}

func NewAlchemyEscape

func NewAlchemyEscape() *AlchemyEscape

func (*AlchemyEscape) Clone added in v1.6.0

func (ae *AlchemyEscape) Clone() Element

func (AlchemyEscape) Document added in v1.6.0

func (p AlchemyEscape) Document() *Document

func (*AlchemyEscape) Equals

func (ae *AlchemyEscape) Equals(e Element) bool

func (AlchemyEscape) Origin

func (p AlchemyEscape) Origin() (path string, line int)

func (AlchemyEscape) Position

func (p AlchemyEscape) Position() (line int, column int, offset int)

func (AlchemyEscape) Raw

func (r AlchemyEscape) Raw() string

func (*AlchemyEscape) SetDocument added in v1.6.0

func (p *AlchemyEscape) SetDocument(document *Document)

func (*AlchemyEscape) SetPosition

func (p *AlchemyEscape) SetPosition(line int, column int, offset int)

func (*AlchemyEscape) SetRaw

func (r *AlchemyEscape) SetRaw(s string)

func (AlchemyEscape) Type

func (AlchemyEscape) Type() ElementType

type Anchor

type Anchor struct {
	ID Elements
	Elements
	// contains filtered or unexported fields
}

func NewAnchor

func NewAnchor(id Elements, label Elements) *Anchor

func (Anchor) AttributeType

func (Anchor) AttributeType() AttributeType

func (*Anchor) Clone added in v1.6.0

func (a *Anchor) Clone() Element

func (Anchor) Document added in v1.6.0

func (p Anchor) Document() *Document

func (*Anchor) Equals

func (a *Anchor) Equals(o Element) bool

func (Anchor) Origin

func (p Anchor) Origin() (path string, line int)

func (Anchor) Position

func (p Anchor) Position() (line int, column int, offset int)

func (Anchor) QuoteType

func (Anchor) QuoteType() AttributeQuoteType

func (*Anchor) SetDocument added in v1.6.0

func (p *Anchor) SetDocument(document *Document)

func (*Anchor) SetPosition

func (p *Anchor) SetPosition(line int, column int, offset int)

func (*Anchor) Traverse added in v1.6.0

func (aa *Anchor) Traverse(parent Parent) iter.Seq2[Parent, Parent]

func (Anchor) Type

func (Anchor) Type() ElementType

type AnchorAttribute

type AnchorAttribute struct {
	ID    Elements `json:"id"`
	Label Elements
	// contains filtered or unexported fields
}

func NewAnchorAttribute

func NewAnchorAttribute(id Elements, label Elements) *AnchorAttribute

func (*AnchorAttribute) AsciiDocString

func (aa *AnchorAttribute) AsciiDocString() string

func (AnchorAttribute) AttributeType

func (AnchorAttribute) AttributeType() AttributeType

func (*AnchorAttribute) Clone added in v1.6.0

func (aa *AnchorAttribute) Clone() Attribute

func (*AnchorAttribute) Equals

func (aa *AnchorAttribute) Equals(o Attribute) bool

func (AnchorAttribute) Parent added in v1.6.0

func (c AnchorAttribute) Parent() Element

func (AnchorAttribute) QuoteType

func (AnchorAttribute) QuoteType() AttributeQuoteType

func (*AnchorAttribute) SetParent added in v1.6.0

func (c *AnchorAttribute) SetParent(e Element)

func (*AnchorAttribute) SetValue

func (aa *AnchorAttribute) SetValue(v any) error

func (*AnchorAttribute) Traverse added in v1.5.41

func (aa *AnchorAttribute) Traverse(parent Parent) iter.Seq2[Parent, Parent]

func (AnchorAttribute) Type

func (ae AnchorAttribute) Type() ElementType

func (*AnchorAttribute) Value

func (aa *AnchorAttribute) Value() any

type Attributable

type Attributable interface {
	Attributes() []Attribute
	GetAttributeByName(name AttributeName) *NamedAttribute
	SetAttribute(name AttributeName, value Elements)
	SetAttributes(as ...Attribute)
	DeleteAttribute(name AttributeName)
	AppendAttribute(as ...Attribute)
	ReadAttributes(el Element, as ...Attribute) error
}

type AttributableElement

type AttributableElement interface {
	Element
	Attributable
}

type Attribute

type Attribute interface {
	HasPosition
	Value() any
	SetValue(any) error
	AsciiDocString() string
	Equals(o Attribute) bool
	AttributeType() AttributeType
	QuoteType() AttributeQuoteType
	Clone() Attribute
}

func NewNamedAttribute

func NewNamedAttribute(name string, value Elements, quoteType AttributeQuoteType) Attribute

func NewPositionalAttribute

func NewPositionalAttribute(value Elements) Attribute

func NewTitleAttribute

func NewTitleAttribute(value Elements) Attribute

type AttributeEntry

type AttributeEntry struct {
	Name AttributeName
	Elements
	// contains filtered or unexported fields
}

func NewAttributeEntry

func NewAttributeEntry(name string) *AttributeEntry

func (*AttributeEntry) Clone added in v1.6.0

func (uar *AttributeEntry) Clone() Element

func (AttributeEntry) Document added in v1.6.0

func (p AttributeEntry) Document() *Document

func (*AttributeEntry) Equals

func (uar *AttributeEntry) Equals(e Element) bool

func (AttributeEntry) Origin

func (p AttributeEntry) Origin() (path string, line int)

func (AttributeEntry) Position

func (p AttributeEntry) Position() (line int, column int, offset int)

func (AttributeEntry) Raw

func (r AttributeEntry) Raw() string

func (*AttributeEntry) SetDocument added in v1.6.0

func (p *AttributeEntry) SetDocument(document *Document)

func (*AttributeEntry) SetPosition

func (p *AttributeEntry) SetPosition(line int, column int, offset int)

func (*AttributeEntry) SetRaw

func (r *AttributeEntry) SetRaw(s string)

func (AttributeEntry) Type

func (AttributeEntry) Type() ElementType

type AttributeList

type AttributeList []Attribute

func (*AttributeList) AppendAttribute

func (a *AttributeList) AppendAttribute(as ...Attribute)

func (AttributeList) Attributes

func (a AttributeList) Attributes() []Attribute

func (AttributeList) Clone added in v1.6.0

func (a AttributeList) Clone() (oa AttributeList)

func (*AttributeList) DeleteAttribute

func (al *AttributeList) DeleteAttribute(name AttributeName)

func (AttributeList) Equals

func (al AttributeList) Equals(oal AttributeList) bool

func (*AttributeList) GetAttributeByName

func (a *AttributeList) GetAttributeByName(name AttributeName) *NamedAttribute

func (*AttributeList) ReadAttributes

func (al *AttributeList) ReadAttributes(el Element, attributes ...Attribute) (err error)

func (AttributeList) SetAttribute

func (al AttributeList) SetAttribute(name AttributeName, value Elements)

func (*AttributeList) SetAttributes

func (a *AttributeList) SetAttributes(as ...Attribute)

type AttributeName

type AttributeName string
const (
	AttributeNameNone          AttributeName = ""
	AttributeNameID            AttributeName = "id"
	AttributeNameColumns       AttributeName = "cols"
	AttributeNameStyle         AttributeName = "style"
	AttributeNameTitle         AttributeName = "title"
	AttributeNameReferenceText AttributeName = "reftext"
	AttributeNameAlternateText AttributeName = "alt"
	AttributeNameHeight        AttributeName = "height"
	AttributeNameWidth         AttributeName = "width"
	AttributeNamePDFWidth      AttributeName = "pdfwidth"
	AttributeNameAlign         AttributeName = "align"
	AttributeNameFloat         AttributeName = "float"
)

type AttributeNames

type AttributeNames []AttributeName

func (AttributeNames) Clone added in v1.6.0

func (an AttributeNames) Clone() []AttributeName

func (AttributeNames) Equals

func (an AttributeNames) Equals(oan AttributeNames) bool

func (AttributeNames) Join

func (an AttributeNames) Join() string

type AttributeQuoteType

type AttributeQuoteType uint8
const (
	AttributeQuoteTypeNone AttributeQuoteType = iota
	AttributeQuoteTypeSingle
	AttributeQuoteTypeDouble
)

type AttributeReference

type AttributeReference interface {
	HasPosition
	Element
	Name() string
}

func NewAttributeReference

func NewAttributeReference(name string) AttributeReference

type AttributeReset

type AttributeReset struct {
	Name AttributeName
	// contains filtered or unexported fields
}

func NewAttributeReset

func NewAttributeReset(name string) *AttributeReset

func (*AttributeReset) Clone added in v1.6.0

func (uar *AttributeReset) Clone() Element

func (AttributeReset) Document added in v1.6.0

func (p AttributeReset) Document() *Document

func (*AttributeReset) Equals

func (uar *AttributeReset) Equals(e Element) bool

func (AttributeReset) Origin

func (p AttributeReset) Origin() (path string, line int)

func (AttributeReset) Position

func (p AttributeReset) Position() (line int, column int, offset int)

func (AttributeReset) Raw

func (r AttributeReset) Raw() string

func (*AttributeReset) SetDocument added in v1.6.0

func (p *AttributeReset) SetDocument(document *Document)

func (*AttributeReset) SetPosition

func (p *AttributeReset) SetPosition(line int, column int, offset int)

func (*AttributeReset) SetRaw

func (r *AttributeReset) SetRaw(s string)

func (AttributeReset) Type

func (AttributeReset) Type() ElementType

type AttributeType

type AttributeType uint8
const (
	AttributeTypeNone AttributeType = iota
	AttributeTypeID
	AttributeTypeStyle
	AttributeTypeRole
	AttributeTypeTitle
	AttributeTypeAlternateText
	AttributeTypeColumns
)

type BlockAttributes

type BlockAttributes struct {
	AttributeList
}

func NewBlockAttributes

func NewBlockAttributes(a AttributeList) *BlockAttributes

func (*BlockAttributes) Clone added in v1.6.0

func (ba *BlockAttributes) Clone() Element

func (*BlockAttributes) Equals

func (ba *BlockAttributes) Equals(e Element) bool

func (BlockAttributes) Type

type BlockElement

type BlockElement interface {
	Element
	Attributable
	ParentElement
}

type BlockImage

type BlockImage struct {
	AttributeList

	ImagePath Elements
	// contains filtered or unexported fields
}

func NewBlockImage

func NewBlockImage(path Elements) *BlockImage

func (*BlockImage) Clone added in v1.6.0

func (bi *BlockImage) Clone() Element

func (BlockImage) Document added in v1.6.0

func (p BlockImage) Document() *Document

func (*BlockImage) Equals

func (bi *BlockImage) Equals(o Element) bool

func (BlockImage) Origin

func (p BlockImage) Origin() (path string, line int)

func (BlockImage) Position

func (p BlockImage) Position() (line int, column int, offset int)

func (BlockImage) Raw

func (r BlockImage) Raw() string

func (*BlockImage) SetDocument added in v1.6.0

func (p *BlockImage) SetDocument(document *Document)

func (*BlockImage) SetPosition

func (p *BlockImage) SetPosition(line int, column int, offset int)

func (*BlockImage) SetRaw

func (r *BlockImage) SetRaw(s string)

func (BlockImage) Type

func (BlockImage) Type() ElementType

type Bold

type Bold struct {
	AttributeList
	Elements
	// contains filtered or unexported fields
}

func NewBold

func NewBold() *Bold

func (*Bold) Clone added in v1.6.0

func (b *Bold) Clone() Element

func (Bold) Document added in v1.6.0

func (p Bold) Document() *Document

func (*Bold) Equals

func (b *Bold) Equals(e Element) bool

func (Bold) Origin

func (p Bold) Origin() (path string, line int)

func (Bold) Position

func (p Bold) Position() (line int, column int, offset int)

func (Bold) Raw

func (r Bold) Raw() string

func (*Bold) SetDocument added in v1.6.0

func (p *Bold) SetDocument(document *Document)

func (*Bold) SetPosition

func (p *Bold) SetPosition(line int, column int, offset int)

func (*Bold) SetRaw

func (r *Bold) SetRaw(s string)

func (Bold) TextFormat

func (Bold) TextFormat() TextFormat

func (*Bold) Traverse added in v1.5.41

func (b *Bold) Traverse(parent ParentElement) iter.Seq2[ParentElement, Parent]

func (Bold) Type

func (Bold) Type() ElementType

type CharacterReplacementReference

type CharacterReplacementReference UserAttributeReference

func (CharacterReplacementReference) Clone added in v1.6.0

func (*CharacterReplacementReference) Equals

func (*CharacterReplacementReference) Name

func (CharacterReplacementReference) ReplacementValue

func (crr CharacterReplacementReference) ReplacementValue() string

func (CharacterReplacementReference) Type

type Checklist

type Checklist int
const (
	ChecklistUnknown Checklist = iota
	ChecklistUnchecked
	ChecklistChecked
)

type ChildElement added in v1.6.0

type ChildElement interface {
	Element
	HasParent
}

type ConditionalContext

type ConditionalContext interface {
	IsSet(name string) bool
	Get(name string) any
	Set(name string, value any)
	Unset(name string)
}

type ConditionalOperator

type ConditionalOperator uint8
const (
	ConditionalOperatorNone ConditionalOperator = iota
	ConditionalOperatorEqual
	ConditionalOperatorNotEqual
	ConditionalOperatorLessThan
	ConditionalOperatorLessThanOrEqual
	ConditionalOperatorGreaterThan
	ConditionalOperatorGreaterThanOrEqual
)

func (ConditionalOperator) String

func (co ConditionalOperator) String() string

type ConditionalUnion

type ConditionalUnion uint8
const (
	ConditionalUnionAny ConditionalUnion = iota
	ConditionalUnionAll
)

type Counter

type Counter struct {
	Name         string
	InitialValue string
	Display      bool
	// contains filtered or unexported fields
}

func NewCounter

func NewCounter(name string, initialValue any, display bool) *Counter

func (*Counter) Clone added in v1.6.0

func (c *Counter) Clone() Element

func (Counter) Document added in v1.6.0

func (p Counter) Document() *Document

func (*Counter) Equals

func (c *Counter) Equals(o Element) bool

func (Counter) Origin

func (p Counter) Origin() (path string, line int)

func (Counter) Position

func (p Counter) Position() (line int, column int, offset int)

func (Counter) Raw

func (r Counter) Raw() string

func (*Counter) SetDocument added in v1.6.0

func (p *Counter) SetDocument(document *Document)

func (*Counter) SetPosition

func (p *Counter) SetPosition(line int, column int, offset int)

func (*Counter) SetRaw

func (r *Counter) SetRaw(s string)

func (Counter) Type

func (Counter) Type() ElementType

type CounterState

type CounterState struct {
	CounterType CounterType
	Value       int
}

type CounterType

type CounterType uint8
const (
	CounterTypeInteger CounterType = iota
	CounterTypeUpperCase
	CounterTypeLowerCase
)

type CrossReference

type CrossReference struct {
	AttributeList
	Elements

	ID     Elements
	Format CrossReferenceFormat
	// contains filtered or unexported fields
}

func NewCrossReference

func NewCrossReference(id Elements, format CrossReferenceFormat) *CrossReference

func (*CrossReference) Clone added in v1.6.0

func (cr *CrossReference) Clone() Element

func (CrossReference) Document added in v1.6.0

func (p CrossReference) Document() *Document

func (*CrossReference) Equals

func (cr *CrossReference) Equals(o Element) bool

func (CrossReference) Origin

func (p CrossReference) Origin() (path string, line int)

func (CrossReference) Position

func (p CrossReference) Position() (line int, column int, offset int)

func (CrossReference) Raw

func (r CrossReference) Raw() string

func (*CrossReference) SetDocument added in v1.6.0

func (p *CrossReference) SetDocument(document *Document)

func (*CrossReference) SetPosition

func (p *CrossReference) SetPosition(line int, column int, offset int)

func (*CrossReference) SetRaw

func (r *CrossReference) SetRaw(s string)

func (*CrossReference) Traverse added in v1.5.41

func (cr *CrossReference) Traverse(parent ParentElement) iter.Seq2[ParentElement, Parent]

func (CrossReference) Type

func (CrossReference) Type() ElementType

type CrossReferenceFormat

type CrossReferenceFormat uint8
const (
	CrossReferenceFormatNatural CrossReferenceFormat = iota
	CrossReferenceFormatMacro
)

type DelimitedBlockType

type DelimitedBlockType uint8
const (
	DelimitedBlockTypeNone DelimitedBlockType = iota
	DelimitedBlockTypeComment
	DelimitedBlockTypeMultiLineComment
	DelimitedBlockTypeExample
	DelimitedBlockTypeFenced
	DelimitedBlockTypeListing
	DelimitedBlockTypeLiteral
	DelimitedBlockTypeOpen
	DelimitedBlockTypeSidebar
	DelimitedBlockTypeStem
	DelimitedBlockTypeTable
	DelimitedBlockTypeQuote
)

type Delimiter

type Delimiter struct {
	Type   DelimitedBlockType
	Length int
	// contains filtered or unexported fields
}

func (Delimiter) Document added in v1.6.0

func (p Delimiter) Document() *Document

func (Delimiter) Equals

func (d Delimiter) Equals(od Delimiter) bool

func (Delimiter) Origin

func (p Delimiter) Origin() (path string, line int)

func (Delimiter) Position

func (p Delimiter) Position() (line int, column int, offset int)

func (Delimiter) Raw

func (r Delimiter) Raw() string

func (*Delimiter) SetDocument added in v1.6.0

func (p *Delimiter) SetDocument(document *Document)

func (*Delimiter) SetPosition

func (p *Delimiter) SetPosition(line int, column int, offset int)

func (*Delimiter) SetRaw

func (r *Delimiter) SetRaw(s string)

type DescriptionListItem

type DescriptionListItem struct {
	Elements
	AttributeList

	Marker string
	Term   Elements
	// contains filtered or unexported fields
}

func NewDescriptionListItem

func NewDescriptionListItem(marker string, term Elements) *DescriptionListItem

func (*DescriptionListItem) Clone added in v1.6.0

func (dli *DescriptionListItem) Clone() Element

func (DescriptionListItem) Document added in v1.6.0

func (p DescriptionListItem) Document() *Document

func (*DescriptionListItem) Equals

func (dli *DescriptionListItem) Equals(o Element) bool

func (DescriptionListItem) Origin

func (p DescriptionListItem) Origin() (path string, line int)

func (DescriptionListItem) Position

func (p DescriptionListItem) Position() (line int, column int, offset int)

func (DescriptionListItem) Raw

func (r DescriptionListItem) Raw() string

func (*DescriptionListItem) SetDocument added in v1.6.0

func (p *DescriptionListItem) SetDocument(document *Document)

func (*DescriptionListItem) SetPosition

func (p *DescriptionListItem) SetPosition(line int, column int, offset int)

func (*DescriptionListItem) SetRaw

func (r *DescriptionListItem) SetRaw(s string)

func (DescriptionListItem) Type

type Document

type Document struct {
	Path Path
	Elements
}

func (*Document) Clone added in v1.6.0

func (doc *Document) Clone() Element

func (*Document) Document added in v1.6.0

func (doc *Document) Document() *Document

func (*Document) Equals

func (doc *Document) Equals(o Element) bool

func (Document) Type

func (Document) Type() ElementType

type DocumentCrossReference

type DocumentCrossReference struct {
	AttributeList

	ReferencePath Elements
	// contains filtered or unexported fields
}

func NewDocumentCrossReference

func NewDocumentCrossReference(path Elements) *DocumentCrossReference

func (*DocumentCrossReference) Clone added in v1.6.0

func (dcr *DocumentCrossReference) Clone() Element

func (DocumentCrossReference) Document added in v1.6.0

func (p DocumentCrossReference) Document() *Document

func (*DocumentCrossReference) Equals

func (dcr *DocumentCrossReference) Equals(o Element) bool

func (DocumentCrossReference) Origin

func (p DocumentCrossReference) Origin() (path string, line int)

func (DocumentCrossReference) Position

func (p DocumentCrossReference) Position() (line int, column int, offset int)

func (DocumentCrossReference) Raw

func (r DocumentCrossReference) Raw() string

func (*DocumentCrossReference) SetDocument added in v1.6.0

func (p *DocumentCrossReference) SetDocument(document *Document)

func (*DocumentCrossReference) SetPosition

func (p *DocumentCrossReference) SetPosition(line int, column int, offset int)

func (*DocumentCrossReference) SetRaw

func (r *DocumentCrossReference) SetRaw(s string)

func (DocumentCrossReference) Type

type DocumentElement added in v1.6.0

type DocumentElement interface {
	Element
	Document() *Document
}

type DoubleBold

type DoubleBold struct {
	AttributeList
	Elements
	// contains filtered or unexported fields
}

func NewDoubleBold

func NewDoubleBold() *DoubleBold

func (*DoubleBold) Clone added in v1.6.0

func (db *DoubleBold) Clone() Element

func (DoubleBold) Document added in v1.6.0

func (p DoubleBold) Document() *Document

func (*DoubleBold) Equals

func (db *DoubleBold) Equals(e Element) bool

func (DoubleBold) Origin

func (p DoubleBold) Origin() (path string, line int)

func (DoubleBold) Position

func (p DoubleBold) Position() (line int, column int, offset int)

func (DoubleBold) Raw

func (r DoubleBold) Raw() string

func (*DoubleBold) SetDocument added in v1.6.0

func (p *DoubleBold) SetDocument(document *Document)

func (*DoubleBold) SetPosition

func (p *DoubleBold) SetPosition(line int, column int, offset int)

func (*DoubleBold) SetRaw

func (r *DoubleBold) SetRaw(s string)

func (DoubleBold) TextFormat

func (DoubleBold) TextFormat() TextFormat

func (*DoubleBold) Traverse added in v1.5.41

func (db *DoubleBold) Traverse(parent ParentElement) iter.Seq2[ParentElement, Parent]

func (DoubleBold) Type

func (DoubleBold) Type() ElementType

type DoubleItalic

type DoubleItalic struct {
	AttributeList
	Elements
	// contains filtered or unexported fields
}

func NewDoubleItalic

func NewDoubleItalic(elements Elements) *DoubleItalic

func (*DoubleItalic) Clone added in v1.6.0

func (di *DoubleItalic) Clone() Element

func (DoubleItalic) Document added in v1.6.0

func (p DoubleItalic) Document() *Document

func (*DoubleItalic) Equals

func (di *DoubleItalic) Equals(o Element) bool

func (DoubleItalic) Origin

func (p DoubleItalic) Origin() (path string, line int)

func (DoubleItalic) Position

func (p DoubleItalic) Position() (line int, column int, offset int)

func (DoubleItalic) Raw

func (r DoubleItalic) Raw() string

func (*DoubleItalic) SetDocument added in v1.6.0

func (p *DoubleItalic) SetDocument(document *Document)

func (*DoubleItalic) SetPosition

func (p *DoubleItalic) SetPosition(line int, column int, offset int)

func (*DoubleItalic) SetRaw

func (r *DoubleItalic) SetRaw(s string)

func (DoubleItalic) TextFormat

func (DoubleItalic) TextFormat() TextFormat

func (DoubleItalic) Type

func (DoubleItalic) Type() ElementType

type DoubleMarked

type DoubleMarked struct {
	AttributeList
	Elements
	// contains filtered or unexported fields
}

func NewDoubleMarked

func NewDoubleMarked() *DoubleMarked

func (*DoubleMarked) Clone added in v1.6.0

func (dm *DoubleMarked) Clone() Element

func (DoubleMarked) Document added in v1.6.0

func (p DoubleMarked) Document() *Document

func (*DoubleMarked) Equals

func (dm *DoubleMarked) Equals(e Element) bool

func (DoubleMarked) Origin

func (p DoubleMarked) Origin() (path string, line int)

func (DoubleMarked) Position

func (p DoubleMarked) Position() (line int, column int, offset int)

func (DoubleMarked) Raw

func (r DoubleMarked) Raw() string

func (*DoubleMarked) SetDocument added in v1.6.0

func (p *DoubleMarked) SetDocument(document *Document)

func (*DoubleMarked) SetPosition

func (p *DoubleMarked) SetPosition(line int, column int, offset int)

func (*DoubleMarked) SetRaw

func (r *DoubleMarked) SetRaw(s string)

func (DoubleMarked) TextFormat

func (DoubleMarked) TextFormat() TextFormat

func (DoubleMarked) Type

func (DoubleMarked) Type() ElementType

type DoubleMonospace

type DoubleMonospace struct {
	AttributeList
	Elements
	// contains filtered or unexported fields
}

func NewDoubleMonospace

func NewDoubleMonospace(elements Elements) *DoubleMonospace

func (*DoubleMonospace) Clone added in v1.6.0

func (dm *DoubleMonospace) Clone() Element

func (DoubleMonospace) Document added in v1.6.0

func (p DoubleMonospace) Document() *Document

func (*DoubleMonospace) Equals

func (dm *DoubleMonospace) Equals(e Element) bool

func (DoubleMonospace) Origin

func (p DoubleMonospace) Origin() (path string, line int)

func (DoubleMonospace) Position

func (p DoubleMonospace) Position() (line int, column int, offset int)

func (DoubleMonospace) Raw

func (r DoubleMonospace) Raw() string

func (*DoubleMonospace) SetDocument added in v1.6.0

func (p *DoubleMonospace) SetDocument(document *Document)

func (*DoubleMonospace) SetPosition

func (p *DoubleMonospace) SetPosition(line int, column int, offset int)

func (*DoubleMonospace) SetRaw

func (r *DoubleMonospace) SetRaw(s string)

func (DoubleMonospace) TextFormat

func (DoubleMonospace) TextFormat() TextFormat

func (DoubleMonospace) Type

type Element

type Element interface {
	Type() ElementType
	Equals(o Element) bool
	Clone() Element
}

type ElementIterator added in v1.5.41

type ElementIterator iter.Seq[Element]

func (ElementIterator) Count added in v1.5.41

func (ei ElementIterator) Count() (count int)

func (ElementIterator) List added in v1.5.41

func (ei ElementIterator) List() (elements Elements)

type ElementList added in v1.6.0

type ElementList interface {
	Append(e ...Element)
}

type ElementType

type ElementType uint8
const (
	ElementTypeUnknown ElementType = iota
	ElementTypeDocument
	ElementTypeBlock
	ElementTypeInline
	ElementTypeInlineLiteral
	ElementTypeAttribute
	ElementTypeAttributes
)

type Elements added in v1.5.41

type Elements []Element

func NewStringElements added in v1.5.41

func NewStringElements(s ...string) (elements Elements)

func (*Elements) Append added in v1.5.41

func (s *Elements) Append(e ...Element)

func (Elements) Children added in v1.5.41

func (s Elements) Children() Elements

func (Elements) Clone added in v1.6.0

func (s Elements) Clone() Elements

func (Elements) Equals added in v1.5.41

func (s Elements) Equals(o Elements) bool

func (Elements) IsWhitespace added in v1.5.41

func (s Elements) IsWhitespace() bool

func (*Elements) SetChildren added in v1.5.41

func (s *Elements) SetChildren(els Elements)

type Email

type Email struct {
	Address string
	// contains filtered or unexported fields
}

func NewEmail

func NewEmail(address string) Email

func (Email) Clone added in v1.6.0

func (a Email) Clone() Element

func (Email) Document added in v1.6.0

func (p Email) Document() *Document

func (Email) Equals

func (a Email) Equals(o Element) bool

func (Email) Origin

func (p Email) Origin() (path string, line int)

func (Email) Position

func (p Email) Position() (line int, column int, offset int)

func (Email) Raw

func (r Email) Raw() string

func (*Email) SetDocument added in v1.6.0

func (p *Email) SetDocument(document *Document)

func (*Email) SetPosition

func (p *Email) SetPosition(line int, column int, offset int)

func (*Email) SetRaw

func (r *Email) SetRaw(s string)

func (Email) Type

func (Email) Type() ElementType

type EmptyLine

type EmptyLine struct {
	Text string
	// contains filtered or unexported fields
}

func NewEmptyLine

func NewEmptyLine(text string) *EmptyLine

func (*EmptyLine) Clone added in v1.6.0

func (el *EmptyLine) Clone() Element

func (EmptyLine) Document added in v1.6.0

func (p EmptyLine) Document() *Document

func (*EmptyLine) Equals

func (el *EmptyLine) Equals(o Element) bool

func (EmptyLine) Origin added in v1.5.40

func (p EmptyLine) Origin() (path string, line int)

func (EmptyLine) Position added in v1.5.40

func (p EmptyLine) Position() (line int, column int, offset int)

func (*EmptyLine) SetDocument added in v1.6.0

func (p *EmptyLine) SetDocument(document *Document)

func (*EmptyLine) SetPosition added in v1.5.40

func (p *EmptyLine) SetPosition(line int, column int, offset int)

func (*EmptyLine) Type

func (*EmptyLine) Type() ElementType

type EndIf

type EndIf struct {
	Attributes AttributeNames
	Union      ConditionalUnion
	// contains filtered or unexported fields
}

func NewEndIf

func NewEndIf(attributes []AttributeName, union ConditionalUnion) *EndIf

func (*EndIf) Clone added in v1.6.0

func (ei *EndIf) Clone() Element

func (EndIf) Document added in v1.6.0

func (p EndIf) Document() *Document

func (*EndIf) Equals

func (ei *EndIf) Equals(o Element) bool

func (EndIf) Origin

func (p EndIf) Origin() (path string, line int)

func (EndIf) Position

func (p EndIf) Position() (line int, column int, offset int)

func (EndIf) Raw

func (r EndIf) Raw() string

func (*EndIf) SetDocument added in v1.6.0

func (p *EndIf) SetDocument(document *Document)

func (*EndIf) SetPosition

func (p *EndIf) SetPosition(line int, column int, offset int)

func (*EndIf) SetRaw

func (r *EndIf) SetRaw(s string)

func (EndIf) Type

func (EndIf) Type() ElementType

type ExampleBlock

type ExampleBlock struct {
	Delimiter Delimiter
	AttributeList
	Elements
	// contains filtered or unexported fields
}

func NewExampleBlock

func NewExampleBlock(delimiter Delimiter) *ExampleBlock

func (*ExampleBlock) Clone added in v1.6.0

func (eb *ExampleBlock) Clone() Element

func (ExampleBlock) Document added in v1.6.0

func (p ExampleBlock) Document() *Document

func (*ExampleBlock) Equals

func (eb *ExampleBlock) Equals(o Element) bool

func (ExampleBlock) Origin

func (p ExampleBlock) Origin() (path string, line int)

func (ExampleBlock) Position

func (p ExampleBlock) Position() (line int, column int, offset int)

func (ExampleBlock) Raw

func (r ExampleBlock) Raw() string

func (*ExampleBlock) SetDocument added in v1.6.0

func (p *ExampleBlock) SetDocument(document *Document)

func (*ExampleBlock) SetPosition

func (p *ExampleBlock) SetPosition(line int, column int, offset int)

func (*ExampleBlock) SetRaw

func (r *ExampleBlock) SetRaw(s string)

func (ExampleBlock) Type

func (ExampleBlock) Type() ElementType

type FencedBlock

type FencedBlock struct {
	Delimiter FencedDelimiter
	AttributeList
	Elements
	// contains filtered or unexported fields
}

func NewFencedBlock

func NewFencedBlock(delimiter FencedDelimiter) *FencedBlock

func (*FencedBlock) Clone added in v1.6.0

func (fb *FencedBlock) Clone() Element

func (FencedBlock) Document added in v1.6.0

func (p FencedBlock) Document() *Document

func (*FencedBlock) Equals

func (fb *FencedBlock) Equals(o Element) bool

func (FencedBlock) Origin

func (p FencedBlock) Origin() (path string, line int)

func (FencedBlock) Position

func (p FencedBlock) Position() (line int, column int, offset int)

func (FencedBlock) Raw

func (r FencedBlock) Raw() string

func (*FencedBlock) SetDocument added in v1.6.0

func (p *FencedBlock) SetDocument(document *Document)

func (*FencedBlock) SetPosition

func (p *FencedBlock) SetPosition(line int, column int, offset int)

func (*FencedBlock) SetRaw

func (r *FencedBlock) SetRaw(s string)

func (FencedBlock) Type

func (FencedBlock) Type() ElementType

type FencedDelimiter added in v1.5.48

type FencedDelimiter struct {
	Delimiter

	Language Elements
}

func NewFencedDelimiter added in v1.5.48

func NewFencedDelimiter(length int, language Elements) FencedDelimiter

func (FencedDelimiter) Document added in v1.6.0

func (p FencedDelimiter) Document() *Document

func (FencedDelimiter) Equals added in v1.5.48

func (fd FencedDelimiter) Equals(ofd FencedDelimiter) bool

func (FencedDelimiter) Origin added in v1.5.48

func (p FencedDelimiter) Origin() (path string, line int)

func (FencedDelimiter) Position added in v1.5.48

func (p FencedDelimiter) Position() (line int, column int, offset int)

func (FencedDelimiter) Raw added in v1.5.48

func (r FencedDelimiter) Raw() string

func (*FencedDelimiter) SetDocument added in v1.6.0

func (p *FencedDelimiter) SetDocument(document *Document)

func (*FencedDelimiter) SetPosition added in v1.5.48

func (p *FencedDelimiter) SetPosition(line int, column int, offset int)

func (*FencedDelimiter) SetRaw added in v1.5.48

func (r *FencedDelimiter) SetRaw(s string)

type FileInclude

type FileInclude struct {
	AttributeList

	Elements
	// contains filtered or unexported fields
}

func NewFileInclude

func NewFileInclude() *FileInclude

func (*FileInclude) Clone added in v1.6.0

func (fi *FileInclude) Clone() Element

func (FileInclude) Document added in v1.6.0

func (p FileInclude) Document() *Document

func (*FileInclude) Equals

func (fi *FileInclude) Equals(o Element) bool

func (FileInclude) Origin

func (p FileInclude) Origin() (path string, line int)

func (FileInclude) Position

func (p FileInclude) Position() (line int, column int, offset int)

func (FileInclude) Raw

func (r FileInclude) Raw() string

func (*FileInclude) SetDocument added in v1.6.0

func (p *FileInclude) SetDocument(document *Document)

func (*FileInclude) SetPosition

func (p *FileInclude) SetPosition(line int, column int, offset int)

func (*FileInclude) SetRaw

func (r *FileInclude) SetRaw(s string)

func (FileInclude) Type

func (FileInclude) Type() ElementType

type Footnote

type Footnote struct {
	ID    string
	Value any
	// contains filtered or unexported fields
}

func NewFootnote

func NewFootnote(id string, value any) Footnote

func (Footnote) Document added in v1.6.0

func (p Footnote) Document() *Document

func (Footnote) Origin

func (p Footnote) Origin() (path string, line int)

func (Footnote) Position

func (p Footnote) Position() (line int, column int, offset int)

func (Footnote) Raw

func (r Footnote) Raw() string

func (*Footnote) SetDocument added in v1.6.0

func (p *Footnote) SetDocument(document *Document)

func (*Footnote) SetPosition

func (p *Footnote) SetPosition(line int, column int, offset int)

func (*Footnote) SetRaw

func (r *Footnote) SetRaw(s string)

type FormattedTextElement

type FormattedTextElement interface {
	Element
	ParentElement
	TextFormat() TextFormat
}

type HasChild

type HasChild interface {
	Child() Element
}

type HasLines

type HasLines interface {
	Element
	Lines() []string
	AppendLine(e string)
	SetLines(e []string)
}

type HasParent

type HasParent interface {
	Parent() Element
	SetParent(e Element)
}

type HasPosition

type HasPosition interface {
	Document() *Document
	SetDocument(document *Document)
	Position() (line int, column int, offset int)
	SetPosition(line int, column int, offset int)
}

type HasRaw

type HasRaw interface {
	Raw() string
	SetRaw(s string)
}

type Icon

type Icon struct {
	AttributeList

	Path string
	// contains filtered or unexported fields
}

func NewIcon

func NewIcon(path string) *Icon

func (*Icon) Clone added in v1.6.0

func (i *Icon) Clone() Element

func (Icon) Document added in v1.6.0

func (p Icon) Document() *Document

func (*Icon) Equals

func (i *Icon) Equals(o Element) bool

func (Icon) Origin

func (p Icon) Origin() (path string, line int)

func (Icon) Position

func (p Icon) Position() (line int, column int, offset int)

func (Icon) Raw

func (r Icon) Raw() string

func (*Icon) SetDocument added in v1.6.0

func (p *Icon) SetDocument(document *Document)

func (*Icon) SetPosition

func (p *Icon) SetPosition(line int, column int, offset int)

func (*Icon) SetRaw

func (r *Icon) SetRaw(s string)

func (Icon) Type

func (Icon) Type() ElementType

type IfDef

type IfDef struct {
	Attributes AttributeNames
	Union      ConditionalUnion

	Inline bool
	// contains filtered or unexported fields
}

func NewIfDef

func NewIfDef(attributes []AttributeName, union ConditionalUnion) *IfDef

func (*IfDef) Clone added in v1.6.0

func (a *IfDef) Clone() Element

func (IfDef) Document added in v1.6.0

func (p IfDef) Document() *Document

func (*IfDef) Equals

func (a *IfDef) Equals(o Element) bool

func (*IfDef) Eval

func (a *IfDef) Eval(cc ConditionalContext) bool

func (IfDef) Origin

func (p IfDef) Origin() (path string, line int)

func (IfDef) Position

func (p IfDef) Position() (line int, column int, offset int)

func (IfDef) Raw

func (r IfDef) Raw() string

func (*IfDef) SetDocument added in v1.6.0

func (p *IfDef) SetDocument(document *Document)

func (*IfDef) SetPosition

func (p *IfDef) SetPosition(line int, column int, offset int)

func (*IfDef) SetRaw

func (r *IfDef) SetRaw(s string)

func (IfDef) Type

func (IfDef) Type() ElementType

type IfDefBlock

type IfDefBlock struct {
	Attributes AttributeNames
	Elements
	Union ConditionalUnion
	// contains filtered or unexported fields
}

func NewIfDefBlock

func NewIfDefBlock(attributes []AttributeName, union ConditionalUnion) *IfDefBlock

func (*IfDefBlock) Clone added in v1.6.0

func (idb *IfDefBlock) Clone() Element

func (IfDefBlock) Document added in v1.6.0

func (p IfDefBlock) Document() *Document

func (*IfDefBlock) Equals

func (idb *IfDefBlock) Equals(o Element) bool

func (*IfDefBlock) Eval

func (idb *IfDefBlock) Eval(cc ConditionalContext) bool

func (IfDefBlock) Origin

func (p IfDefBlock) Origin() (path string, line int)

func (IfDefBlock) Position

func (p IfDefBlock) Position() (line int, column int, offset int)

func (IfDefBlock) Raw

func (r IfDefBlock) Raw() string

func (*IfDefBlock) SetDocument added in v1.6.0

func (p *IfDefBlock) SetDocument(document *Document)

func (*IfDefBlock) SetPosition

func (p *IfDefBlock) SetPosition(line int, column int, offset int)

func (*IfDefBlock) SetRaw

func (r *IfDefBlock) SetRaw(s string)

func (IfDefBlock) Type

func (IfDefBlock) Type() ElementType

type IfEval

type IfEval struct {
	Left     IfEvalValue
	Operator ConditionalOperator
	Right    IfEvalValue

	Inline bool
	// contains filtered or unexported fields
}

func NewIfEval

func NewIfEval(left IfEvalValue, operator ConditionalOperator, right IfEvalValue) *IfEval

func (*IfEval) Clone added in v1.6.0

func (ie *IfEval) Clone() Element

func (IfEval) Document added in v1.6.0

func (p IfEval) Document() *Document

func (*IfEval) Equals

func (ie *IfEval) Equals(o Element) bool

func (*IfEval) Eval

func (ie *IfEval) Eval(cc ConditionalContext) (bool, error)

func (IfEval) Origin

func (p IfEval) Origin() (path string, line int)

func (IfEval) Position

func (p IfEval) Position() (line int, column int, offset int)

func (IfEval) Raw

func (r IfEval) Raw() string

func (*IfEval) SetDocument added in v1.6.0

func (p *IfEval) SetDocument(document *Document)

func (*IfEval) SetPosition

func (p *IfEval) SetPosition(line int, column int, offset int)

func (*IfEval) SetRaw

func (r *IfEval) SetRaw(s string)

func (IfEval) Type

func (IfEval) Type() ElementType

type IfEvalBlock

type IfEvalBlock struct {
	Attributes AttributeNames
	Elements

	Left     IfEvalValue
	Operator ConditionalOperator
	Right    IfEvalValue
	// contains filtered or unexported fields
}

func NewIfEvalBlock

func NewIfEvalBlock(left IfEvalValue, operator ConditionalOperator, right IfEvalValue) *IfEvalBlock

func (*IfEvalBlock) Clone added in v1.6.0

func (ieb *IfEvalBlock) Clone() Element

func (IfEvalBlock) Document added in v1.6.0

func (p IfEvalBlock) Document() *Document

func (*IfEvalBlock) Equals

func (ieb *IfEvalBlock) Equals(o Element) bool

func (*IfEvalBlock) Eval

func (ieb *IfEvalBlock) Eval(cc ConditionalContext) (bool, error)

func (IfEvalBlock) Origin

func (p IfEvalBlock) Origin() (path string, line int)

func (IfEvalBlock) Position

func (p IfEvalBlock) Position() (line int, column int, offset int)

func (IfEvalBlock) Raw

func (r IfEvalBlock) Raw() string

func (*IfEvalBlock) SetDocument added in v1.6.0

func (p *IfEvalBlock) SetDocument(document *Document)

func (*IfEvalBlock) SetPosition

func (p *IfEvalBlock) SetPosition(line int, column int, offset int)

func (*IfEvalBlock) SetRaw

func (r *IfEvalBlock) SetRaw(s string)

func (IfEvalBlock) Type

func (IfEvalBlock) Type() ElementType

type IfEvalValue

type IfEvalValue struct {
	Quote AttributeQuoteType
	Value Elements
}

func (IfEvalValue) Clone added in v1.6.0

func (iev IfEvalValue) Clone() IfEvalValue

func (IfEvalValue) Equals

func (iev IfEvalValue) Equals(oiev IfEvalValue) bool

func (IfEvalValue) Eval

func (iev IfEvalValue) Eval(cc ConditionalContext) (any, error)

func (IfEvalValue) StringValue

func (iev IfEvalValue) StringValue(cc ConditionalContext) (string, error)

type IfNDef

type IfNDef struct {
	Attributes AttributeNames
	Union      ConditionalUnion

	Inline bool
	// contains filtered or unexported fields
}

func NewIfNDef

func NewIfNDef(attributes []AttributeName, union ConditionalUnion) *IfNDef

func (*IfNDef) Clone added in v1.6.0

func (id *IfNDef) Clone() Element

func (IfNDef) Document added in v1.6.0

func (p IfNDef) Document() *Document

func (*IfNDef) Equals

func (id *IfNDef) Equals(o Element) bool

func (*IfNDef) Eval

func (id *IfNDef) Eval(cc ConditionalContext) bool

func (IfNDef) Origin

func (p IfNDef) Origin() (path string, line int)

func (IfNDef) Position

func (p IfNDef) Position() (line int, column int, offset int)

func (IfNDef) Raw

func (r IfNDef) Raw() string

func (*IfNDef) SetDocument added in v1.6.0

func (p *IfNDef) SetDocument(document *Document)

func (*IfNDef) SetPosition

func (p *IfNDef) SetPosition(line int, column int, offset int)

func (*IfNDef) SetRaw

func (r *IfNDef) SetRaw(s string)

func (IfNDef) Type

func (IfNDef) Type() ElementType

type IfNDefBlock

type IfNDefBlock struct {
	Attributes AttributeNames
	Elements
	Union ConditionalUnion
	// contains filtered or unexported fields
}

func NewIfNDefBlock

func NewIfNDefBlock(attributes []AttributeName, union ConditionalUnion) *IfNDefBlock

func (*IfNDefBlock) Clone added in v1.6.0

func (indb *IfNDefBlock) Clone() Element

func (IfNDefBlock) Document added in v1.6.0

func (p IfNDefBlock) Document() *Document

func (*IfNDefBlock) Equals

func (indb *IfNDefBlock) Equals(o Element) bool

func (*IfNDefBlock) Eval

func (indb *IfNDefBlock) Eval(cc ConditionalContext) bool

func (IfNDefBlock) Origin

func (p IfNDefBlock) Origin() (path string, line int)

func (IfNDefBlock) Position

func (p IfNDefBlock) Position() (line int, column int, offset int)

func (IfNDefBlock) Raw

func (r IfNDefBlock) Raw() string

func (*IfNDefBlock) SetDocument added in v1.6.0

func (p *IfNDefBlock) SetDocument(document *Document)

func (*IfNDefBlock) SetPosition

func (p *IfNDefBlock) SetPosition(line int, column int, offset int)

func (*IfNDefBlock) SetRaw

func (r *IfNDefBlock) SetRaw(s string)

func (IfNDefBlock) Type

func (IfNDefBlock) Type() ElementType

type InlineDoublePassthrough

type InlineDoublePassthrough struct {
	AttributeList
	Elements
	// contains filtered or unexported fields
}

func NewInlineDoublePassthrough

func NewInlineDoublePassthrough() *InlineDoublePassthrough

func (*InlineDoublePassthrough) Clone added in v1.6.0

func (idp *InlineDoublePassthrough) Clone() Element

func (InlineDoublePassthrough) Document added in v1.6.0

func (p InlineDoublePassthrough) Document() *Document

func (*InlineDoublePassthrough) Equals

func (idp *InlineDoublePassthrough) Equals(o Element) bool

func (InlineDoublePassthrough) Origin

func (p InlineDoublePassthrough) Origin() (path string, line int)

func (InlineDoublePassthrough) Position

func (p InlineDoublePassthrough) Position() (line int, column int, offset int)

func (InlineDoublePassthrough) Raw

func (r InlineDoublePassthrough) Raw() string

func (*InlineDoublePassthrough) SetDocument added in v1.6.0

func (p *InlineDoublePassthrough) SetDocument(document *Document)

func (*InlineDoublePassthrough) SetPosition

func (p *InlineDoublePassthrough) SetPosition(line int, column int, offset int)

func (*InlineDoublePassthrough) SetRaw

func (r *InlineDoublePassthrough) SetRaw(s string)

func (InlineDoublePassthrough) Type

type InlineIfDef

type InlineIfDef struct {
	Elements

	Attributes AttributeNames
	Union      ConditionalUnion
	// contains filtered or unexported fields
}

func NewInlineIfDef

func NewInlineIfDef(attributes []AttributeName, union ConditionalUnion) *InlineIfDef

func (*InlineIfDef) Clone added in v1.6.0

func (iid *InlineIfDef) Clone() Element

func (InlineIfDef) Document added in v1.6.0

func (p InlineIfDef) Document() *Document

func (*InlineIfDef) Equals

func (iid *InlineIfDef) Equals(o Element) bool

func (*InlineIfDef) Eval

func (iid *InlineIfDef) Eval(cc ConditionalContext) bool

func (InlineIfDef) Origin

func (p InlineIfDef) Origin() (path string, line int)

func (InlineIfDef) Position

func (p InlineIfDef) Position() (line int, column int, offset int)

func (InlineIfDef) Raw

func (r InlineIfDef) Raw() string

func (*InlineIfDef) SetDocument added in v1.6.0

func (p *InlineIfDef) SetDocument(document *Document)

func (*InlineIfDef) SetPosition

func (p *InlineIfDef) SetPosition(line int, column int, offset int)

func (*InlineIfDef) SetRaw

func (r *InlineIfDef) SetRaw(s string)

func (InlineIfDef) Type

func (InlineIfDef) Type() ElementType

type InlineIfNDef

type InlineIfNDef struct {
	Elements

	Attributes AttributeNames
	Union      ConditionalUnion
	// contains filtered or unexported fields
}

func NewInlineIfNDef

func NewInlineIfNDef(attributes []AttributeName, union ConditionalUnion) *InlineIfNDef

func (*InlineIfNDef) Clone added in v1.6.0

func (iind *InlineIfNDef) Clone() Element

func (InlineIfNDef) Document added in v1.6.0

func (p InlineIfNDef) Document() *Document

func (*InlineIfNDef) Equals

func (iind *InlineIfNDef) Equals(o Element) bool

func (*InlineIfNDef) Eval

func (iind *InlineIfNDef) Eval(cc ConditionalContext) bool

func (InlineIfNDef) Origin

func (p InlineIfNDef) Origin() (path string, line int)

func (InlineIfNDef) Position

func (p InlineIfNDef) Position() (line int, column int, offset int)

func (InlineIfNDef) Raw

func (r InlineIfNDef) Raw() string

func (*InlineIfNDef) SetDocument added in v1.6.0

func (p *InlineIfNDef) SetDocument(document *Document)

func (*InlineIfNDef) SetPosition

func (p *InlineIfNDef) SetPosition(line int, column int, offset int)

func (*InlineIfNDef) SetRaw

func (r *InlineIfNDef) SetRaw(s string)

func (InlineIfNDef) Type

func (InlineIfNDef) Type() ElementType

type InlineImage

type InlineImage struct {
	AttributeList

	ImagePath Elements
}

func NewInlineImage

func NewInlineImage(path Elements) *InlineImage

func (*InlineImage) Clone added in v1.6.0

func (ii *InlineImage) Clone() Element

func (*InlineImage) Equals

func (ii *InlineImage) Equals(o Element) bool

func (InlineImage) Type

func (InlineImage) Type() ElementType

type InlinePassthrough

type InlinePassthrough struct {
	AttributeList
	Elements
	// contains filtered or unexported fields
}

func NewInlinePassthrough

func NewInlinePassthrough() *InlinePassthrough

func (*InlinePassthrough) Clone added in v1.6.0

func (ip *InlinePassthrough) Clone() Element

func (InlinePassthrough) Document added in v1.6.0

func (p InlinePassthrough) Document() *Document

func (*InlinePassthrough) Equals

func (ip *InlinePassthrough) Equals(o Element) bool

func (InlinePassthrough) Origin

func (p InlinePassthrough) Origin() (path string, line int)

func (InlinePassthrough) Position

func (p InlinePassthrough) Position() (line int, column int, offset int)

func (InlinePassthrough) Raw

func (r InlinePassthrough) Raw() string

func (*InlinePassthrough) SetDocument added in v1.6.0

func (p *InlinePassthrough) SetDocument(document *Document)

func (*InlinePassthrough) SetPosition

func (p *InlinePassthrough) SetPosition(line int, column int, offset int)

func (*InlinePassthrough) SetRaw

func (r *InlinePassthrough) SetRaw(s string)

func (InlinePassthrough) Type

type Italic

type Italic struct {
	AttributeList
	Elements
	// contains filtered or unexported fields
}

func NewItalic

func NewItalic(elements Elements) *Italic

func (*Italic) Clone added in v1.6.0

func (i *Italic) Clone() Element

func (Italic) Document added in v1.6.0

func (p Italic) Document() *Document

func (*Italic) Equals

func (i *Italic) Equals(o Element) bool

func (Italic) Origin

func (p Italic) Origin() (path string, line int)

func (Italic) Position

func (p Italic) Position() (line int, column int, offset int)

func (Italic) Raw

func (r Italic) Raw() string

func (*Italic) SetDocument added in v1.6.0

func (p *Italic) SetDocument(document *Document)

func (*Italic) SetPosition

func (p *Italic) SetPosition(line int, column int, offset int)

func (*Italic) SetRaw

func (r *Italic) SetRaw(s string)

func (Italic) TextFormat

func (Italic) TextFormat() TextFormat

func (Italic) Type

func (Italic) Type() ElementType

type LineBreak

type LineBreak struct {
	// contains filtered or unexported fields
}

func (LineBreak) Clone added in v1.6.0

func (lb LineBreak) Clone() Element

func (LineBreak) Document added in v1.6.0

func (p LineBreak) Document() *Document

func (*LineBreak) Equals

func (*LineBreak) Equals(e Element) bool

func (LineBreak) Origin

func (p LineBreak) Origin() (path string, line int)

func (LineBreak) Position

func (p LineBreak) Position() (line int, column int, offset int)

func (LineBreak) Raw

func (r LineBreak) Raw() string

func (*LineBreak) SetDocument added in v1.6.0

func (p *LineBreak) SetDocument(document *Document)

func (*LineBreak) SetPosition

func (p *LineBreak) SetPosition(line int, column int, offset int)

func (*LineBreak) SetRaw

func (r *LineBreak) SetRaw(s string)

func (LineBreak) Type

func (LineBreak) Type() ElementType

type LineContinuation

type LineContinuation struct {
	// contains filtered or unexported fields
}

func (LineContinuation) Clone added in v1.6.0

func (lc LineContinuation) Clone() Element

func (LineContinuation) Document added in v1.6.0

func (p LineContinuation) Document() *Document

func (LineContinuation) Equals

func (LineContinuation) Equals(e Element) bool

func (LineContinuation) Origin

func (p LineContinuation) Origin() (path string, line int)

func (LineContinuation) Position

func (p LineContinuation) Position() (line int, column int, offset int)

func (LineContinuation) Raw

func (r LineContinuation) Raw() string

func (*LineContinuation) SetDocument added in v1.6.0

func (p *LineContinuation) SetDocument(document *Document)

func (*LineContinuation) SetPosition

func (p *LineContinuation) SetPosition(line int, column int, offset int)

func (*LineContinuation) SetRaw

func (r *LineContinuation) SetRaw(s string)

func (LineContinuation) Type

type LineList

type LineList []string

func (*LineList) AppendLine

func (ll *LineList) AppendLine(e string)

func (LineList) Clone added in v1.6.0

func (ll LineList) Clone() []string

func (LineList) Equals

func (ll LineList) Equals(oll LineList) bool

func (LineList) Lines

func (ll LineList) Lines() []string

func (*LineList) SetLines

func (ll *LineList) SetLines(els []string)
type Link struct {
	AttributeList

	URL URL
	// contains filtered or unexported fields
}
func NewLink(url URL) *Link

func (*Link) Clone added in v1.6.0

func (l *Link) Clone() Element

func (Link) Document added in v1.6.0

func (p Link) Document() *Document

func (*Link) Equals

func (l *Link) Equals(o Element) bool

func (Link) Origin

func (p Link) Origin() (path string, line int)

func (Link) Position

func (p Link) Position() (line int, column int, offset int)

func (Link) Raw

func (r Link) Raw() string

func (*Link) SetDocument added in v1.6.0

func (p *Link) SetDocument(document *Document)

func (*Link) SetPosition

func (p *Link) SetPosition(line int, column int, offset int)

func (*Link) SetRaw

func (r *Link) SetRaw(s string)

func (Link) Type

func (Link) Type() ElementType

type LinkMacro

type LinkMacro struct {
	AttributeList

	URL URL
	// contains filtered or unexported fields
}

func NewLinkMacro

func NewLinkMacro(url URL) *LinkMacro

func (*LinkMacro) Clone added in v1.6.0

func (lm *LinkMacro) Clone() Element

func (LinkMacro) Document added in v1.6.0

func (p LinkMacro) Document() *Document

func (*LinkMacro) Equals

func (lm *LinkMacro) Equals(o Element) bool

func (LinkMacro) Origin

func (p LinkMacro) Origin() (path string, line int)

func (LinkMacro) Position

func (p LinkMacro) Position() (line int, column int, offset int)

func (LinkMacro) Raw

func (r LinkMacro) Raw() string

func (*LinkMacro) SetDocument added in v1.6.0

func (p *LinkMacro) SetDocument(document *Document)

func (*LinkMacro) SetPosition

func (p *LinkMacro) SetPosition(line int, column int, offset int)

func (*LinkMacro) SetRaw

func (r *LinkMacro) SetRaw(s string)

func (LinkMacro) Type

func (LinkMacro) Type() ElementType

type ListContinuation

type ListContinuation struct {
	NewLineCount int
	ChildElement Element
	// contains filtered or unexported fields
}

func NewListContinuation

func NewListContinuation(child Element, newLineCount int) *ListContinuation

func (*ListContinuation) Child

func (lc *ListContinuation) Child() Element

func (*ListContinuation) Clone added in v1.6.0

func (lc *ListContinuation) Clone() Element

func (ListContinuation) Document added in v1.6.0

func (p ListContinuation) Document() *Document

func (*ListContinuation) Equals

func (lc *ListContinuation) Equals(o Element) bool

func (ListContinuation) Origin

func (p ListContinuation) Origin() (path string, line int)

func (ListContinuation) Position

func (p ListContinuation) Position() (line int, column int, offset int)

func (ListContinuation) Raw

func (r ListContinuation) Raw() string

func (*ListContinuation) SetDocument added in v1.6.0

func (p *ListContinuation) SetDocument(document *Document)

func (*ListContinuation) SetPosition

func (p *ListContinuation) SetPosition(line int, column int, offset int)

func (*ListContinuation) SetRaw

func (r *ListContinuation) SetRaw(s string)

func (ListContinuation) Type

type Listing

type Listing struct {
	AttributeList

	Delimiter Delimiter
	LineList
	// contains filtered or unexported fields
}

func NewListing

func NewListing(delimiter Delimiter) *Listing

func (*Listing) Clone added in v1.6.0

func (l *Listing) Clone() Element

func (Listing) Document added in v1.6.0

func (p Listing) Document() *Document

func (*Listing) Equals

func (l *Listing) Equals(o Element) bool

func (Listing) Origin

func (p Listing) Origin() (path string, line int)

func (Listing) Position

func (p Listing) Position() (line int, column int, offset int)

func (Listing) Raw

func (r Listing) Raw() string

func (*Listing) SetDocument added in v1.6.0

func (p *Listing) SetDocument(document *Document)

func (*Listing) SetPosition

func (p *Listing) SetPosition(line int, column int, offset int)

func (*Listing) SetRaw

func (r *Listing) SetRaw(s string)

func (Listing) Type

func (Listing) Type() ElementType

type LiteralBlock

type LiteralBlock struct {
	AttributeList

	Delimiter Delimiter
	LineList
	// contains filtered or unexported fields
}

func NewLiteralBlock

func NewLiteralBlock(delimiter Delimiter) *LiteralBlock

func (*LiteralBlock) Clone added in v1.6.0

func (a *LiteralBlock) Clone() Element

func (LiteralBlock) Document added in v1.6.0

func (p LiteralBlock) Document() *Document

func (*LiteralBlock) Equals

func (a *LiteralBlock) Equals(o Element) bool

func (LiteralBlock) Origin

func (p LiteralBlock) Origin() (path string, line int)

func (LiteralBlock) Position

func (p LiteralBlock) Position() (line int, column int, offset int)

func (LiteralBlock) Raw

func (r LiteralBlock) Raw() string

func (*LiteralBlock) SetDocument added in v1.6.0

func (p *LiteralBlock) SetDocument(document *Document)

func (*LiteralBlock) SetPosition

func (p *LiteralBlock) SetPosition(line int, column int, offset int)

func (*LiteralBlock) SetRaw

func (r *LiteralBlock) SetRaw(s string)

func (LiteralBlock) Type

func (LiteralBlock) Type() ElementType

type Marked

type Marked struct {
	AttributeList
	Elements
	// contains filtered or unexported fields
}

func NewMarked

func NewMarked() *Marked

func (*Marked) Clone added in v1.6.0

func (m *Marked) Clone() Element

func (Marked) Document added in v1.6.0

func (p Marked) Document() *Document

func (*Marked) Equals

func (m *Marked) Equals(e Element) bool

func (Marked) Origin

func (p Marked) Origin() (path string, line int)

func (Marked) Position

func (p Marked) Position() (line int, column int, offset int)

func (Marked) Raw

func (r Marked) Raw() string

func (*Marked) SetDocument added in v1.6.0

func (p *Marked) SetDocument(document *Document)

func (*Marked) SetPosition

func (p *Marked) SetPosition(line int, column int, offset int)

func (*Marked) SetRaw

func (r *Marked) SetRaw(s string)

func (Marked) TextFormat

func (Marked) TextFormat() TextFormat

func (Marked) Type

func (Marked) Type() ElementType

type Monospace

type Monospace struct {
	AttributeList
	Elements
	// contains filtered or unexported fields
}

func NewMonospace

func NewMonospace(elements Elements) *Monospace

func (*Monospace) Clone added in v1.6.0

func (ms *Monospace) Clone() Element

func (Monospace) Document added in v1.6.0

func (p Monospace) Document() *Document

func (*Monospace) Equals

func (ms *Monospace) Equals(e Element) bool

func (Monospace) Origin

func (p Monospace) Origin() (path string, line int)

func (Monospace) Position

func (p Monospace) Position() (line int, column int, offset int)

func (Monospace) Raw

func (r Monospace) Raw() string

func (*Monospace) SetDocument added in v1.6.0

func (p *Monospace) SetDocument(document *Document)

func (*Monospace) SetPosition

func (p *Monospace) SetPosition(line int, column int, offset int)

func (*Monospace) SetRaw

func (r *Monospace) SetRaw(s string)

func (Monospace) TextFormat

func (Monospace) TextFormat() TextFormat

func (Monospace) Type

func (Monospace) Type() ElementType

type MultiLineComment

type MultiLineComment struct {
	Delimiter Delimiter
	LineList
	// contains filtered or unexported fields
}

func NewMultiLineComment

func NewMultiLineComment(delimiter Delimiter) *MultiLineComment

func (*MultiLineComment) Clone added in v1.6.0

func (mlc *MultiLineComment) Clone() Element

func (MultiLineComment) Document added in v1.6.0

func (p MultiLineComment) Document() *Document

func (*MultiLineComment) Equals

func (mlc *MultiLineComment) Equals(e Element) bool

func (MultiLineComment) Origin

func (p MultiLineComment) Origin() (path string, line int)

func (MultiLineComment) Position

func (p MultiLineComment) Position() (line int, column int, offset int)

func (MultiLineComment) Raw

func (r MultiLineComment) Raw() string

func (*MultiLineComment) SetDocument added in v1.6.0

func (p *MultiLineComment) SetDocument(document *Document)

func (*MultiLineComment) SetPosition

func (p *MultiLineComment) SetPosition(line int, column int, offset int)

func (*MultiLineComment) SetRaw

func (r *MultiLineComment) SetRaw(s string)

func (MultiLineComment) Type

type NamedAttribute

type NamedAttribute struct {
	Name AttributeName

	Val Elements

	Quote AttributeQuoteType
	// contains filtered or unexported fields
}

func (*NamedAttribute) AsciiDocString

func (na *NamedAttribute) AsciiDocString() string

func (*NamedAttribute) AttributeType

func (na *NamedAttribute) AttributeType() AttributeType

func (*NamedAttribute) Children added in v1.5.41

func (na *NamedAttribute) Children() Elements

func (*NamedAttribute) Clone added in v1.6.0

func (na *NamedAttribute) Clone() Attribute

func (*NamedAttribute) Equals

func (na *NamedAttribute) Equals(oa Attribute) bool

func (*NamedAttribute) QuoteType

func (na *NamedAttribute) QuoteType() AttributeQuoteType

func (*NamedAttribute) SetChildren added in v1.5.41

func (na *NamedAttribute) SetChildren(els Elements)

func (*NamedAttribute) SetValue

func (na *NamedAttribute) SetValue(v any) error

func (NamedAttribute) Type

func (ae NamedAttribute) Type() ElementType

func (*NamedAttribute) Value

func (na *NamedAttribute) Value() any

type NewLine

type NewLine struct {
	// contains filtered or unexported fields
}

func (NewLine) Clone added in v1.6.0

func (nl NewLine) Clone() Element

func (NewLine) Document added in v1.6.0

func (p NewLine) Document() *Document

func (*NewLine) Equals

func (*NewLine) Equals(e Element) bool

func (NewLine) Origin

func (p NewLine) Origin() (path string, line int)

func (NewLine) Position

func (p NewLine) Position() (line int, column int, offset int)

func (NewLine) Raw

func (r NewLine) Raw() string

func (*NewLine) SetDocument added in v1.6.0

func (p *NewLine) SetDocument(document *Document)

func (*NewLine) SetPosition

func (p *NewLine) SetPosition(line int, column int, offset int)

func (*NewLine) SetRaw

func (r *NewLine) SetRaw(s string)

func (NewLine) Type

func (NewLine) Type() ElementType

type OpenBlock

type OpenBlock struct {
	AttributeList

	Delimiter Delimiter
	Elements
	// contains filtered or unexported fields
}

func NewOpenBlock

func NewOpenBlock(delimiter Delimiter) *OpenBlock

func (*OpenBlock) Clone added in v1.6.0

func (ob *OpenBlock) Clone() Element

func (OpenBlock) Document added in v1.6.0

func (p OpenBlock) Document() *Document

func (*OpenBlock) Equals

func (ob *OpenBlock) Equals(o Element) bool

func (OpenBlock) Origin

func (p OpenBlock) Origin() (path string, line int)

func (OpenBlock) Position

func (p OpenBlock) Position() (line int, column int, offset int)

func (OpenBlock) Raw

func (r OpenBlock) Raw() string

func (*OpenBlock) SetDocument added in v1.6.0

func (p *OpenBlock) SetDocument(document *Document)

func (*OpenBlock) SetPosition

func (p *OpenBlock) SetPosition(line int, column int, offset int)

func (*OpenBlock) SetRaw

func (r *OpenBlock) SetRaw(s string)

func (OpenBlock) Type

func (OpenBlock) Type() ElementType

type Optional

type Optional[T comparable] struct {
	Value T
	IsSet bool
}

func Default

func Default[T comparable](val T) Optional[T]

func Maybe

func Maybe[T comparable](val any, defaulValue T) Optional[T]

func One

func One[T comparable](val T) Optional[T]

func (Optional[T]) Equals

func (o Optional[T]) Equals(o2 Optional[T]) bool

type OrderedListItem

type OrderedListItem struct {
	Elements
	AttributeList

	Indent string
	Marker string
	// contains filtered or unexported fields
}

func NewOrderedListItem

func NewOrderedListItem(indent string, marker string) *OrderedListItem

func (*OrderedListItem) Clone added in v1.6.0

func (oli *OrderedListItem) Clone() Element

func (OrderedListItem) Document added in v1.6.0

func (p OrderedListItem) Document() *Document

func (*OrderedListItem) Equals

func (oli *OrderedListItem) Equals(o Element) bool

func (OrderedListItem) Origin

func (p OrderedListItem) Origin() (path string, line int)

func (OrderedListItem) Position

func (p OrderedListItem) Position() (line int, column int, offset int)

func (OrderedListItem) Raw

func (r OrderedListItem) Raw() string

func (*OrderedListItem) SetDocument added in v1.6.0

func (p *OrderedListItem) SetDocument(document *Document)

func (*OrderedListItem) SetPosition

func (p *OrderedListItem) SetPosition(line int, column int, offset int)

func (*OrderedListItem) SetRaw

func (r *OrderedListItem) SetRaw(s string)

func (OrderedListItem) Type

type PageBreak

type PageBreak struct {
	AttributeList
	// contains filtered or unexported fields
}

func NewPageBreak

func NewPageBreak() *PageBreak

func (*PageBreak) Clone added in v1.6.0

func (pb *PageBreak) Clone() Element

func (PageBreak) Document added in v1.6.0

func (p PageBreak) Document() *Document

func (*PageBreak) Equals

func (pb *PageBreak) Equals(e Element) bool

func (PageBreak) Origin

func (p PageBreak) Origin() (path string, line int)

func (PageBreak) Position

func (p PageBreak) Position() (line int, column int, offset int)

func (PageBreak) Raw

func (r PageBreak) Raw() string

func (*PageBreak) SetDocument added in v1.6.0

func (p *PageBreak) SetDocument(document *Document)

func (*PageBreak) SetPosition

func (p *PageBreak) SetPosition(line int, column int, offset int)

func (*PageBreak) SetRaw

func (r *PageBreak) SetRaw(s string)

func (PageBreak) Type

func (PageBreak) Type() ElementType

type Paragraph

type Paragraph struct {
	AttributeList
	Elements

	Admonition AdmonitionType
	// contains filtered or unexported fields
}

func NewParagraph

func NewParagraph() *Paragraph

func (*Paragraph) Clone added in v1.6.0

func (p *Paragraph) Clone() Element

func (Paragraph) Document added in v1.6.0

func (p Paragraph) Document() *Document

func (*Paragraph) Equals

func (p *Paragraph) Equals(o Element) bool

func (Paragraph) Origin

func (p Paragraph) Origin() (path string, line int)

func (Paragraph) Position

func (p Paragraph) Position() (line int, column int, offset int)

func (*Paragraph) SetDocument added in v1.6.0

func (p *Paragraph) SetDocument(document *Document)

func (*Paragraph) SetPosition

func (p *Paragraph) SetPosition(line int, column int, offset int)

func (Paragraph) Type

func (Paragraph) Type() ElementType

type Parent added in v1.5.41

type Parent interface {
	Children() Elements
	SetChildren(e Elements)
}

type ParentElement added in v1.5.41

type ParentElement interface {
	DocumentElement
	Parent
}

type Path

type Path struct {
	Absolute string
	Relative string
}

func NewPath

func NewPath(path string, rootPath string) (p Path, err error)

func (Path) Base

func (p Path) Base() string

func (Path) Dir

func (p Path) Dir() string

func (Path) Ext

func (p Path) Ext() string

func (Path) Origin

func (p Path) Origin() (path string, line int)

func (Path) String

func (p Path) String() string

type PositionalAttribute

type PositionalAttribute struct {
	Offset      int
	ImpliedName AttributeName

	Val Elements
	// contains filtered or unexported fields
}

func (*PositionalAttribute) AsciiDocString

func (pa *PositionalAttribute) AsciiDocString() string

func (*PositionalAttribute) AttributeType

func (pa *PositionalAttribute) AttributeType() AttributeType

func (*PositionalAttribute) Children added in v1.5.41

func (pa *PositionalAttribute) Children() Elements

func (*PositionalAttribute) Clone added in v1.6.0

func (pa *PositionalAttribute) Clone() Attribute

func (*PositionalAttribute) Equals

func (pa *PositionalAttribute) Equals(oa Attribute) bool

func (PositionalAttribute) QuoteType

func (*PositionalAttribute) SetChildren added in v1.5.41

func (pa *PositionalAttribute) SetChildren(els Elements)

func (*PositionalAttribute) SetValue

func (pa *PositionalAttribute) SetValue(v any) error

func (PositionalAttribute) Type

func (ae PositionalAttribute) Type() ElementType

func (*PositionalAttribute) Value

func (pa *PositionalAttribute) Value() any

type QuoteBlock

type QuoteBlock struct {
	Delimiter Delimiter
	AttributeList

	Elements
	// contains filtered or unexported fields
}

func NewQuoteBlock

func NewQuoteBlock(delimiter Delimiter) *QuoteBlock

func (*QuoteBlock) Clone added in v1.6.0

func (qb *QuoteBlock) Clone() Element

func (QuoteBlock) Document added in v1.6.0

func (p QuoteBlock) Document() *Document

func (*QuoteBlock) Equals

func (qb *QuoteBlock) Equals(o Element) bool

func (QuoteBlock) Origin

func (p QuoteBlock) Origin() (path string, line int)

func (QuoteBlock) Position

func (p QuoteBlock) Position() (line int, column int, offset int)

func (QuoteBlock) Raw

func (r QuoteBlock) Raw() string

func (*QuoteBlock) SetDocument added in v1.6.0

func (p *QuoteBlock) SetDocument(document *Document)

func (*QuoteBlock) SetPosition

func (p *QuoteBlock) SetPosition(line int, column int, offset int)

func (*QuoteBlock) SetRaw

func (r *QuoteBlock) SetRaw(s string)

func (QuoteBlock) Type

func (QuoteBlock) Type() ElementType

type Reader

type Reader interface {
	Iterate(parent Parent, elements Elements) ElementIterator
	StringValue(parent Parent, elements Elements) (string, error)
	Parent(child ChildElement) Element
	Children(parent ParentElement) Elements
}
var RawReader Reader = &rawReader{}

type Section

type Section struct {
	AttributeList
	Elements

	Title Elements
	Level int
	// contains filtered or unexported fields
}

func NewSection

func NewSection(title Elements, level int) *Section

func (*Section) AddChildSection

func (s *Section) AddChildSection(c *Section)

func (*Section) Clone added in v1.6.0

func (s *Section) Clone() Element

func (Section) Document added in v1.6.0

func (p Section) Document() *Document

func (*Section) Equals

func (a *Section) Equals(o Element) bool

func (Section) Origin

func (p Section) Origin() (path string, line int)

func (Section) Parent

func (c Section) Parent() Element

func (*Section) ParentSection

func (s *Section) ParentSection() *Section

func (Section) Position

func (p Section) Position() (line int, column int, offset int)

func (Section) Raw

func (r Section) Raw() string

func (*Section) SetDocument added in v1.6.0

func (p *Section) SetDocument(document *Document)

func (*Section) SetParent

func (c *Section) SetParent(e Element)

func (*Section) SetPosition

func (p *Section) SetPosition(line int, column int, offset int)

func (*Section) SetRaw

func (r *Section) SetRaw(s string)

func (*Section) Traverse added in v1.5.41

func (s *Section) Traverse(parent ParentElement) iter.Seq2[ParentElement, Parent]

func (Section) Type

func (Section) Type() ElementType

type ShorthandAttribute

type ShorthandAttribute struct {
	Style   *ShorthandStyle
	ID      *ShorthandID
	Roles   []*ShorthandRole
	Options []*ShorthandOption
	// contains filtered or unexported fields
}

func NewShorthandAttribute

func NewShorthandAttribute(style any, values []any) (*ShorthandAttribute, error)

func (*ShorthandAttribute) AsciiDocString

func (sa *ShorthandAttribute) AsciiDocString() string

func (ShorthandAttribute) AttributeType

func (ShorthandAttribute) AttributeType() AttributeType

func (*ShorthandAttribute) Clone added in v1.6.0

func (sa *ShorthandAttribute) Clone() Attribute

func (*ShorthandAttribute) Equals

func (sa *ShorthandAttribute) Equals(oa Attribute) bool

func (ShorthandAttribute) QuoteType

func (*ShorthandAttribute) SetValue

func (sa *ShorthandAttribute) SetValue(v any) error

func (ShorthandAttribute) Type

func (sa ShorthandAttribute) Type() ElementType

func (*ShorthandAttribute) Value

func (sa *ShorthandAttribute) Value() any

type ShorthandID

type ShorthandID struct {
	Elements
	// contains filtered or unexported fields
}

func NewShorthandID

func NewShorthandID(value ...Element) *ShorthandID

func (*ShorthandID) Clone added in v1.6.0

func (sid *ShorthandID) Clone() Element

func (*ShorthandID) Equals

func (sid *ShorthandID) Equals(osa Element) bool

func (ShorthandID) Type

func (ae ShorthandID) Type() ElementType

type ShorthandOption

type ShorthandOption struct {
	Elements
	// contains filtered or unexported fields
}

func NewShorthandOption

func NewShorthandOption(value ...Element) *ShorthandOption

func (*ShorthandOption) Clone added in v1.6.0

func (so *ShorthandOption) Clone() Element

func (*ShorthandOption) Equals

func (so *ShorthandOption) Equals(osa Element) bool

func (ShorthandOption) Type

func (ae ShorthandOption) Type() ElementType

type ShorthandRole

type ShorthandRole struct {
	Elements
	// contains filtered or unexported fields
}

func NewShorthandRole

func NewShorthandRole(value ...Element) *ShorthandRole

func (*ShorthandRole) Clone added in v1.6.0

func (sr *ShorthandRole) Clone() Element

func (*ShorthandRole) Equals

func (sr *ShorthandRole) Equals(osa Element) bool

func (ShorthandRole) Type

func (ae ShorthandRole) Type() ElementType

type ShorthandStyle

type ShorthandStyle struct {
	Elements
	// contains filtered or unexported fields
}

func NewShorthandStyle

func NewShorthandStyle(value ...Element) *ShorthandStyle

func (*ShorthandStyle) Clone added in v1.6.0

func (ss *ShorthandStyle) Clone() Element

func (*ShorthandStyle) Equals

func (ss *ShorthandStyle) Equals(osa Element) bool

func (ShorthandStyle) Type

func (ae ShorthandStyle) Type() ElementType

type SidebarBlock

type SidebarBlock struct {
	Delimiter Delimiter
	AttributeList

	Elements
	// contains filtered or unexported fields
}

func NewSidebarBlock

func NewSidebarBlock(delimiter Delimiter) *SidebarBlock

func (*SidebarBlock) Clone added in v1.6.0

func (sbb *SidebarBlock) Clone() Element

func (SidebarBlock) Document added in v1.6.0

func (p SidebarBlock) Document() *Document

func (*SidebarBlock) Equals

func (sbb *SidebarBlock) Equals(o Element) bool

func (SidebarBlock) Origin

func (p SidebarBlock) Origin() (path string, line int)

func (SidebarBlock) Position

func (p SidebarBlock) Position() (line int, column int, offset int)

func (SidebarBlock) Raw

func (r SidebarBlock) Raw() string

func (*SidebarBlock) SetDocument added in v1.6.0

func (p *SidebarBlock) SetDocument(document *Document)

func (*SidebarBlock) SetPosition

func (p *SidebarBlock) SetPosition(line int, column int, offset int)

func (*SidebarBlock) SetRaw

func (r *SidebarBlock) SetRaw(s string)

func (SidebarBlock) Type

func (SidebarBlock) Type() ElementType

type SingleLineComment

type SingleLineComment struct {
	Value string
	// contains filtered or unexported fields
}

func NewSingleLineComment

func NewSingleLineComment(value string) *SingleLineComment

func (*SingleLineComment) Clone added in v1.6.0

func (slc *SingleLineComment) Clone() Element

func (SingleLineComment) Document added in v1.6.0

func (p SingleLineComment) Document() *Document

func (*SingleLineComment) Equals

func (slc *SingleLineComment) Equals(e Element) bool

func (SingleLineComment) Origin

func (p SingleLineComment) Origin() (path string, line int)

func (SingleLineComment) Position

func (p SingleLineComment) Position() (line int, column int, offset int)

func (SingleLineComment) Raw

func (r SingleLineComment) Raw() string

func (*SingleLineComment) SetDocument added in v1.6.0

func (p *SingleLineComment) SetDocument(document *Document)

func (*SingleLineComment) SetPosition

func (p *SingleLineComment) SetPosition(line int, column int, offset int)

func (*SingleLineComment) SetRaw

func (r *SingleLineComment) SetRaw(s string)

func (SingleLineComment) Type

type SourceBlock

type SourceBlock struct {
	Delimiter Delimiter
	AttributeList
	Elements
	// contains filtered or unexported fields
}

func NewSourceBlock

func NewSourceBlock(delimiter Delimiter) *SourceBlock

func (*SourceBlock) Clone added in v1.6.0

func (a *SourceBlock) Clone() Element

func (SourceBlock) Document added in v1.6.0

func (p SourceBlock) Document() *Document

func (*SourceBlock) Equals

func (a *SourceBlock) Equals(o Element) bool

func (SourceBlock) Origin

func (p SourceBlock) Origin() (path string, line int)

func (SourceBlock) Position

func (p SourceBlock) Position() (line int, column int, offset int)

func (SourceBlock) Raw

func (r SourceBlock) Raw() string

func (*SourceBlock) SetDocument added in v1.6.0

func (p *SourceBlock) SetDocument(document *Document)

func (*SourceBlock) SetPosition

func (p *SourceBlock) SetPosition(line int, column int, offset int)

func (*SourceBlock) SetRaw

func (r *SourceBlock) SetRaw(s string)

func (SourceBlock) Type

func (SourceBlock) Type() ElementType

type SpecialCharacter

type SpecialCharacter struct {
	Character string
}

func NewSpecialCharacter

func NewSpecialCharacter(character string) SpecialCharacter

func (SpecialCharacter) Clone added in v1.6.0

func (s SpecialCharacter) Clone() Element

func (SpecialCharacter) Equals

func (s SpecialCharacter) Equals(e Element) bool

func (SpecialCharacter) Type

type StemBlock

type StemBlock struct {
	AttributeList

	Delimiter Delimiter
	LineList
	// contains filtered or unexported fields
}

func NewStemBlock

func NewStemBlock(delimiter Delimiter) *StemBlock

func (*StemBlock) Clone added in v1.6.0

func (a *StemBlock) Clone() Element

func (StemBlock) Document added in v1.6.0

func (p StemBlock) Document() *Document

func (*StemBlock) Equals

func (a *StemBlock) Equals(o Element) bool

func (StemBlock) Origin

func (p StemBlock) Origin() (path string, line int)

func (StemBlock) Position

func (p StemBlock) Position() (line int, column int, offset int)

func (StemBlock) Raw

func (r StemBlock) Raw() string

func (*StemBlock) SetDocument added in v1.6.0

func (p *StemBlock) SetDocument(document *Document)

func (*StemBlock) SetPosition

func (p *StemBlock) SetPosition(line int, column int, offset int)

func (*StemBlock) SetRaw

func (r *StemBlock) SetRaw(s string)

func (StemBlock) Type

func (StemBlock) Type() ElementType

type String

type String struct {
	Value string
}

func JoinStrings

func JoinStrings(ss []*String) *String

func NewString

func NewString(s string) *String

func (*String) Clone added in v1.6.0

func (s *String) Clone() Element

func (*String) Equals

func (s *String) Equals(e Element) bool

func (String) Type

func (String) Type() ElementType

type Subscript

type Subscript struct {
	AttributeList
	Elements
	// contains filtered or unexported fields
}

func NewSubscript

func NewSubscript() *Subscript

func (*Subscript) Clone added in v1.6.0

func (a *Subscript) Clone() Element

func (Subscript) Document added in v1.6.0

func (p Subscript) Document() *Document

func (*Subscript) Equals

func (a *Subscript) Equals(o Element) bool

func (Subscript) Origin

func (p Subscript) Origin() (path string, line int)

func (Subscript) Position

func (p Subscript) Position() (line int, column int, offset int)

func (Subscript) Raw

func (r Subscript) Raw() string

func (*Subscript) SetDocument added in v1.6.0

func (p *Subscript) SetDocument(document *Document)

func (*Subscript) SetPosition

func (p *Subscript) SetPosition(line int, column int, offset int)

func (*Subscript) SetRaw

func (r *Subscript) SetRaw(s string)

func (Subscript) Type

func (Subscript) Type() ElementType

type Superscript

type Superscript struct {
	AttributeList
	Elements
	// contains filtered or unexported fields
}

func NewSuperscript

func NewSuperscript() *Superscript

func (*Superscript) Clone added in v1.6.0

func (a *Superscript) Clone() Element

func (Superscript) Document added in v1.6.0

func (p Superscript) Document() *Document

func (*Superscript) Equals

func (a *Superscript) Equals(o Element) bool

func (Superscript) Origin

func (p Superscript) Origin() (path string, line int)

func (Superscript) Position

func (p Superscript) Position() (line int, column int, offset int)

func (Superscript) Raw

func (r Superscript) Raw() string

func (*Superscript) SetDocument added in v1.6.0

func (p *Superscript) SetDocument(document *Document)

func (*Superscript) SetPosition

func (p *Superscript) SetPosition(line int, column int, offset int)

func (*Superscript) SetRaw

func (r *Superscript) SetRaw(s string)

func (Superscript) Type

func (Superscript) Type() ElementType

type Table

type Table struct {
	AttributeList

	ColumnCount int
	Elements
	// contains filtered or unexported fields
}

func (*Table) Clone added in v1.6.0

func (t *Table) Clone() Element

func (Table) Document added in v1.6.0

func (p Table) Document() *Document

func (*Table) Equals

func (t *Table) Equals(e Element) bool

func (Table) Origin

func (p Table) Origin() (path string, line int)

func (Table) Position

func (p Table) Position() (line int, column int, offset int)

func (*Table) SetDocument added in v1.6.0

func (p *Table) SetDocument(document *Document)

func (*Table) SetPosition

func (p *Table) SetPosition(line int, column int, offset int)

func (*Table) TableRows

func (t *Table) TableRows(reader Reader) []*TableRow

func (*Table) Type

func (*Table) Type() ElementType

type TableCell

type TableCell struct {
	Format *TableCellFormat
	Parent *TableRow

	Elements

	Blank bool
	// contains filtered or unexported fields
}

func NewTableCell

func NewTableCell(format *TableCellFormat) *TableCell

func (*TableCell) Clone added in v1.6.0

func (tc *TableCell) Clone() Element

func (TableCell) Document added in v1.6.0

func (p TableCell) Document() *Document

func (*TableCell) Equals

func (tc *TableCell) Equals(e Element) bool

func (TableCell) Origin

func (p TableCell) Origin() (path string, line int)

func (TableCell) Position

func (p TableCell) Position() (line int, column int, offset int)

func (*TableCell) SetDocument added in v1.6.0

func (p *TableCell) SetDocument(document *Document)

func (*TableCell) SetPosition

func (p *TableCell) SetPosition(line int, column int, offset int)

func (TableCell) Type

func (TableCell) Type() ElementType

type TableCellFormat

type TableCellFormat struct {
	Multiplier      Optional[int]
	Span            TableCellSpan
	HorizontalAlign Optional[TableCellHorizontalAlign]
	VerticalAlign   Optional[TableCellVerticalAlign]
	Style           Optional[TableCellStyle]
}

func NewTableCellFormat

func NewTableCellFormat() *TableCellFormat

func (*TableCellFormat) AsciiDocString

func (tcf *TableCellFormat) AsciiDocString() string

func (*TableCellFormat) Clone added in v1.6.0

func (tcf *TableCellFormat) Clone() *TableCellFormat

func (*TableCellFormat) Equals

func (tcf *TableCellFormat) Equals(otcf *TableCellFormat) bool

type TableCellHorizontalAlign

type TableCellHorizontalAlign uint8
const (
	TableCellHorizontalAlignLeft TableCellHorizontalAlign = iota
	TableCellHorizontalAlignRight
	TableCellHorizontalAlignCenter
)

func (TableCellHorizontalAlign) AsciiDocString

func (ha TableCellHorizontalAlign) AsciiDocString() string

func (TableCellHorizontalAlign) String

func (ha TableCellHorizontalAlign) String() string

type TableCellSpan

type TableCellSpan struct {
	Column Optional[int]
	Row    Optional[int]
}

func NewTableCellSpan

func NewTableCellSpan() TableCellSpan

type TableCellStyle

type TableCellStyle uint8
const (
	TableCellStyleDefault TableCellStyle = iota
	TableCellStyleAsciiDoc
	TableCellStyleEmphasis
	TableCellStyleHeader
	TableCellStyleLiteral
	TableCellStyleMonospace
	TableCellStyleStrong
)

func (TableCellStyle) AsciiDocString

func (ha TableCellStyle) AsciiDocString() string

func (TableCellStyle) String

func (ha TableCellStyle) String() string

type TableCellVerticalAlign

type TableCellVerticalAlign uint8
const (
	TableCellVerticalAlignTop TableCellVerticalAlign = iota
	TableCellVerticalAlignBottom
	TableCellVerticalAlignMiddle
)

func (TableCellVerticalAlign) AsciiDocString

func (ha TableCellVerticalAlign) AsciiDocString() string

func (TableCellVerticalAlign) String

func (ha TableCellVerticalAlign) String() string

type TableCells

type TableCells []*TableCell

func (*TableCells) Append

func (trs *TableCells) Append(e Element) error

func (TableCells) Children added in v1.5.41

func (trs TableCells) Children() Elements

func (*TableCells) SetChildren added in v1.5.41

func (trs *TableCells) SetChildren(els Elements) error

type TableColumn

type TableColumn struct {
	Multiplier      Optional[int]
	HorizontalAlign Optional[TableCellHorizontalAlign]
	VerticalAlign   Optional[TableCellVerticalAlign]
	Width           Optional[TableColumnWidth]
	Percentage      Optional[int]
	Style           Optional[TableCellStyle]
}

func NewTableColumn

func NewTableColumn() *TableColumn

func (*TableColumn) Clone added in v1.6.0

func (tcf *TableColumn) Clone() *TableColumn

func (*TableColumn) Equals

func (tcf *TableColumn) Equals(otcf *TableColumn) bool

func (*TableColumn) IsDefault

func (tcf *TableColumn) IsDefault() bool

type TableColumnWidth

type TableColumnWidth int
var TableColumnWidthAuto TableColumnWidth = -1

func (TableColumnWidth) AsciiDocString

func (tcv TableColumnWidth) AsciiDocString() string

func (TableColumnWidth) String

func (tcv TableColumnWidth) String() string

type TableColumnsAttribute

type TableColumnsAttribute struct {
	Columns []*TableColumn
	// contains filtered or unexported fields
}

func (*TableColumnsAttribute) AsciiDocString

func (tca *TableColumnsAttribute) AsciiDocString() string

func (TableColumnsAttribute) AttributeType

func (TableColumnsAttribute) AttributeType() AttributeType

func (*TableColumnsAttribute) Clone added in v1.6.0

func (ta *TableColumnsAttribute) Clone() Attribute

func (*TableColumnsAttribute) Equals

func (tca *TableColumnsAttribute) Equals(a Attribute) bool

func (TableColumnsAttribute) QuoteType

func (*TableColumnsAttribute) SetValue

func (na *TableColumnsAttribute) SetValue(v any) error

func (TableColumnsAttribute) Type

func (ae TableColumnsAttribute) Type() ElementType

func (*TableColumnsAttribute) Value

func (tca *TableColumnsAttribute) Value() any

type TableRow

type TableRow struct {
	Parent *Table

	Elements
	// contains filtered or unexported fields
}

func (*TableRow) Cell

func (tr *TableRow) Cell(i int) *TableCell

func (*TableRow) Clone added in v1.6.0

func (tr *TableRow) Clone() Element

func (TableRow) Document added in v1.6.0

func (p TableRow) Document() *Document

func (*TableRow) Equals

func (tr *TableRow) Equals(e Element) bool

func (TableRow) Origin

func (p TableRow) Origin() (path string, line int)

func (TableRow) Position

func (p TableRow) Position() (line int, column int, offset int)

func (*TableRow) SetDocument added in v1.6.0

func (p *TableRow) SetDocument(document *Document)

func (*TableRow) SetPosition

func (p *TableRow) SetPosition(line int, column int, offset int)

func (*TableRow) TableCells

func (tr *TableRow) TableCells() []*TableCell

func (TableRow) Type

func (TableRow) Type() ElementType

type TableRows

type TableRows []*TableRow

func (*TableRows) Append

func (trs *TableRows) Append(e Element) error

func (TableRows) Children added in v1.5.41

func (trs TableRows) Children() Elements

func (*TableRows) SetChildren added in v1.5.41

func (trs *TableRows) SetChildren(els Elements) error

type TextFormat

type TextFormat uint8
const (
	TextFormatNone TextFormat = iota
	TextFormatBold
	TextFormatItalic
	TextFormatMonospace
	TextFormatMarked
)

type ThematicBreak

type ThematicBreak struct {
	AttributeList
	// contains filtered or unexported fields
}

func NewThematicBreak

func NewThematicBreak() *ThematicBreak

func (*ThematicBreak) Clone added in v1.6.0

func (tb *ThematicBreak) Clone() Element

func (ThematicBreak) Document added in v1.6.0

func (p ThematicBreak) Document() *Document

func (*ThematicBreak) Equals

func (tb *ThematicBreak) Equals(e Element) bool

func (ThematicBreak) Origin

func (p ThematicBreak) Origin() (path string, line int)

func (ThematicBreak) Position

func (p ThematicBreak) Position() (line int, column int, offset int)

func (ThematicBreak) Raw

func (r ThematicBreak) Raw() string

func (*ThematicBreak) SetDocument added in v1.6.0

func (p *ThematicBreak) SetDocument(document *Document)

func (*ThematicBreak) SetPosition

func (p *ThematicBreak) SetPosition(line int, column int, offset int)

func (*ThematicBreak) SetRaw

func (r *ThematicBreak) SetRaw(s string)

func (ThematicBreak) Type

func (ThematicBreak) Type() ElementType

type TitleAttribute

type TitleAttribute struct {
	Val Elements
	// contains filtered or unexported fields
}

func (*TitleAttribute) AsciiDocString

func (ta *TitleAttribute) AsciiDocString() string

func (TitleAttribute) AttributeType

func (TitleAttribute) AttributeType() AttributeType

func (*TitleAttribute) Children added in v1.5.41

func (ta *TitleAttribute) Children() Elements

func (*TitleAttribute) Clone added in v1.6.0

func (ta *TitleAttribute) Clone() Attribute

func (*TitleAttribute) Equals

func (ta *TitleAttribute) Equals(oa Attribute) bool

func (TitleAttribute) QuoteType

func (TitleAttribute) QuoteType() AttributeQuoteType

func (*TitleAttribute) SetChildren added in v1.5.41

func (ta *TitleAttribute) SetChildren(els Elements)

func (*TitleAttribute) SetValue

func (ta *TitleAttribute) SetValue(v any) error

func (TitleAttribute) Type

func (ae TitleAttribute) Type() ElementType

func (*TitleAttribute) Value

func (ta *TitleAttribute) Value() any

type Traverser added in v1.5.41

type Traverser interface {
	Traverse(parent ParentElement) iter.Seq2[ParentElement, Parent]
}

type URL

type URL struct {
	Scheme string
	Path   Elements
	// contains filtered or unexported fields
}

func NewURL

func NewURL(scheme string, path Elements) URL

func (URL) Clone added in v1.6.0

func (u URL) Clone() Element

func (URL) Document added in v1.6.0

func (p URL) Document() *Document

func (URL) Equals

func (u URL) Equals(o Element) bool

func (URL) Origin

func (p URL) Origin() (path string, line int)

func (URL) Position

func (p URL) Position() (line int, column int, offset int)

func (URL) Raw

func (r URL) Raw() string

func (*URL) SetDocument added in v1.6.0

func (p *URL) SetDocument(document *Document)

func (*URL) SetPosition

func (p *URL) SetPosition(line int, column int, offset int)

func (*URL) SetRaw

func (r *URL) SetRaw(s string)

func (URL) Type

func (URL) Type() ElementType

type UnorderedList

type UnorderedList struct {
	Elements
	AttributeList
	// contains filtered or unexported fields
}

func (UnorderedList) Document added in v1.6.0

func (p UnorderedList) Document() *Document

func (UnorderedList) Origin

func (p UnorderedList) Origin() (path string, line int)

func (UnorderedList) Position

func (p UnorderedList) Position() (line int, column int, offset int)

func (UnorderedList) Raw

func (r UnorderedList) Raw() string

func (*UnorderedList) SetDocument added in v1.6.0

func (p *UnorderedList) SetDocument(document *Document)

func (*UnorderedList) SetPosition

func (p *UnorderedList) SetPosition(line int, column int, offset int)

func (*UnorderedList) SetRaw

func (r *UnorderedList) SetRaw(s string)

func (UnorderedList) Type

func (UnorderedList) Type() ElementType

type UnorderedListItem

type UnorderedListItem struct {
	Elements
	AttributeList

	Indent    string
	Marker    string
	Checklist Checklist
	// contains filtered or unexported fields
}

func NewUnorderedListItem

func NewUnorderedListItem(indent string, marker string, checklist Checklist) *UnorderedListItem

func (*UnorderedListItem) Clone added in v1.6.0

func (uoli *UnorderedListItem) Clone() Element

func (UnorderedListItem) Document added in v1.6.0

func (p UnorderedListItem) Document() *Document

func (*UnorderedListItem) Equals

func (uoli *UnorderedListItem) Equals(o Element) bool

func (UnorderedListItem) Origin

func (p UnorderedListItem) Origin() (path string, line int)

func (UnorderedListItem) Position

func (p UnorderedListItem) Position() (line int, column int, offset int)

func (UnorderedListItem) Raw

func (r UnorderedListItem) Raw() string

func (*UnorderedListItem) SetDocument added in v1.6.0

func (p *UnorderedListItem) SetDocument(document *Document)

func (*UnorderedListItem) SetPosition

func (p *UnorderedListItem) SetPosition(line int, column int, offset int)

func (*UnorderedListItem) SetRaw

func (r *UnorderedListItem) SetRaw(s string)

func (UnorderedListItem) Type

type UserAttributeReference

type UserAttributeReference struct {
	Value string
	// contains filtered or unexported fields
}

func (UserAttributeReference) Clone added in v1.6.0

func (uaf UserAttributeReference) Clone() Element

func (UserAttributeReference) Document added in v1.6.0

func (p UserAttributeReference) Document() *Document

func (*UserAttributeReference) Equals

func (uar *UserAttributeReference) Equals(e Element) bool

func (*UserAttributeReference) Name

func (uar *UserAttributeReference) Name() string

func (UserAttributeReference) Origin

func (p UserAttributeReference) Origin() (path string, line int)

func (UserAttributeReference) Position

func (p UserAttributeReference) Position() (line int, column int, offset int)

func (UserAttributeReference) Raw

func (r UserAttributeReference) Raw() string

func (*UserAttributeReference) SetDocument added in v1.6.0

func (p *UserAttributeReference) SetDocument(document *Document)

func (*UserAttributeReference) SetPosition

func (p *UserAttributeReference) SetPosition(line int, column int, offset int)

func (*UserAttributeReference) SetRaw

func (r *UserAttributeReference) SetRaw(s string)

func (UserAttributeReference) Type

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

func NewWriter

func NewWriter(set Elements) *Writer

func (*Writer) Set

func (r *Writer) Set() Elements

func (*Writer) Write

func (r *Writer) Write(el Element)

func (*Writer) WriteSet

func (r *Writer) WriteSet(el Elements)

Directories

Path Synopsis
Package parse provides readers for parsing Asciidoc
Package parse provides readers for parsing Asciidoc
Package render provides a pipeline for rendering parsed Asciidoc back into text Asciidoc
Package render provides a pipeline for rendering parsed Asciidoc back into text Asciidoc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL