Documentation
¶
Overview ¶
Package pandoc provides types and functions for encoding pandoc flavoured markdown
Index ¶
- type Content
- func (w *Content) BlockQuote(m Text)
- func (w *Content) DefinitionList(items [][2]Text)
- func (w *Content) EmptyPara()
- func (w *Content) EncodeBold(m Text) Text
- func (w *Content) EncodeItalic(m Text) Text
- func (w *Content) EncodeLink(text Text, url string) Text
- func (w *Content) EncodeModelLink(text Text, m any) Text
- func (w *Content) EncodeModelLinkDedupe(firstText Text, subsequentText Text, m any) Text
- func (w *Content) EncodeModelLinkNamed(m any, nc render.NameChooser, pov *model.POV) Text
- func (p *Content) EncodeText(ss ...string) Text
- func (w *Content) EncodeWithCitations(s Text, citations []*model.GeneralCitation) Text
- func (w *Content) FactList([]render.FactEntry[Text])
- func (w *Content) Figure(link string, alt string, caption Text, highlight *model.Region, ...)
- func (w *Content) GroupedList([]render.Grouping[Text])
- func (w *Content) Heading1(m Text, id string)
- func (w *Content) Heading2(m Text, id string)
- func (w *Content) Heading3(m Text, id string)
- func (w *Content) Heading4(m Text, id string)
- func (w *Content) Image(link string, alt string)
- func (w *Content) Markdown(s string)
- func (w *Content) OrderedList(items []Text)
- func (w *Content) Para(m Text)
- func (w *Content) Pre(s string)
- func (e *Content) String() string
- func (e *Content) Text() Text
- func (w *Content) Timeline([]render.TimelineRow[Text])
- func (w *Content) UnorderedList(items []Text)
- func (p *Content) WriteTo(w io.Writer) (int64, error)
- type Document
- type Text
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct {
// contains filtered or unexported fields
}
func (*Content) BlockQuote ¶
func (*Content) DefinitionList ¶
func (*Content) EncodeBold ¶
func (*Content) EncodeItalic ¶
func (*Content) EncodeModelLinkDedupe ¶
func (*Content) EncodeModelLinkNamed ¶
func (*Content) EncodeText ¶
func (*Content) EncodeWithCitations ¶
func (w *Content) EncodeWithCitations(s Text, citations []*model.GeneralCitation) Text
func (*Content) Figure ¶
func (w *Content) Figure(link string, alt string, caption Text, highlight *model.Region, downloadName string)
Requires implicit_figures extension
func (*Content) GroupedList ¶ added in v0.0.6
func (*Content) OrderedList ¶
func (*Content) UnorderedList ¶
Click to show internal directories.
Click to hide internal directories.