Documentation ¶
Index ¶
- Constants
- type Document
- 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) Layout(s string)
- func (b *Document) Markdown() string
- func (b *Document) SetFrontMatterField(k, v string)
- func (b *Document) Summary(s string)
- func (b *Document) Title(s string)
- func (b *Document) WriteMarkdown(w io.Writer) error
- type Encoder
- func (b *Encoder) BlockQuote(s string)
- func (b *Encoder) DefinitionList(items [][2]string)
- func (b *Encoder) EmptyPara()
- func (b *Encoder) EncodeBlockQuote(s string) string
- func (b *Encoder) EncodeBold(s string) string
- func (b *Encoder) EncodeCitation(citation string, detail string, citationID string) string
- func (b *Encoder) EncodeCitationDetail(c *model.GeneralCitation) string
- func (b *Encoder) EncodeDefinitionList(items [][2]string) string
- func (b *Encoder) EncodeEmptyPara() string
- func (e *Encoder) EncodeHeading1(s string) string
- func (b *Encoder) EncodeHeading2(s string) string
- func (b *Encoder) EncodeHeading3(s string) string
- func (b *Encoder) EncodeHeading4(s string) string
- func (b *Encoder) EncodeItalic(s string) string
- func (b *Encoder) EncodeLink(text string, url string) string
- func (b *Encoder) EncodeModelLink(firstText string, m any) string
- func (b *Encoder) EncodeModelLinkDedupe(firstText string, subsequentText string, m any) string
- func (b *Encoder) EncodeOrderedList(items []string) string
- func (b *Encoder) EncodePara(s string) string
- func (b *Encoder) EncodePre(s string) string
- func (b *Encoder) EncodeUnorderedList(items []string) string
- func (b *Encoder) EncodeWithCitations(s string, citations []*model.GeneralCitation) string
- func (e *Encoder) Heading1(s string)
- func (b *Encoder) Heading2(s string)
- func (b *Encoder) Heading3(s string)
- func (b *Encoder) Heading4(s string)
- func (b *Encoder) Image(alt string, link string)
- func (e *Encoder) Markdown() string
- func (b *Encoder) OrderedList(items []string)
- func (b *Encoder) Para(s string)
- func (b *Encoder) Pre(s string)
- func (e *Encoder) RawMarkdown(s string)
- func (b *Encoder) ResetSeenLinks()
- func (e *Encoder) SetBody(s string)
- func (e *Encoder) SetLinkBuilder(l LinkBuilder)
- func (b *Encoder) UnorderedList(items []string)
- func (e *Encoder) WriteMarkdown(w io.Writer) error
- type LinkBuilder
Constants ¶
View Source
const ( MarkdownTagTitle = "title" MarkdownTagSummary = "summary" MarkdownTagLayout = "layout" MarkdownTagTags = "tags" MarkdownTagCategory = "category" MarkdownTagID = "id" MarkdownTagBasePath = "basepath" MarkdownTagNextPage = "next" MarkdownTagPrevPage = "prev" MarkdownTagFirstPage = "first" MarkdownTagLastPage = "last" MarkdownTagIndexPage = "index" )
View Source
const DirectAncestorMarker = "★"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { Encoder // contains filtered or unexported fields }
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) EncodeBlockQuote ¶
func (*Encoder) EncodeBold ¶
func (*Encoder) EncodeCitation ¶
func (*Encoder) EncodeCitationDetail ¶
func (b *Encoder) EncodeCitationDetail(c *model.GeneralCitation) string
func (*Encoder) EncodeDefinitionList ¶
func (*Encoder) EncodeEmptyPara ¶
func (*Encoder) EncodeHeading1 ¶
func (*Encoder) EncodeHeading2 ¶
func (*Encoder) EncodeHeading3 ¶
func (*Encoder) EncodeHeading4 ¶
func (*Encoder) EncodeItalic ¶
func (*Encoder) EncodeModelLinkDedupe ¶
func (*Encoder) EncodeOrderedList ¶
func (*Encoder) EncodePara ¶
func (*Encoder) EncodeUnorderedList ¶
func (*Encoder) EncodeWithCitations ¶
func (b *Encoder) EncodeWithCitations(s string, citations []*model.GeneralCitation) string
func (*Encoder) OrderedList ¶
func (*Encoder) RawMarkdown ¶
func (*Encoder) ResetSeenLinks ¶
func (b *Encoder) ResetSeenLinks()
func (*Encoder) SetLinkBuilder ¶
func (e *Encoder) SetLinkBuilder(l LinkBuilder)
func (*Encoder) UnorderedList ¶
type LinkBuilder ¶
Click to show internal directories.
Click to hide internal directories.