Documentation
¶
Overview ¶
Package asciidoc provides an object model for Asciidoc files
Index ¶
- func AttributeAsciiDocString(val Elements) string
- func Describe(el Element) string
- func DescribeSet(el Elements) string
- func StringValue(el Element) string
- func ValueToString(e any) string
- type Admonition
- type AdmonitionType
- type AlchemyEscape
- func (ae *AlchemyEscape) Clone() Element
- func (p AlchemyEscape) Document() *Document
- func (ae *AlchemyEscape) Equals(e Element) bool
- func (p AlchemyEscape) Origin() (path string, line int)
- func (p AlchemyEscape) Position() (line int, column int, offset int)
- func (r AlchemyEscape) Raw() string
- func (p *AlchemyEscape) SetDocument(document *Document)
- func (p *AlchemyEscape) SetPosition(line int, column int, offset int)
- func (r *AlchemyEscape) SetRaw(s string)
- func (AlchemyEscape) Type() ElementType
- type Anchor
- func (Anchor) AttributeType() AttributeType
- func (a *Anchor) Clone() Element
- func (p Anchor) Document() *Document
- func (a *Anchor) Equals(o Element) bool
- func (p Anchor) Origin() (path string, line int)
- func (p Anchor) Position() (line int, column int, offset int)
- func (Anchor) QuoteType() AttributeQuoteType
- func (p *Anchor) SetDocument(document *Document)
- func (p *Anchor) SetPosition(line int, column int, offset int)
- func (aa *Anchor) Traverse(parent Parent) iter.Seq2[Parent, Parent]
- func (Anchor) Type() ElementType
- type AnchorAttribute
- func (aa *AnchorAttribute) AsciiDocString() string
- func (AnchorAttribute) AttributeType() AttributeType
- func (aa *AnchorAttribute) Clone() Attribute
- func (aa *AnchorAttribute) Equals(o Attribute) bool
- func (c AnchorAttribute) Parent() Element
- func (AnchorAttribute) QuoteType() AttributeQuoteType
- func (c *AnchorAttribute) SetParent(e Element)
- func (aa *AnchorAttribute) SetValue(v any) error
- func (aa *AnchorAttribute) Traverse(parent Parent) iter.Seq2[Parent, Parent]
- func (ae AnchorAttribute) Type() ElementType
- func (aa *AnchorAttribute) Value() any
- type Attributable
- type AttributableElement
- type Attribute
- type AttributeEntry
- func (uar *AttributeEntry) Clone() Element
- func (p AttributeEntry) Document() *Document
- func (uar *AttributeEntry) Equals(e Element) bool
- func (p AttributeEntry) Origin() (path string, line int)
- func (p AttributeEntry) Position() (line int, column int, offset int)
- func (r AttributeEntry) Raw() string
- func (p *AttributeEntry) SetDocument(document *Document)
- func (p *AttributeEntry) SetPosition(line int, column int, offset int)
- func (r *AttributeEntry) SetRaw(s string)
- func (AttributeEntry) Type() ElementType
- type AttributeList
- func (a *AttributeList) AppendAttribute(as ...Attribute)
- func (a AttributeList) Attributes() []Attribute
- func (a AttributeList) Clone() (oa AttributeList)
- func (al *AttributeList) DeleteAttribute(name AttributeName)
- func (al AttributeList) Equals(oal AttributeList) bool
- func (a *AttributeList) GetAttributeByName(name AttributeName) *NamedAttribute
- func (al *AttributeList) ReadAttributes(el Element, attributes ...Attribute) (err error)
- func (al AttributeList) SetAttribute(name AttributeName, value Elements)
- func (a *AttributeList) SetAttributes(as ...Attribute)
- type AttributeName
- type AttributeNames
- type AttributeQuoteType
- type AttributeReference
- type AttributeReset
- func (uar *AttributeReset) Clone() Element
- func (p AttributeReset) Document() *Document
- func (uar *AttributeReset) Equals(e Element) bool
- func (p AttributeReset) Origin() (path string, line int)
- func (p AttributeReset) Position() (line int, column int, offset int)
- func (r AttributeReset) Raw() string
- func (p *AttributeReset) SetDocument(document *Document)
- func (p *AttributeReset) SetPosition(line int, column int, offset int)
- func (r *AttributeReset) SetRaw(s string)
- func (AttributeReset) Type() ElementType
- type AttributeType
- type BlockAttributes
- type BlockElement
- type BlockImage
- func (bi *BlockImage) Clone() Element
- func (p BlockImage) Document() *Document
- func (bi *BlockImage) Equals(o Element) bool
- func (p BlockImage) Origin() (path string, line int)
- func (p BlockImage) Position() (line int, column int, offset int)
- func (r BlockImage) Raw() string
- func (p *BlockImage) SetDocument(document *Document)
- func (p *BlockImage) SetPosition(line int, column int, offset int)
- func (r *BlockImage) SetRaw(s string)
- func (BlockImage) Type() ElementType
- type Bold
- func (b *Bold) Clone() Element
- func (p Bold) Document() *Document
- func (b *Bold) Equals(e Element) bool
- func (p Bold) Origin() (path string, line int)
- func (p Bold) Position() (line int, column int, offset int)
- func (r Bold) Raw() string
- func (p *Bold) SetDocument(document *Document)
- func (p *Bold) SetPosition(line int, column int, offset int)
- func (r *Bold) SetRaw(s string)
- func (Bold) TextFormat() TextFormat
- func (b *Bold) Traverse(parent ParentElement) iter.Seq2[ParentElement, Parent]
- func (Bold) Type() ElementType
- type CharacterReplacementReference
- func (crr CharacterReplacementReference) Clone() Element
- func (crr *CharacterReplacementReference) Equals(e Element) bool
- func (crr *CharacterReplacementReference) Name() string
- func (crr CharacterReplacementReference) ReplacementValue() string
- func (CharacterReplacementReference) Type() ElementType
- type Checklist
- type ChildElement
- type ConditionalContext
- type ConditionalOperator
- type ConditionalUnion
- type Counter
- func (c *Counter) Clone() Element
- func (p Counter) Document() *Document
- func (c *Counter) Equals(o Element) bool
- func (p Counter) Origin() (path string, line int)
- func (p Counter) Position() (line int, column int, offset int)
- func (r Counter) Raw() string
- func (p *Counter) SetDocument(document *Document)
- func (p *Counter) SetPosition(line int, column int, offset int)
- func (r *Counter) SetRaw(s string)
- func (Counter) Type() ElementType
- type CounterState
- type CounterType
- type CrossReference
- func (cr *CrossReference) Clone() Element
- func (p CrossReference) Document() *Document
- func (cr *CrossReference) Equals(o Element) bool
- func (p CrossReference) Origin() (path string, line int)
- func (p CrossReference) Position() (line int, column int, offset int)
- func (r CrossReference) Raw() string
- func (p *CrossReference) SetDocument(document *Document)
- func (p *CrossReference) SetPosition(line int, column int, offset int)
- func (r *CrossReference) SetRaw(s string)
- func (cr *CrossReference) Traverse(parent ParentElement) iter.Seq2[ParentElement, Parent]
- func (CrossReference) Type() ElementType
- type CrossReferenceFormat
- type DelimitedBlockType
- type Delimiter
- func (p Delimiter) Document() *Document
- func (d Delimiter) Equals(od Delimiter) bool
- func (p Delimiter) Origin() (path string, line int)
- func (p Delimiter) Position() (line int, column int, offset int)
- func (r Delimiter) Raw() string
- func (p *Delimiter) SetDocument(document *Document)
- func (p *Delimiter) SetPosition(line int, column int, offset int)
- func (r *Delimiter) SetRaw(s string)
- type DescriptionListItem
- func (dli *DescriptionListItem) Clone() Element
- func (p DescriptionListItem) Document() *Document
- func (dli *DescriptionListItem) Equals(o Element) bool
- func (p DescriptionListItem) Origin() (path string, line int)
- func (p DescriptionListItem) Position() (line int, column int, offset int)
- func (r DescriptionListItem) Raw() string
- func (p *DescriptionListItem) SetDocument(document *Document)
- func (p *DescriptionListItem) SetPosition(line int, column int, offset int)
- func (r *DescriptionListItem) SetRaw(s string)
- func (DescriptionListItem) Type() ElementType
- type Document
- type DocumentCrossReference
- func (dcr *DocumentCrossReference) Clone() Element
- func (p DocumentCrossReference) Document() *Document
- func (dcr *DocumentCrossReference) Equals(o Element) bool
- func (p DocumentCrossReference) Origin() (path string, line int)
- func (p DocumentCrossReference) Position() (line int, column int, offset int)
- func (r DocumentCrossReference) Raw() string
- func (p *DocumentCrossReference) SetDocument(document *Document)
- func (p *DocumentCrossReference) SetPosition(line int, column int, offset int)
- func (r *DocumentCrossReference) SetRaw(s string)
- func (DocumentCrossReference) Type() ElementType
- type DocumentElement
- type DoubleBold
- func (db *DoubleBold) Clone() Element
- func (p DoubleBold) Document() *Document
- func (db *DoubleBold) Equals(e Element) bool
- func (p DoubleBold) Origin() (path string, line int)
- func (p DoubleBold) Position() (line int, column int, offset int)
- func (r DoubleBold) Raw() string
- func (p *DoubleBold) SetDocument(document *Document)
- func (p *DoubleBold) SetPosition(line int, column int, offset int)
- func (r *DoubleBold) SetRaw(s string)
- func (DoubleBold) TextFormat() TextFormat
- func (db *DoubleBold) Traverse(parent ParentElement) iter.Seq2[ParentElement, Parent]
- func (DoubleBold) Type() ElementType
- type DoubleItalic
- func (di *DoubleItalic) Clone() Element
- func (p DoubleItalic) Document() *Document
- func (di *DoubleItalic) Equals(o Element) bool
- func (p DoubleItalic) Origin() (path string, line int)
- func (p DoubleItalic) Position() (line int, column int, offset int)
- func (r DoubleItalic) Raw() string
- func (p *DoubleItalic) SetDocument(document *Document)
- func (p *DoubleItalic) SetPosition(line int, column int, offset int)
- func (r *DoubleItalic) SetRaw(s string)
- func (DoubleItalic) TextFormat() TextFormat
- func (DoubleItalic) Type() ElementType
- type DoubleMarked
- func (dm *DoubleMarked) Clone() Element
- func (p DoubleMarked) Document() *Document
- func (dm *DoubleMarked) Equals(e Element) bool
- func (p DoubleMarked) Origin() (path string, line int)
- func (p DoubleMarked) Position() (line int, column int, offset int)
- func (r DoubleMarked) Raw() string
- func (p *DoubleMarked) SetDocument(document *Document)
- func (p *DoubleMarked) SetPosition(line int, column int, offset int)
- func (r *DoubleMarked) SetRaw(s string)
- func (DoubleMarked) TextFormat() TextFormat
- func (DoubleMarked) Type() ElementType
- type DoubleMonospace
- func (dm *DoubleMonospace) Clone() Element
- func (p DoubleMonospace) Document() *Document
- func (dm *DoubleMonospace) Equals(e Element) bool
- func (p DoubleMonospace) Origin() (path string, line int)
- func (p DoubleMonospace) Position() (line int, column int, offset int)
- func (r DoubleMonospace) Raw() string
- func (p *DoubleMonospace) SetDocument(document *Document)
- func (p *DoubleMonospace) SetPosition(line int, column int, offset int)
- func (r *DoubleMonospace) SetRaw(s string)
- func (DoubleMonospace) TextFormat() TextFormat
- func (DoubleMonospace) Type() ElementType
- type Element
- type ElementIterator
- type ElementList
- type ElementType
- type Elements
- type Email
- func (a Email) Clone() Element
- func (p Email) Document() *Document
- func (a Email) Equals(o Element) bool
- func (p Email) Origin() (path string, line int)
- func (p Email) Position() (line int, column int, offset int)
- func (r Email) Raw() string
- func (p *Email) SetDocument(document *Document)
- func (p *Email) SetPosition(line int, column int, offset int)
- func (r *Email) SetRaw(s string)
- func (Email) Type() ElementType
- type EmptyLine
- func (el *EmptyLine) Clone() Element
- func (p EmptyLine) Document() *Document
- func (el *EmptyLine) Equals(o Element) bool
- func (p EmptyLine) Origin() (path string, line int)
- func (p EmptyLine) Position() (line int, column int, offset int)
- func (p *EmptyLine) SetDocument(document *Document)
- func (p *EmptyLine) SetPosition(line int, column int, offset int)
- func (*EmptyLine) Type() ElementType
- type EndIf
- func (ei *EndIf) Clone() Element
- func (p EndIf) Document() *Document
- func (ei *EndIf) Equals(o Element) bool
- func (p EndIf) Origin() (path string, line int)
- func (p EndIf) Position() (line int, column int, offset int)
- func (r EndIf) Raw() string
- func (p *EndIf) SetDocument(document *Document)
- func (p *EndIf) SetPosition(line int, column int, offset int)
- func (r *EndIf) SetRaw(s string)
- func (EndIf) Type() ElementType
- type ExampleBlock
- func (eb *ExampleBlock) Clone() Element
- func (p ExampleBlock) Document() *Document
- func (eb *ExampleBlock) Equals(o Element) bool
- func (p ExampleBlock) Origin() (path string, line int)
- func (p ExampleBlock) Position() (line int, column int, offset int)
- func (r ExampleBlock) Raw() string
- func (p *ExampleBlock) SetDocument(document *Document)
- func (p *ExampleBlock) SetPosition(line int, column int, offset int)
- func (r *ExampleBlock) SetRaw(s string)
- func (ExampleBlock) Type() ElementType
- type FencedBlock
- func (fb *FencedBlock) Clone() Element
- func (p FencedBlock) Document() *Document
- func (fb *FencedBlock) Equals(o Element) bool
- func (p FencedBlock) Origin() (path string, line int)
- func (p FencedBlock) Position() (line int, column int, offset int)
- func (r FencedBlock) Raw() string
- func (p *FencedBlock) SetDocument(document *Document)
- func (p *FencedBlock) SetPosition(line int, column int, offset int)
- func (r *FencedBlock) SetRaw(s string)
- func (FencedBlock) Type() ElementType
- type FencedDelimiter
- func (p FencedDelimiter) Document() *Document
- func (fd FencedDelimiter) Equals(ofd FencedDelimiter) bool
- func (p FencedDelimiter) Origin() (path string, line int)
- func (p FencedDelimiter) Position() (line int, column int, offset int)
- func (r FencedDelimiter) Raw() string
- func (p *FencedDelimiter) SetDocument(document *Document)
- func (p *FencedDelimiter) SetPosition(line int, column int, offset int)
- func (r *FencedDelimiter) SetRaw(s string)
- type FileInclude
- func (fi *FileInclude) Clone() Element
- func (p FileInclude) Document() *Document
- func (fi *FileInclude) Equals(o Element) bool
- func (p FileInclude) Origin() (path string, line int)
- func (p FileInclude) Position() (line int, column int, offset int)
- func (r FileInclude) Raw() string
- func (p *FileInclude) SetDocument(document *Document)
- func (p *FileInclude) SetPosition(line int, column int, offset int)
- func (r *FileInclude) SetRaw(s string)
- func (FileInclude) Type() ElementType
- type Footnote
- func (p Footnote) Document() *Document
- func (p Footnote) Origin() (path string, line int)
- func (p Footnote) Position() (line int, column int, offset int)
- func (r Footnote) Raw() string
- func (p *Footnote) SetDocument(document *Document)
- func (p *Footnote) SetPosition(line int, column int, offset int)
- func (r *Footnote) SetRaw(s string)
- type FormattedTextElement
- type HasChild
- type HasLines
- type HasParent
- type HasPosition
- type HasRaw
- type Icon
- func (i *Icon) Clone() Element
- func (p Icon) Document() *Document
- func (i *Icon) Equals(o Element) bool
- func (p Icon) Origin() (path string, line int)
- func (p Icon) Position() (line int, column int, offset int)
- func (r Icon) Raw() string
- func (p *Icon) SetDocument(document *Document)
- func (p *Icon) SetPosition(line int, column int, offset int)
- func (r *Icon) SetRaw(s string)
- func (Icon) Type() ElementType
- type IfDef
- func (a *IfDef) Clone() Element
- func (p IfDef) Document() *Document
- func (a *IfDef) Equals(o Element) bool
- func (a *IfDef) Eval(cc ConditionalContext) bool
- func (p IfDef) Origin() (path string, line int)
- func (p IfDef) Position() (line int, column int, offset int)
- func (r IfDef) Raw() string
- func (p *IfDef) SetDocument(document *Document)
- func (p *IfDef) SetPosition(line int, column int, offset int)
- func (r *IfDef) SetRaw(s string)
- func (IfDef) Type() ElementType
- type IfDefBlock
- func (idb *IfDefBlock) Clone() Element
- func (p IfDefBlock) Document() *Document
- func (idb *IfDefBlock) Equals(o Element) bool
- func (idb *IfDefBlock) Eval(cc ConditionalContext) bool
- func (p IfDefBlock) Origin() (path string, line int)
- func (p IfDefBlock) Position() (line int, column int, offset int)
- func (r IfDefBlock) Raw() string
- func (p *IfDefBlock) SetDocument(document *Document)
- func (p *IfDefBlock) SetPosition(line int, column int, offset int)
- func (r *IfDefBlock) SetRaw(s string)
- func (IfDefBlock) Type() ElementType
- type IfEval
- func (ie *IfEval) Clone() Element
- func (p IfEval) Document() *Document
- func (ie *IfEval) Equals(o Element) bool
- func (ie *IfEval) Eval(cc ConditionalContext) (bool, error)
- func (p IfEval) Origin() (path string, line int)
- func (p IfEval) Position() (line int, column int, offset int)
- func (r IfEval) Raw() string
- func (p *IfEval) SetDocument(document *Document)
- func (p *IfEval) SetPosition(line int, column int, offset int)
- func (r *IfEval) SetRaw(s string)
- func (IfEval) Type() ElementType
- type IfEvalBlock
- func (ieb *IfEvalBlock) Clone() Element
- func (p IfEvalBlock) Document() *Document
- func (ieb *IfEvalBlock) Equals(o Element) bool
- func (ieb *IfEvalBlock) Eval(cc ConditionalContext) (bool, error)
- func (p IfEvalBlock) Origin() (path string, line int)
- func (p IfEvalBlock) Position() (line int, column int, offset int)
- func (r IfEvalBlock) Raw() string
- func (p *IfEvalBlock) SetDocument(document *Document)
- func (p *IfEvalBlock) SetPosition(line int, column int, offset int)
- func (r *IfEvalBlock) SetRaw(s string)
- func (IfEvalBlock) Type() ElementType
- type IfEvalValue
- type IfNDef
- func (id *IfNDef) Clone() Element
- func (p IfNDef) Document() *Document
- func (id *IfNDef) Equals(o Element) bool
- func (id *IfNDef) Eval(cc ConditionalContext) bool
- func (p IfNDef) Origin() (path string, line int)
- func (p IfNDef) Position() (line int, column int, offset int)
- func (r IfNDef) Raw() string
- func (p *IfNDef) SetDocument(document *Document)
- func (p *IfNDef) SetPosition(line int, column int, offset int)
- func (r *IfNDef) SetRaw(s string)
- func (IfNDef) Type() ElementType
- type IfNDefBlock
- func (indb *IfNDefBlock) Clone() Element
- func (p IfNDefBlock) Document() *Document
- func (indb *IfNDefBlock) Equals(o Element) bool
- func (indb *IfNDefBlock) Eval(cc ConditionalContext) bool
- func (p IfNDefBlock) Origin() (path string, line int)
- func (p IfNDefBlock) Position() (line int, column int, offset int)
- func (r IfNDefBlock) Raw() string
- func (p *IfNDefBlock) SetDocument(document *Document)
- func (p *IfNDefBlock) SetPosition(line int, column int, offset int)
- func (r *IfNDefBlock) SetRaw(s string)
- func (IfNDefBlock) Type() ElementType
- type InlineDoublePassthrough
- func (idp *InlineDoublePassthrough) Clone() Element
- func (p InlineDoublePassthrough) Document() *Document
- func (idp *InlineDoublePassthrough) Equals(o Element) bool
- func (p InlineDoublePassthrough) Origin() (path string, line int)
- func (p InlineDoublePassthrough) Position() (line int, column int, offset int)
- func (r InlineDoublePassthrough) Raw() string
- func (p *InlineDoublePassthrough) SetDocument(document *Document)
- func (p *InlineDoublePassthrough) SetPosition(line int, column int, offset int)
- func (r *InlineDoublePassthrough) SetRaw(s string)
- func (InlineDoublePassthrough) Type() ElementType
- type InlineIfDef
- func (iid *InlineIfDef) Clone() Element
- func (p InlineIfDef) Document() *Document
- func (iid *InlineIfDef) Equals(o Element) bool
- func (iid *InlineIfDef) Eval(cc ConditionalContext) bool
- func (p InlineIfDef) Origin() (path string, line int)
- func (p InlineIfDef) Position() (line int, column int, offset int)
- func (r InlineIfDef) Raw() string
- func (p *InlineIfDef) SetDocument(document *Document)
- func (p *InlineIfDef) SetPosition(line int, column int, offset int)
- func (r *InlineIfDef) SetRaw(s string)
- func (InlineIfDef) Type() ElementType
- type InlineIfNDef
- func (iind *InlineIfNDef) Clone() Element
- func (p InlineIfNDef) Document() *Document
- func (iind *InlineIfNDef) Equals(o Element) bool
- func (iind *InlineIfNDef) Eval(cc ConditionalContext) bool
- func (p InlineIfNDef) Origin() (path string, line int)
- func (p InlineIfNDef) Position() (line int, column int, offset int)
- func (r InlineIfNDef) Raw() string
- func (p *InlineIfNDef) SetDocument(document *Document)
- func (p *InlineIfNDef) SetPosition(line int, column int, offset int)
- func (r *InlineIfNDef) SetRaw(s string)
- func (InlineIfNDef) Type() ElementType
- type InlineImage
- type InlinePassthrough
- func (ip *InlinePassthrough) Clone() Element
- func (p InlinePassthrough) Document() *Document
- func (ip *InlinePassthrough) Equals(o Element) bool
- func (p InlinePassthrough) Origin() (path string, line int)
- func (p InlinePassthrough) Position() (line int, column int, offset int)
- func (r InlinePassthrough) Raw() string
- func (p *InlinePassthrough) SetDocument(document *Document)
- func (p *InlinePassthrough) SetPosition(line int, column int, offset int)
- func (r *InlinePassthrough) SetRaw(s string)
- func (InlinePassthrough) Type() ElementType
- type Italic
- func (i *Italic) Clone() Element
- func (p Italic) Document() *Document
- func (i *Italic) Equals(o Element) bool
- func (p Italic) Origin() (path string, line int)
- func (p Italic) Position() (line int, column int, offset int)
- func (r Italic) Raw() string
- func (p *Italic) SetDocument(document *Document)
- func (p *Italic) SetPosition(line int, column int, offset int)
- func (r *Italic) SetRaw(s string)
- func (Italic) TextFormat() TextFormat
- func (Italic) Type() ElementType
- type LineBreak
- func (lb LineBreak) Clone() Element
- func (p LineBreak) Document() *Document
- func (*LineBreak) Equals(e Element) bool
- func (p LineBreak) Origin() (path string, line int)
- func (p LineBreak) Position() (line int, column int, offset int)
- func (r LineBreak) Raw() string
- func (p *LineBreak) SetDocument(document *Document)
- func (p *LineBreak) SetPosition(line int, column int, offset int)
- func (r *LineBreak) SetRaw(s string)
- func (LineBreak) Type() ElementType
- type LineContinuation
- func (lc LineContinuation) Clone() Element
- func (p LineContinuation) Document() *Document
- func (LineContinuation) Equals(e Element) bool
- func (p LineContinuation) Origin() (path string, line int)
- func (p LineContinuation) Position() (line int, column int, offset int)
- func (r LineContinuation) Raw() string
- func (p *LineContinuation) SetDocument(document *Document)
- func (p *LineContinuation) SetPosition(line int, column int, offset int)
- func (r *LineContinuation) SetRaw(s string)
- func (LineContinuation) Type() ElementType
- type LineList
- type Link
- func (l *Link) Clone() Element
- func (p Link) Document() *Document
- func (l *Link) Equals(o Element) bool
- func (p Link) Origin() (path string, line int)
- func (p Link) Position() (line int, column int, offset int)
- func (r Link) Raw() string
- func (p *Link) SetDocument(document *Document)
- func (p *Link) SetPosition(line int, column int, offset int)
- func (r *Link) SetRaw(s string)
- func (Link) Type() ElementType
- type LinkMacro
- func (lm *LinkMacro) Clone() Element
- func (p LinkMacro) Document() *Document
- func (lm *LinkMacro) Equals(o Element) bool
- func (p LinkMacro) Origin() (path string, line int)
- func (p LinkMacro) Position() (line int, column int, offset int)
- func (r LinkMacro) Raw() string
- func (p *LinkMacro) SetDocument(document *Document)
- func (p *LinkMacro) SetPosition(line int, column int, offset int)
- func (r *LinkMacro) SetRaw(s string)
- func (LinkMacro) Type() ElementType
- type ListContinuation
- func (lc *ListContinuation) Child() Element
- func (lc *ListContinuation) Clone() Element
- func (p ListContinuation) Document() *Document
- func (lc *ListContinuation) Equals(o Element) bool
- func (p ListContinuation) Origin() (path string, line int)
- func (p ListContinuation) Position() (line int, column int, offset int)
- func (r ListContinuation) Raw() string
- func (p *ListContinuation) SetDocument(document *Document)
- func (p *ListContinuation) SetPosition(line int, column int, offset int)
- func (r *ListContinuation) SetRaw(s string)
- func (ListContinuation) Type() ElementType
- type Listing
- func (l *Listing) Clone() Element
- func (p Listing) Document() *Document
- func (l *Listing) Equals(o Element) bool
- func (p Listing) Origin() (path string, line int)
- func (p Listing) Position() (line int, column int, offset int)
- func (r Listing) Raw() string
- func (p *Listing) SetDocument(document *Document)
- func (p *Listing) SetPosition(line int, column int, offset int)
- func (r *Listing) SetRaw(s string)
- func (Listing) Type() ElementType
- type LiteralBlock
- func (a *LiteralBlock) Clone() Element
- func (p LiteralBlock) Document() *Document
- func (a *LiteralBlock) Equals(o Element) bool
- func (p LiteralBlock) Origin() (path string, line int)
- func (p LiteralBlock) Position() (line int, column int, offset int)
- func (r LiteralBlock) Raw() string
- func (p *LiteralBlock) SetDocument(document *Document)
- func (p *LiteralBlock) SetPosition(line int, column int, offset int)
- func (r *LiteralBlock) SetRaw(s string)
- func (LiteralBlock) Type() ElementType
- type Marked
- func (m *Marked) Clone() Element
- func (p Marked) Document() *Document
- func (m *Marked) Equals(e Element) bool
- func (p Marked) Origin() (path string, line int)
- func (p Marked) Position() (line int, column int, offset int)
- func (r Marked) Raw() string
- func (p *Marked) SetDocument(document *Document)
- func (p *Marked) SetPosition(line int, column int, offset int)
- func (r *Marked) SetRaw(s string)
- func (Marked) TextFormat() TextFormat
- func (Marked) Type() ElementType
- type Monospace
- func (ms *Monospace) Clone() Element
- func (p Monospace) Document() *Document
- func (ms *Monospace) Equals(e Element) bool
- func (p Monospace) Origin() (path string, line int)
- func (p Monospace) Position() (line int, column int, offset int)
- func (r Monospace) Raw() string
- func (p *Monospace) SetDocument(document *Document)
- func (p *Monospace) SetPosition(line int, column int, offset int)
- func (r *Monospace) SetRaw(s string)
- func (Monospace) TextFormat() TextFormat
- func (Monospace) Type() ElementType
- type MultiLineComment
- func (mlc *MultiLineComment) Clone() Element
- func (p MultiLineComment) Document() *Document
- func (mlc *MultiLineComment) Equals(e Element) bool
- func (p MultiLineComment) Origin() (path string, line int)
- func (p MultiLineComment) Position() (line int, column int, offset int)
- func (r MultiLineComment) Raw() string
- func (p *MultiLineComment) SetDocument(document *Document)
- func (p *MultiLineComment) SetPosition(line int, column int, offset int)
- func (r *MultiLineComment) SetRaw(s string)
- func (MultiLineComment) Type() ElementType
- type NamedAttribute
- func (na *NamedAttribute) AsciiDocString() string
- func (na *NamedAttribute) AttributeType() AttributeType
- func (na *NamedAttribute) Children() Elements
- func (na *NamedAttribute) Clone() Attribute
- func (na *NamedAttribute) Equals(oa Attribute) bool
- func (na *NamedAttribute) QuoteType() AttributeQuoteType
- func (na *NamedAttribute) SetChildren(els Elements)
- func (na *NamedAttribute) SetValue(v any) error
- func (ae NamedAttribute) Type() ElementType
- func (na *NamedAttribute) Value() any
- type NewLine
- func (nl NewLine) Clone() Element
- func (p NewLine) Document() *Document
- func (*NewLine) Equals(e Element) bool
- func (p NewLine) Origin() (path string, line int)
- func (p NewLine) Position() (line int, column int, offset int)
- func (r NewLine) Raw() string
- func (p *NewLine) SetDocument(document *Document)
- func (p *NewLine) SetPosition(line int, column int, offset int)
- func (r *NewLine) SetRaw(s string)
- func (NewLine) Type() ElementType
- type OpenBlock
- func (ob *OpenBlock) Clone() Element
- func (p OpenBlock) Document() *Document
- func (ob *OpenBlock) Equals(o Element) bool
- func (p OpenBlock) Origin() (path string, line int)
- func (p OpenBlock) Position() (line int, column int, offset int)
- func (r OpenBlock) Raw() string
- func (p *OpenBlock) SetDocument(document *Document)
- func (p *OpenBlock) SetPosition(line int, column int, offset int)
- func (r *OpenBlock) SetRaw(s string)
- func (OpenBlock) Type() ElementType
- type Optional
- type OrderedListItem
- func (oli *OrderedListItem) Clone() Element
- func (p OrderedListItem) Document() *Document
- func (oli *OrderedListItem) Equals(o Element) bool
- func (p OrderedListItem) Origin() (path string, line int)
- func (p OrderedListItem) Position() (line int, column int, offset int)
- func (r OrderedListItem) Raw() string
- func (p *OrderedListItem) SetDocument(document *Document)
- func (p *OrderedListItem) SetPosition(line int, column int, offset int)
- func (r *OrderedListItem) SetRaw(s string)
- func (OrderedListItem) Type() ElementType
- type PageBreak
- func (pb *PageBreak) Clone() Element
- func (p PageBreak) Document() *Document
- func (pb *PageBreak) Equals(e Element) bool
- func (p PageBreak) Origin() (path string, line int)
- func (p PageBreak) Position() (line int, column int, offset int)
- func (r PageBreak) Raw() string
- func (p *PageBreak) SetDocument(document *Document)
- func (p *PageBreak) SetPosition(line int, column int, offset int)
- func (r *PageBreak) SetRaw(s string)
- func (PageBreak) Type() ElementType
- type Paragraph
- func (p *Paragraph) Clone() Element
- func (p Paragraph) Document() *Document
- func (p *Paragraph) Equals(o Element) bool
- func (p Paragraph) Origin() (path string, line int)
- func (p Paragraph) Position() (line int, column int, offset int)
- func (p *Paragraph) SetDocument(document *Document)
- func (p *Paragraph) SetPosition(line int, column int, offset int)
- func (Paragraph) Type() ElementType
- type Parent
- type ParentElement
- type Path
- type PositionalAttribute
- func (pa *PositionalAttribute) AsciiDocString() string
- func (pa *PositionalAttribute) AttributeType() AttributeType
- func (pa *PositionalAttribute) Children() Elements
- func (pa *PositionalAttribute) Clone() Attribute
- func (pa *PositionalAttribute) Equals(oa Attribute) bool
- func (PositionalAttribute) QuoteType() AttributeQuoteType
- func (pa *PositionalAttribute) SetChildren(els Elements)
- func (pa *PositionalAttribute) SetValue(v any) error
- func (ae PositionalAttribute) Type() ElementType
- func (pa *PositionalAttribute) Value() any
- type QuoteBlock
- func (qb *QuoteBlock) Clone() Element
- func (p QuoteBlock) Document() *Document
- func (qb *QuoteBlock) Equals(o Element) bool
- func (p QuoteBlock) Origin() (path string, line int)
- func (p QuoteBlock) Position() (line int, column int, offset int)
- func (r QuoteBlock) Raw() string
- func (p *QuoteBlock) SetDocument(document *Document)
- func (p *QuoteBlock) SetPosition(line int, column int, offset int)
- func (r *QuoteBlock) SetRaw(s string)
- func (QuoteBlock) Type() ElementType
- type Reader
- type Section
- func (s *Section) AddChildSection(c *Section)
- func (s *Section) Clone() Element
- func (p Section) Document() *Document
- func (a *Section) Equals(o Element) bool
- func (p Section) Origin() (path string, line int)
- func (c Section) Parent() Element
- func (s *Section) ParentSection() *Section
- func (p Section) Position() (line int, column int, offset int)
- func (r Section) Raw() string
- func (p *Section) SetDocument(document *Document)
- func (c *Section) SetParent(e Element)
- func (p *Section) SetPosition(line int, column int, offset int)
- func (r *Section) SetRaw(s string)
- func (s *Section) Traverse(parent ParentElement) iter.Seq2[ParentElement, Parent]
- func (Section) Type() ElementType
- type ShorthandAttribute
- func (sa *ShorthandAttribute) AsciiDocString() string
- func (ShorthandAttribute) AttributeType() AttributeType
- func (sa *ShorthandAttribute) Clone() Attribute
- func (sa *ShorthandAttribute) Equals(oa Attribute) bool
- func (ShorthandAttribute) QuoteType() AttributeQuoteType
- func (sa *ShorthandAttribute) SetValue(v any) error
- func (sa ShorthandAttribute) Type() ElementType
- func (sa *ShorthandAttribute) Value() any
- type ShorthandID
- type ShorthandOption
- type ShorthandRole
- type ShorthandStyle
- type SidebarBlock
- func (sbb *SidebarBlock) Clone() Element
- func (p SidebarBlock) Document() *Document
- func (sbb *SidebarBlock) Equals(o Element) bool
- func (p SidebarBlock) Origin() (path string, line int)
- func (p SidebarBlock) Position() (line int, column int, offset int)
- func (r SidebarBlock) Raw() string
- func (p *SidebarBlock) SetDocument(document *Document)
- func (p *SidebarBlock) SetPosition(line int, column int, offset int)
- func (r *SidebarBlock) SetRaw(s string)
- func (SidebarBlock) Type() ElementType
- type SingleLineComment
- func (slc *SingleLineComment) Clone() Element
- func (p SingleLineComment) Document() *Document
- func (slc *SingleLineComment) Equals(e Element) bool
- func (p SingleLineComment) Origin() (path string, line int)
- func (p SingleLineComment) Position() (line int, column int, offset int)
- func (r SingleLineComment) Raw() string
- func (p *SingleLineComment) SetDocument(document *Document)
- func (p *SingleLineComment) SetPosition(line int, column int, offset int)
- func (r *SingleLineComment) SetRaw(s string)
- func (SingleLineComment) Type() ElementType
- type SourceBlock
- func (a *SourceBlock) Clone() Element
- func (p SourceBlock) Document() *Document
- func (a *SourceBlock) Equals(o Element) bool
- func (p SourceBlock) Origin() (path string, line int)
- func (p SourceBlock) Position() (line int, column int, offset int)
- func (r SourceBlock) Raw() string
- func (p *SourceBlock) SetDocument(document *Document)
- func (p *SourceBlock) SetPosition(line int, column int, offset int)
- func (r *SourceBlock) SetRaw(s string)
- func (SourceBlock) Type() ElementType
- type SpecialCharacter
- type StemBlock
- func (a *StemBlock) Clone() Element
- func (p StemBlock) Document() *Document
- func (a *StemBlock) Equals(o Element) bool
- func (p StemBlock) Origin() (path string, line int)
- func (p StemBlock) Position() (line int, column int, offset int)
- func (r StemBlock) Raw() string
- func (p *StemBlock) SetDocument(document *Document)
- func (p *StemBlock) SetPosition(line int, column int, offset int)
- func (r *StemBlock) SetRaw(s string)
- func (StemBlock) Type() ElementType
- type String
- type Subscript
- func (a *Subscript) Clone() Element
- func (p Subscript) Document() *Document
- func (a *Subscript) Equals(o Element) bool
- func (p Subscript) Origin() (path string, line int)
- func (p Subscript) Position() (line int, column int, offset int)
- func (r Subscript) Raw() string
- func (p *Subscript) SetDocument(document *Document)
- func (p *Subscript) SetPosition(line int, column int, offset int)
- func (r *Subscript) SetRaw(s string)
- func (Subscript) Type() ElementType
- type Superscript
- func (a *Superscript) Clone() Element
- func (p Superscript) Document() *Document
- func (a *Superscript) Equals(o Element) bool
- func (p Superscript) Origin() (path string, line int)
- func (p Superscript) Position() (line int, column int, offset int)
- func (r Superscript) Raw() string
- func (p *Superscript) SetDocument(document *Document)
- func (p *Superscript) SetPosition(line int, column int, offset int)
- func (r *Superscript) SetRaw(s string)
- func (Superscript) Type() ElementType
- type Table
- func (t *Table) Clone() Element
- func (p Table) Document() *Document
- func (t *Table) Equals(e Element) bool
- func (p Table) Origin() (path string, line int)
- func (p Table) Position() (line int, column int, offset int)
- func (p *Table) SetDocument(document *Document)
- func (p *Table) SetPosition(line int, column int, offset int)
- func (t *Table) TableRows(reader Reader) []*TableRow
- func (*Table) Type() ElementType
- type TableCell
- func (tc *TableCell) Clone() Element
- func (p TableCell) Document() *Document
- func (tc *TableCell) Equals(e Element) bool
- func (p TableCell) Origin() (path string, line int)
- func (p TableCell) Position() (line int, column int, offset int)
- func (p *TableCell) SetDocument(document *Document)
- func (p *TableCell) SetPosition(line int, column int, offset int)
- func (TableCell) Type() ElementType
- type TableCellFormat
- type TableCellHorizontalAlign
- type TableCellSpan
- type TableCellStyle
- type TableCellVerticalAlign
- type TableCells
- type TableColumn
- type TableColumnWidth
- type TableColumnsAttribute
- func (tca *TableColumnsAttribute) AsciiDocString() string
- func (TableColumnsAttribute) AttributeType() AttributeType
- func (ta *TableColumnsAttribute) Clone() Attribute
- func (tca *TableColumnsAttribute) Equals(a Attribute) bool
- func (TableColumnsAttribute) QuoteType() AttributeQuoteType
- func (na *TableColumnsAttribute) SetValue(v any) error
- func (ae TableColumnsAttribute) Type() ElementType
- func (tca *TableColumnsAttribute) Value() any
- type TableRow
- func (tr *TableRow) Cell(i int) *TableCell
- func (tr *TableRow) Clone() Element
- func (p TableRow) Document() *Document
- func (tr *TableRow) Equals(e Element) bool
- func (p TableRow) Origin() (path string, line int)
- func (p TableRow) Position() (line int, column int, offset int)
- func (p *TableRow) SetDocument(document *Document)
- func (p *TableRow) SetPosition(line int, column int, offset int)
- func (tr *TableRow) TableCells() []*TableCell
- func (TableRow) Type() ElementType
- type TableRows
- type TextFormat
- type ThematicBreak
- func (tb *ThematicBreak) Clone() Element
- func (p ThematicBreak) Document() *Document
- func (tb *ThematicBreak) Equals(e Element) bool
- func (p ThematicBreak) Origin() (path string, line int)
- func (p ThematicBreak) Position() (line int, column int, offset int)
- func (r ThematicBreak) Raw() string
- func (p *ThematicBreak) SetDocument(document *Document)
- func (p *ThematicBreak) SetPosition(line int, column int, offset int)
- func (r *ThematicBreak) SetRaw(s string)
- func (ThematicBreak) Type() ElementType
- type TitleAttribute
- func (ta *TitleAttribute) AsciiDocString() string
- func (TitleAttribute) AttributeType() AttributeType
- func (ta *TitleAttribute) Children() Elements
- func (ta *TitleAttribute) Clone() Attribute
- func (ta *TitleAttribute) Equals(oa Attribute) bool
- func (TitleAttribute) QuoteType() AttributeQuoteType
- func (ta *TitleAttribute) SetChildren(els Elements)
- func (ta *TitleAttribute) SetValue(v any) error
- func (ae TitleAttribute) Type() ElementType
- func (ta *TitleAttribute) Value() any
- type Traverser
- type URL
- func (u URL) Clone() Element
- func (p URL) Document() *Document
- func (u URL) Equals(o Element) bool
- func (p URL) Origin() (path string, line int)
- func (p URL) Position() (line int, column int, offset int)
- func (r URL) Raw() string
- func (p *URL) SetDocument(document *Document)
- func (p *URL) SetPosition(line int, column int, offset int)
- func (r *URL) SetRaw(s string)
- func (URL) Type() ElementType
- type UnorderedList
- func (p UnorderedList) Document() *Document
- func (p UnorderedList) Origin() (path string, line int)
- func (p UnorderedList) Position() (line int, column int, offset int)
- func (r UnorderedList) Raw() string
- func (p *UnorderedList) SetDocument(document *Document)
- func (p *UnorderedList) SetPosition(line int, column int, offset int)
- func (r *UnorderedList) SetRaw(s string)
- func (UnorderedList) Type() ElementType
- type UnorderedListItem
- func (uoli *UnorderedListItem) Clone() Element
- func (p UnorderedListItem) Document() *Document
- func (uoli *UnorderedListItem) Equals(o Element) bool
- func (p UnorderedListItem) Origin() (path string, line int)
- func (p UnorderedListItem) Position() (line int, column int, offset int)
- func (r UnorderedListItem) Raw() string
- func (p *UnorderedListItem) SetDocument(document *Document)
- func (p *UnorderedListItem) SetPosition(line int, column int, offset int)
- func (r *UnorderedListItem) SetRaw(s string)
- func (UnorderedListItem) Type() ElementType
- type UserAttributeReference
- func (uaf UserAttributeReference) Clone() Element
- func (p UserAttributeReference) Document() *Document
- func (uar *UserAttributeReference) Equals(e Element) bool
- func (uar *UserAttributeReference) Name() string
- func (p UserAttributeReference) Origin() (path string, line int)
- func (p UserAttributeReference) Position() (line int, column int, offset int)
- func (r UserAttributeReference) Raw() string
- func (p *UserAttributeReference) SetDocument(document *Document)
- func (p *UserAttributeReference) SetPosition(line int, column int, offset int)
- func (r *UserAttributeReference) SetRaw(s string)
- func (UserAttributeReference) Type() ElementType
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttributeAsciiDocString ¶
func DescribeSet ¶
func StringValue ¶
func ValueToString ¶
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 ¶
func NewAlchemyEscape ¶
func NewAlchemyEscape() *AlchemyEscape
func (*AlchemyEscape) Clone ¶ added in v1.6.0
func (ae *AlchemyEscape) Clone() Element
func (*AlchemyEscape) Equals ¶
func (ae *AlchemyEscape) Equals(e Element) bool
func (*AlchemyEscape) SetDocument ¶ added in v1.6.0
func (p *AlchemyEscape) SetDocument(document *Document)
func (*AlchemyEscape) SetPosition ¶
func (AlchemyEscape) Type ¶
func (AlchemyEscape) Type() ElementType
type Anchor ¶
func (Anchor) AttributeType ¶
func (Anchor) AttributeType() AttributeType
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 (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) QuoteType ¶
func (AnchorAttribute) QuoteType() AttributeQuoteType
func (*AnchorAttribute) SetValue ¶
func (aa *AnchorAttribute) SetValue(v any) error
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 NewTitleAttribute ¶
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) Equals ¶
func (uar *AttributeEntry) Equals(e Element) bool
func (*AttributeEntry) SetDocument ¶ added in v1.6.0
func (p *AttributeEntry) SetDocument(document *Document)
func (*AttributeEntry) SetPosition ¶
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) Equals ¶
func (uar *AttributeReset) Equals(e Element) bool
func (*AttributeReset) SetDocument ¶ added in v1.6.0
func (p *AttributeReset) SetDocument(document *Document)
func (*AttributeReset) SetPosition ¶
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 ¶
func (BlockAttributes) Type() ElementType
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) Equals ¶
func (bi *BlockImage) Equals(o Element) bool
func (*BlockImage) SetDocument ¶ added in v1.6.0
func (p *BlockImage) SetDocument(document *Document)
func (*BlockImage) SetPosition ¶
func (BlockImage) Type ¶
func (BlockImage) Type() ElementType
type Bold ¶
type Bold struct {
AttributeList
Elements
// contains filtered or unexported fields
}
func (*Bold) SetDocument ¶ added in v1.6.0
func (p *Bold) SetDocument(document *Document)
func (*Bold) SetPosition ¶
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 (crr CharacterReplacementReference) Clone() Element
func (*CharacterReplacementReference) Equals ¶
func (crr *CharacterReplacementReference) Equals(e Element) bool
func (*CharacterReplacementReference) Name ¶
func (crr *CharacterReplacementReference) Name() string
func (CharacterReplacementReference) ReplacementValue ¶
func (crr CharacterReplacementReference) ReplacementValue() string
func (CharacterReplacementReference) Type ¶
func (CharacterReplacementReference) Type() ElementType
type ChildElement ¶ added in v1.6.0
type ConditionalContext ¶
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 (*Counter) SetDocument ¶ added in v1.6.0
func (p *Counter) SetDocument(document *Document)
func (*Counter) SetPosition ¶
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) Equals ¶
func (cr *CrossReference) Equals(o Element) bool
func (*CrossReference) SetDocument ¶ added in v1.6.0
func (p *CrossReference) SetDocument(document *Document)
func (*CrossReference) SetPosition ¶
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) SetDocument ¶ added in v1.6.0
func (p *Delimiter) SetDocument(document *Document)
func (*Delimiter) SetPosition ¶
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) SetDocument ¶ added in v1.6.0
func (p *DescriptionListItem) SetDocument(document *Document)
func (*DescriptionListItem) SetPosition ¶
func (DescriptionListItem) Type ¶
func (DescriptionListItem) 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) SetDocument ¶ added in v1.6.0
func (p *DocumentCrossReference) SetDocument(document *Document)
func (*DocumentCrossReference) SetPosition ¶
func (DocumentCrossReference) Type ¶
func (DocumentCrossReference) Type() ElementType
type DocumentElement ¶ added in v1.6.0
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) Equals ¶
func (db *DoubleBold) Equals(e Element) bool
func (*DoubleBold) SetDocument ¶ added in v1.6.0
func (p *DoubleBold) SetDocument(document *Document)
func (*DoubleBold) SetPosition ¶
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) Equals ¶
func (di *DoubleItalic) Equals(o Element) bool
func (*DoubleItalic) SetDocument ¶ added in v1.6.0
func (p *DoubleItalic) SetDocument(document *Document)
func (*DoubleItalic) SetPosition ¶
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) Equals ¶
func (dm *DoubleMarked) Equals(e Element) bool
func (*DoubleMarked) SetDocument ¶ added in v1.6.0
func (p *DoubleMarked) SetDocument(document *Document)
func (*DoubleMarked) SetPosition ¶
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) Equals ¶
func (dm *DoubleMonospace) Equals(e Element) bool
func (*DoubleMonospace) SetDocument ¶ added in v1.6.0
func (p *DoubleMonospace) SetDocument(document *Document)
func (*DoubleMonospace) SetPosition ¶
func (DoubleMonospace) TextFormat ¶
func (DoubleMonospace) TextFormat() TextFormat
func (DoubleMonospace) Type ¶
func (DoubleMonospace) Type() ElementType
type ElementIterator ¶ added in v1.5.41
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 (Elements) IsWhitespace ¶ added in v1.5.41
func (*Elements) SetChildren ¶ added in v1.5.41
type Email ¶
type Email struct {
Address string
// contains filtered or unexported fields
}
func (*Email) SetDocument ¶ added in v1.6.0
func (p *Email) SetDocument(document *Document)
func (*Email) SetPosition ¶
func (Email) Type ¶
func (Email) Type() ElementType
type EmptyLine ¶
type EmptyLine struct {
Text string
// contains filtered or unexported fields
}
func NewEmptyLine ¶
func (*EmptyLine) SetDocument ¶ added in v1.6.0
func (p *EmptyLine) SetDocument(document *Document)
func (*EmptyLine) SetPosition ¶ added in v1.5.40
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) SetDocument ¶ added in v1.6.0
func (p *EndIf) SetDocument(document *Document)
func (*EndIf) SetPosition ¶
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) Equals ¶
func (eb *ExampleBlock) Equals(o Element) bool
func (*ExampleBlock) SetDocument ¶ added in v1.6.0
func (p *ExampleBlock) SetDocument(document *Document)
func (*ExampleBlock) SetPosition ¶
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) Equals ¶
func (fb *FencedBlock) Equals(o Element) bool
func (*FencedBlock) SetDocument ¶ added in v1.6.0
func (p *FencedBlock) SetDocument(document *Document)
func (*FencedBlock) SetPosition ¶
func (FencedBlock) Type ¶
func (FencedBlock) Type() ElementType
type FencedDelimiter ¶ added in v1.5.48
func NewFencedDelimiter ¶ added in v1.5.48
func NewFencedDelimiter(length int, language Elements) FencedDelimiter
func (FencedDelimiter) Equals ¶ added in v1.5.48
func (fd FencedDelimiter) Equals(ofd FencedDelimiter) bool
func (*FencedDelimiter) SetDocument ¶ added in v1.6.0
func (p *FencedDelimiter) SetDocument(document *Document)
func (*FencedDelimiter) SetPosition ¶ added in v1.5.48
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) Equals ¶
func (fi *FileInclude) Equals(o Element) bool
func (*FileInclude) SetDocument ¶ added in v1.6.0
func (p *FileInclude) SetDocument(document *Document)
func (*FileInclude) SetPosition ¶
func (FileInclude) Type ¶
func (FileInclude) Type() ElementType
type Footnote ¶
func NewFootnote ¶
func (*Footnote) SetDocument ¶ added in v1.6.0
func (p *Footnote) SetDocument(document *Document)
func (*Footnote) SetPosition ¶
type FormattedTextElement ¶
type FormattedTextElement interface {
Element
ParentElement
TextFormat() TextFormat
}
type HasPosition ¶
type Icon ¶
type Icon struct {
AttributeList
Path string
// contains filtered or unexported fields
}
func (*Icon) SetDocument ¶ added in v1.6.0
func (p *Icon) SetDocument(document *Document)
func (*Icon) SetPosition ¶
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) Eval ¶
func (a *IfDef) Eval(cc ConditionalContext) bool
func (*IfDef) SetDocument ¶ added in v1.6.0
func (p *IfDef) SetDocument(document *Document)
func (*IfDef) SetPosition ¶
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) Equals ¶
func (idb *IfDefBlock) Equals(o Element) bool
func (*IfDefBlock) Eval ¶
func (idb *IfDefBlock) Eval(cc ConditionalContext) bool
func (*IfDefBlock) SetDocument ¶ added in v1.6.0
func (p *IfDefBlock) SetDocument(document *Document)
func (*IfDefBlock) SetPosition ¶
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) SetDocument ¶ added in v1.6.0
func (p *IfEval) SetDocument(document *Document)
func (*IfEval) SetPosition ¶
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) Equals ¶
func (ieb *IfEvalBlock) Equals(o Element) bool
func (*IfEvalBlock) Eval ¶
func (ieb *IfEvalBlock) Eval(cc ConditionalContext) (bool, error)
func (*IfEvalBlock) SetDocument ¶ added in v1.6.0
func (p *IfEvalBlock) SetDocument(document *Document)
func (*IfEvalBlock) SetPosition ¶
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) Eval ¶
func (id *IfNDef) Eval(cc ConditionalContext) bool
func (*IfNDef) SetDocument ¶ added in v1.6.0
func (p *IfNDef) SetDocument(document *Document)
func (*IfNDef) SetPosition ¶
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) Equals ¶
func (indb *IfNDefBlock) Equals(o Element) bool
func (*IfNDefBlock) Eval ¶
func (indb *IfNDefBlock) Eval(cc ConditionalContext) bool
func (*IfNDefBlock) SetDocument ¶ added in v1.6.0
func (p *IfNDefBlock) SetDocument(document *Document)
func (*IfNDefBlock) SetPosition ¶
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) SetDocument ¶ added in v1.6.0
func (p *InlineDoublePassthrough) SetDocument(document *Document)
func (*InlineDoublePassthrough) SetPosition ¶
func (InlineDoublePassthrough) Type ¶
func (InlineDoublePassthrough) Type() ElementType
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) Equals ¶
func (iid *InlineIfDef) Equals(o Element) bool
func (*InlineIfDef) Eval ¶
func (iid *InlineIfDef) Eval(cc ConditionalContext) bool
func (*InlineIfDef) SetDocument ¶ added in v1.6.0
func (p *InlineIfDef) SetDocument(document *Document)
func (*InlineIfDef) SetPosition ¶
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) Equals ¶
func (iind *InlineIfNDef) Equals(o Element) bool
func (*InlineIfNDef) Eval ¶
func (iind *InlineIfNDef) Eval(cc ConditionalContext) bool
func (*InlineIfNDef) SetDocument ¶ added in v1.6.0
func (p *InlineIfNDef) SetDocument(document *Document)
func (*InlineIfNDef) SetPosition ¶
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) Equals ¶
func (ip *InlinePassthrough) Equals(o Element) bool
func (*InlinePassthrough) SetDocument ¶ added in v1.6.0
func (p *InlinePassthrough) SetDocument(document *Document)
func (*InlinePassthrough) SetPosition ¶
func (InlinePassthrough) Type ¶
func (InlinePassthrough) Type() ElementType
type Italic ¶
type Italic struct {
AttributeList
Elements
// contains filtered or unexported fields
}
func (*Italic) SetDocument ¶ added in v1.6.0
func (p *Italic) SetDocument(document *Document)
func (*Italic) SetPosition ¶
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) SetDocument ¶ added in v1.6.0
func (p *LineBreak) SetDocument(document *Document)
func (*LineBreak) SetPosition ¶
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) Equals ¶
func (LineContinuation) Equals(e Element) bool
func (*LineContinuation) SetDocument ¶ added in v1.6.0
func (p *LineContinuation) SetDocument(document *Document)
func (*LineContinuation) SetPosition ¶
func (LineContinuation) Type ¶
func (LineContinuation) Type() ElementType
type Link ¶
type Link struct {
AttributeList
URL URL
// contains filtered or unexported fields
}
func (*Link) SetDocument ¶ added in v1.6.0
func (p *Link) SetDocument(document *Document)
func (*Link) SetPosition ¶
func (Link) Type ¶
func (Link) Type() ElementType
type LinkMacro ¶
type LinkMacro struct {
AttributeList
URL URL
// contains filtered or unexported fields
}
func NewLinkMacro ¶
func (*LinkMacro) SetDocument ¶ added in v1.6.0
func (p *LinkMacro) SetDocument(document *Document)
func (*LinkMacro) SetPosition ¶
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) Equals ¶
func (lc *ListContinuation) Equals(o Element) bool
func (*ListContinuation) SetDocument ¶ added in v1.6.0
func (p *ListContinuation) SetDocument(document *Document)
func (*ListContinuation) SetPosition ¶
func (ListContinuation) Type ¶
func (ListContinuation) Type() ElementType
type Listing ¶
type Listing struct {
AttributeList
Delimiter Delimiter
LineList
// contains filtered or unexported fields
}
func NewListing ¶
func (*Listing) SetDocument ¶ added in v1.6.0
func (p *Listing) SetDocument(document *Document)
func (*Listing) SetPosition ¶
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) Equals ¶
func (a *LiteralBlock) Equals(o Element) bool
func (*LiteralBlock) SetDocument ¶ added in v1.6.0
func (p *LiteralBlock) SetDocument(document *Document)
func (*LiteralBlock) SetPosition ¶
func (LiteralBlock) Type ¶
func (LiteralBlock) Type() ElementType
type Marked ¶
type Marked struct {
AttributeList
Elements
// contains filtered or unexported fields
}
func (*Marked) SetDocument ¶ added in v1.6.0
func (p *Marked) SetDocument(document *Document)
func (*Marked) SetPosition ¶
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 (*Monospace) SetDocument ¶ added in v1.6.0
func (p *Monospace) SetDocument(document *Document)
func (*Monospace) SetPosition ¶
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) Equals ¶
func (mlc *MultiLineComment) Equals(e Element) bool
func (*MultiLineComment) SetDocument ¶ added in v1.6.0
func (p *MultiLineComment) SetDocument(document *Document)
func (*MultiLineComment) SetPosition ¶
func (MultiLineComment) Type ¶
func (MultiLineComment) Type() ElementType
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) SetDocument ¶ added in v1.6.0
func (p *NewLine) SetDocument(document *Document)
func (*NewLine) SetPosition ¶
func (NewLine) Type ¶
func (NewLine) Type() ElementType
type OpenBlock ¶
type OpenBlock struct {
AttributeList
Delimiter Delimiter
Elements
// contains filtered or unexported fields
}
func NewOpenBlock ¶
func (*OpenBlock) SetDocument ¶ added in v1.6.0
func (p *OpenBlock) SetDocument(document *Document)
func (*OpenBlock) SetPosition ¶
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]
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) Equals ¶
func (oli *OrderedListItem) Equals(o Element) bool
func (*OrderedListItem) SetDocument ¶ added in v1.6.0
func (p *OrderedListItem) SetDocument(document *Document)
func (*OrderedListItem) SetPosition ¶
func (OrderedListItem) Type ¶
func (OrderedListItem) Type() ElementType
type PageBreak ¶
type PageBreak struct {
AttributeList
// contains filtered or unexported fields
}
func NewPageBreak ¶
func NewPageBreak() *PageBreak
func (*PageBreak) SetDocument ¶ added in v1.6.0
func (p *PageBreak) SetDocument(document *Document)
func (*PageBreak) SetPosition ¶
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) SetDocument ¶ added in v1.6.0
func (p *Paragraph) SetDocument(document *Document)
func (*Paragraph) SetPosition ¶
func (Paragraph) Type ¶
func (Paragraph) Type() ElementType
type ParentElement ¶ added in v1.5.41
type ParentElement interface {
DocumentElement
Parent
}
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) QuoteType() AttributeQuoteType
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) Equals ¶
func (qb *QuoteBlock) Equals(o Element) bool
func (*QuoteBlock) SetDocument ¶ added in v1.6.0
func (p *QuoteBlock) SetDocument(document *Document)
func (*QuoteBlock) SetPosition ¶
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 (*Section) AddChildSection ¶
func (*Section) ParentSection ¶
func (*Section) SetDocument ¶ added in v1.6.0
func (p *Section) SetDocument(document *Document)
func (*Section) SetPosition ¶
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) QuoteType() AttributeQuoteType
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) Equals ¶
func (sbb *SidebarBlock) Equals(o Element) bool
func (*SidebarBlock) SetDocument ¶ added in v1.6.0
func (p *SidebarBlock) SetDocument(document *Document)
func (*SidebarBlock) SetPosition ¶
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) Equals ¶
func (slc *SingleLineComment) Equals(e Element) bool
func (*SingleLineComment) SetDocument ¶ added in v1.6.0
func (p *SingleLineComment) SetDocument(document *Document)
func (*SingleLineComment) SetPosition ¶
func (SingleLineComment) Type ¶
func (SingleLineComment) Type() ElementType
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) Equals ¶
func (a *SourceBlock) Equals(o Element) bool
func (*SourceBlock) SetDocument ¶ added in v1.6.0
func (p *SourceBlock) SetDocument(document *Document)
func (*SourceBlock) SetPosition ¶
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 ¶
func (SpecialCharacter) Type() ElementType
type StemBlock ¶
type StemBlock struct {
AttributeList
Delimiter Delimiter
LineList
// contains filtered or unexported fields
}
func NewStemBlock ¶
func (*StemBlock) SetDocument ¶ added in v1.6.0
func (p *StemBlock) SetDocument(document *Document)
func (*StemBlock) SetPosition ¶
func (StemBlock) Type ¶
func (StemBlock) Type() ElementType
type String ¶
type String struct {
Value string
}
func JoinStrings ¶
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) SetDocument ¶ added in v1.6.0
func (p *Subscript) SetDocument(document *Document)
func (*Subscript) SetPosition ¶
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) Equals ¶
func (a *Superscript) Equals(o Element) bool
func (*Superscript) SetDocument ¶ added in v1.6.0
func (p *Superscript) SetDocument(document *Document)
func (*Superscript) SetPosition ¶
func (Superscript) Type ¶
func (Superscript) Type() ElementType
type Table ¶
type Table struct {
AttributeList
ColumnCount int
Elements
// contains filtered or unexported fields
}
func (*Table) SetDocument ¶ added in v1.6.0
func (p *Table) SetDocument(document *Document)
func (*Table) SetPosition ¶
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) SetDocument ¶ added in v1.6.0
func (p *TableCell) SetDocument(document *Document)
func (*TableCell) SetPosition ¶
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 ¶
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) QuoteType() AttributeQuoteType
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 ¶
func (*TableRow) SetDocument ¶ added in v1.6.0
func (p *TableRow) SetDocument(document *Document)
func (*TableRow) SetPosition ¶
func (*TableRow) TableCells ¶
func (TableRow) Type ¶
func (TableRow) Type() ElementType
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) Equals ¶
func (tb *ThematicBreak) Equals(e Element) bool
func (*ThematicBreak) SetDocument ¶ added in v1.6.0
func (p *ThematicBreak) SetDocument(document *Document)
func (*ThematicBreak) SetPosition ¶
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 ¶
func (*URL) SetDocument ¶ added in v1.6.0
func (p *URL) SetDocument(document *Document)
func (*URL) SetPosition ¶
func (URL) Type ¶
func (URL) Type() ElementType
type UnorderedList ¶
type UnorderedList struct {
Elements
AttributeList
// contains filtered or unexported fields
}
func (*UnorderedList) SetDocument ¶ added in v1.6.0
func (p *UnorderedList) SetDocument(document *Document)
func (*UnorderedList) SetPosition ¶
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) Equals ¶
func (uoli *UnorderedListItem) Equals(o Element) bool
func (*UnorderedListItem) SetDocument ¶ added in v1.6.0
func (p *UnorderedListItem) SetDocument(document *Document)
func (*UnorderedListItem) SetPosition ¶
func (UnorderedListItem) Type ¶
func (UnorderedListItem) Type() ElementType
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) SetDocument ¶ added in v1.6.0
func (p *UserAttributeReference) SetDocument(document *Document)
func (*UserAttributeReference) SetPosition ¶
func (UserAttributeReference) Type ¶
func (UserAttributeReference) Type() ElementType
Source Files
¶
- anchor.go
- asciidoc.go
- attribute.go
- attribute_type.go
- attributes.go
- block.go
- bold.go
- break.go
- column.go
- comment.go
- conditional.go
- counter.go
- delimited.go
- describe.go
- document.go
- element.go
- elements.go
- email.go
- escape.go
- example.go
- fenced.go
- footnote.go
- format.go
- icon.go
- image.go
- include.go
- italic.go
- line.go
- link.go
- list.go
- listing.go
- literal.go
- marked.go
- monospace.go
- open.go
- optional.go
- paragraph.go
- parent.go
- passthrough.go
- path.go
- position.go
- quote.go
- raw.go
- reader.go
- reference.go
- section.go
- shorthand.go
- sidebar.go
- source.go
- stem.go
- subscript.go
- superscript.go
- table.go
- text.go
- url.go
- writer.go
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 |
Click to show internal directories.
Click to hide internal directories.