Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributesOptionsSliceProvider ¶
type AttributesOptionsSliceProvider interface { AttributesSlice() []attributes.Attribute OptionsSlice() []attributes.Attribute }
type AttributesProvider ¶
type CodeBlockRenderer ¶
type CodeBlockRenderer interface { RenderCodeblock(w hugio.FlexiWriter, ctx CodeblockContext) error identity.Provider }
type CodeblockContext ¶
type CodeblockContext interface { AttributesProvider text.Positioner Options() map[string]any Type() string Inner() string Ordinal() int Page() any }
type ElementPositionResolver ¶
ElementPositionResolver provides a way to resolve the start Position of a markdown element in the original source document. This may be both slow and approximate, so should only be used for error logging.
type GetRendererFunc ¶
type GetRendererFunc func(t RendererType, id any) any
type IsDefaultCodeBlockRendererProvider ¶
type IsDefaultCodeBlockRendererProvider interface {
IsDefaultCodeBlockRenderer() bool
}
type LinkContext ¶
type LinkRenderer ¶
type RendererType ¶
type RendererType int
const ( LinkRendererType RendererType = iota + 1 ImageRendererType HeadingRendererType CodeBlockRendererType )
Click to show internal directories.
Click to hide internal directories.