Documentation ¶
Index ¶
- Constants
- type Document
- func (b *Document) AddAlias(s string)
- func (b *Document) AddDescendant(name string, link string, detail string)
- func (b *Document) AddLink(title string, link string)
- func (b *Document) AddTag(s string)
- func (b *Document) AddTags(ss []string)
- func (b *Document) BasePath(s string)
- func (b *Document) Category(s string)
- func (b *Document) ID(s string)
- func (b *Document) Image(s string)
- func (b *Document) LastUpdated(t time.Time)
- func (b *Document) Layout(s string)
- func (b *Document) SetFrontMatterField(k, v string)
- func (b *Document) String() string
- func (b *Document) Summary(s string)
- func (b *Document) Title(s string)
- func (b *Document) WriteTo(w io.Writer) (int64, error)
- type Encoder
- func (b *Encoder) BlockQuote(m render.Markdown)
- func (e *Encoder) ConvertMarkdown(text string, w io.Writer) error
- func (e *Encoder) DefinitionList(markups [][2]render.Markdown)
- func (e *Encoder) EmptyPara()
- func (e *Encoder) EncodeBold(m string) string
- func (e *Encoder) EncodeCitationDetail(c *model.GeneralCitation) string
- func (b *Encoder) EncodeCitationLink(sourceName string, citationText render.Markdown, citationID string) string
- func (e *Encoder) EncodeImage(alt string, link string) string
- func (e *Encoder) EncodeItalic(m string) string
- func (e *Encoder) EncodeLink(text string, url string) string
- func (e *Encoder) EncodeModelLink(firstText string, m any) string
- func (b *Encoder) EncodeModelLinkDedupe(firstText string, subsequentText string, m any) string
- func (b *Encoder) EncodeWithCitations(s string, citations []*model.GeneralCitation) string
- func (e *Encoder) Figure(link string, alt string, caption render.Markdown, highlight *model.Region)
- func (e *Encoder) Heading2(m render.Markdown, id string)
- func (e *Encoder) Heading3(m render.Markdown, id string)
- func (e *Encoder) Heading4(m render.Markdown, id string)
- func (e *Encoder) Image(alt string, link string)
- func (e *Encoder) OrderedList(ms []render.Markdown)
- func (b *Encoder) Para(m render.Markdown)
- func (e *Encoder) ParaWithFigure(text render.Markdown, link string, alt string, caption render.Markdown)
- func (e *Encoder) Pre(s string)
- func (e *Encoder) RawMarkdown(s render.Markdown)
- func (e *Encoder) ResetSeenLinks()
- func (e *Encoder) SetBody(s string)
- func (e *Encoder) SetLinkBuilder(l LinkBuilder)
- func (e *Encoder) String() string
- func (e *Encoder) Timeline(rows []render.TimelineRow)
- func (e *Encoder) UnorderedList(ms []render.Markdown)
- func (e *Encoder) WriteTo(w io.Writer) (int64, error)
- type LinkBuilder
- type MarkupText
- type PlainText
Constants ¶
View Source
const ( MarkdownTagTitle = "title" MarkdownTagSummary = "summary" MarkdownTagLayout = "layout" MarkdownTagTags = "tags" MarkdownTagCategory = "category" MarkdownTagID = "id" MarkdownTagImage = "image" MarkdownTagBasePath = "basepath" MarkdownTagNextPage = "next" MarkdownTagPrevPage = "prev" MarkdownTagFirstPage = "first" MarkdownTagLastPage = "last" MarkdownTagIndexPage = "index" MarkdownTagAliases = "aliases" MarkdownTagLinks = "links" MarkdownTagDescendants = "descendants" MarkdownTagLastMod = "lastmod" )
View Source
const ( DirectAncestorMarker = "★" GeneralNotesSourceName = "General Notes" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { Encoder // contains filtered or unexported fields }
func (*Document) AddDescendant ¶
func (*Document) LastUpdated ¶ added in v0.0.2
func (*Document) SetFrontMatterField ¶
type Encoder ¶
type Encoder struct { LinkBuilder LinkBuilder SuppressCitations bool // contains filtered or unexported fields }
func (*Encoder) BlockQuote ¶
func (*Encoder) DefinitionList ¶
func (*Encoder) EncodeBold ¶
func (*Encoder) EncodeCitationDetail ¶
func (e *Encoder) EncodeCitationDetail(c *model.GeneralCitation) string
func (*Encoder) EncodeCitationLink ¶
func (*Encoder) EncodeItalic ¶
func (*Encoder) EncodeModelLinkDedupe ¶
func (*Encoder) EncodeWithCitations ¶
func (b *Encoder) EncodeWithCitations(s string, citations []*model.GeneralCitation) string
func (*Encoder) OrderedList ¶
func (*Encoder) ParaWithFigure ¶
func (*Encoder) RawMarkdown ¶
func (*Encoder) ResetSeenLinks ¶
func (e *Encoder) ResetSeenLinks()
func (*Encoder) SetLinkBuilder ¶
func (e *Encoder) SetLinkBuilder(l LinkBuilder)
func (*Encoder) Timeline ¶
func (e *Encoder) Timeline(rows []render.TimelineRow)
func (*Encoder) UnorderedList ¶
type LinkBuilder ¶
type MarkupText ¶
type MarkupText string
Click to show internal directories.
Click to hide internal directories.