Versions in this module Expand all Collapse all v0 v0.14.0 May 13, 2023 Changes in this version + func BeginPhrasingMacroInParagraph(exp Exporter, nospace bool) + func DefaultExporterMacros() map[string]func(Exporter) + func EnglishTypography(exp Exporter, text []ast.Inline) []ast.Inline + func FrenchTypography(exp Exporter, text []ast.Inline) []ast.Inline + func IsTrue(s string) bool + func MinimalExporterMacros() map[string]func(Exporter) + func ProcessFrundisSource(exp Exporter, filename string, unrestricted bool) error + func SearchIncFile(exp Exporter, filename string) (string, bool) + type BaseExporter interface + Context func() *Context + Init func() + PostProcessing func() + Reset func() error + type Context struct + Args [][]ast.Inline + Dtags map[string]Dtag + FigCount int + Filters map[string]func(string) string + Format string + Ftags map[string]Ftag + ID string + IDX string + IDs map[string]IDInfo + Images []string + Inline bool + LoXstack map[string][]*LoXinfo + Macro string + Macros map[string]func(Exporter) + Mtags map[string]Mtag + Params map[string]string + PrevMacro string + Process bool + Table TableInfo + Toc *TocInfo + Unrestricted bool + Verse VerseInfo + WantsSpace bool + Werror io.Writer + Wout *bufio.Writer + func (ctx *Context) Error(msgs ...interface{}) + func (ctx *Context) Errorf(format string, msgs ...interface{}) + func (ctx *Context) Init() + func (ctx *Context) InlinesToText(elts []ast.Inline) string + func (ctx *Context) ParseOptions(spec map[string]Option, args [][]ast.Inline) (map[string][]ast.Inline, map[string]bool, [][]ast.Inline) + func (ctx *Context) Reset() + func (ctx *Context) W() io.Writer + type Dtag struct + Cmd string + Pairs []string + type Exporter interface + Xdtag func(cmd string, pairs []string) Dtag + Xmtag func(cmd *string, begin string, end string, pairs []string) Mtag + type Ftag struct + Shell string + type IDInfo struct + Name string + Ref string + Type IDType + type IDType int + const BdID + const FigureID + const HeaderID + const InlineImID + const NoID + const PoemID + const SmID + const TableID + const UntitledList + type LoXinfo struct + Count int + ID string + Macro string + Nonum bool + Num string + Ref string + RefPrefix string + Title string + type Mtag struct + Begin string + Cmd string + End string + Pairs []string + type Option int + const ArgOption + const FlagOption + type ParagraphBreak int + const ParBreakBlock + const ParBreakForced + const ParBreakItem + const ParBreakNormal + type Renderer interface + BeginDescList func(id string) + BeginDescValue func() + BeginDialogue func() + BeginDisplayBlock func(tag string, id string) + BeginEnumItem func() + BeginEnumList func(id string) + BeginHeader func(macro string, numbered bool, title string) + BeginItem func() + BeginItemList func(id string) + BeginMarkupBlock func(tag string, id string) + BeginParagraph func() + BeginPhrasingMacroInParagraph func(nospace bool) + BeginTable func(tableinfo *TableData) + BeginTableCell func() + BeginTableRow func() + BeginVerse func(title string, id string) + BeginVerseLine func() + CheckParamAssignement func(param string, value string) bool + CrossReference func(idf IDInfo, punct string) + DescName func(name string) + EndDescList func() + EndDescValue func() + EndDisplayBlock func(tag string) + EndEnumItem func() + EndEnumList func() + EndHeader func(macro string, numbered bool, title string) + EndItem func() + EndItemList func() + EndMarkupBlock func(tag string, id string, punct string) + EndParagraph func(ParagraphBreak) + EndStanza func() + EndTable func(*TableData) + EndTableCell func() + EndTableRow func() + EndVerse func() + EndVerseLine func() + FigureImage func(image string, caption string, link string, alt string) + FormatParagraph func(text []byte) []byte + GenRef func(prefix string, id string, hasfile bool) string + HeaderReference func(macro string) string + InlineImage func(image string, link string, id string, punct string, alt string) + LkWithLabel func(url string, label string, punct string) + LkWithoutLabel func(url string, punct string) + ParagraphTitle func(title string) + RenderText func([]ast.Inline) string + TableOfContents func(opts map[string][]ast.Inline, flags map[string]bool) + TableOfContentsInfos func(flags map[string]bool) + type TableData struct + Cols int + ID string + Title string + type TableInfo struct + Cell int + Count int + TitCount int + type TocInfo struct + ChapterCount int + ChapterNum int + HasChapter bool + HasPart bool + HeaderCount int + PartCount int + PartNum int + SectionCount int + SectionNum int + SubsectionCount int + SubsectionNum int + func (t *TocInfo) HeaderLevel(macro string) int + func (t *TocInfo) HeaderNum(macro string, nonum bool) (num string) + func (t *TocInfo) NavCount() int + type VerseInfo struct + Used bool