package internal
import "github.com/gohugoio/hugo/markup/asciidocext/internal"
Index ¶
- func HasAsciiDoc() bool
- type AsciidocConverter
- func (a *AsciidocConverter) AppendArg(args []string, option, value, defaultValue string, allowedValues map[string]bool) []string
- func (a *AsciidocConverter) Convert(ctx converter.RenderContext) (converter.ResultRender, error)
- func (a *AsciidocConverter) GetAsciidocContent(src []byte, ctx converter.DocumentContext) ([]byte, error)
- func (a *AsciidocConverter) ParseArgs(ctx converter.DocumentContext) []string
- func (a *AsciidocConverter) Supports(_ identity.Identity) bool
- type AsciidocResult
Functions ¶
func HasAsciiDoc ¶
func HasAsciiDoc() bool
Types ¶
type AsciidocConverter ¶
type AsciidocConverter struct { Ctx converter.DocumentContext Cfg converter.ProviderConfig }
func (*AsciidocConverter) AppendArg ¶
func (a *AsciidocConverter) AppendArg(args []string, option, value, defaultValue string, allowedValues map[string]bool) []string
func (*AsciidocConverter) Convert ¶
func (a *AsciidocConverter) Convert(ctx converter.RenderContext) (converter.ResultRender, error)
func (*AsciidocConverter) GetAsciidocContent ¶
func (a *AsciidocConverter) GetAsciidocContent(src []byte, ctx converter.DocumentContext) ([]byte, error)
GetAsciidocContent calls asciidoctor as an external helper to convert AsciiDoc content to HTML.
func (*AsciidocConverter) ParseArgs ¶
func (a *AsciidocConverter) ParseArgs(ctx converter.DocumentContext) []string
func (*AsciidocConverter) Supports ¶
func (a *AsciidocConverter) Supports(_ identity.Identity) bool
type AsciidocResult ¶
type AsciidocResult struct { converter.ResultRender // contains filtered or unexported fields }
func (AsciidocResult) TableOfContents ¶
func (r AsciidocResult) TableOfContents() *tableofcontents.Fragments
Source Files ¶
- Version
- v0.144.2 (latest)
- Published
- Feb 19, 2025
- Platform
- linux/amd64
- Imports
- 10 packages
- Last checked
- 13 hours ago –
Tools for package owners.