Documentation
¶
Index ¶
- func GetPageAndPageInner(rctx *Context) (any, any)
- func NewBaseContext(rctx *Context, renderer any, n ast.Node, src []byte, ...) hooks.BaseContext
- func TextPlain(n ast.Node, source []byte) string
- type BufWriter
- type Context
- func (ctx *Context) GetAndIncrementOrdinal(kind ast.NodeKind) int
- func (ctx *Context) PeekPid() uint64
- func (ctx *Context) PeekValue(k ast.NodeKind) any
- func (ctx *Context) PopPid() uint64
- func (ctx *Context) PopPos() int
- func (ctx *Context) PopRenderedString() string
- func (ctx *Context) PopValue(k ast.NodeKind) any
- func (ctx *Context) PushPid(pid uint64)
- func (ctx *Context) PushPos(n int)
- func (ctx *Context) PushValue(k ast.NodeKind, v any)
- type ContextData
- type RenderContextDataHolder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPageAndPageInner ¶
GetPageAndPageInner returns the current page and the inner page for the given context.
Types ¶
type Context ¶
type Context struct {
*BufWriter
ContextData
// contains filtered or unexported fields
}
func (*Context) GetAndIncrementOrdinal ¶
func (*Context) PopRenderedString ¶
type ContextData ¶
type ContextData interface {
RenderContext() converter.RenderContext
DocumentContext() converter.DocumentContext
}
type RenderContextDataHolder ¶
type RenderContextDataHolder struct {
Rctx converter.RenderContext
Dctx converter.DocumentContext
}
func (*RenderContextDataHolder) DocumentContext ¶
func (ctx *RenderContextDataHolder) DocumentContext() converter.DocumentContext
func (*RenderContextDataHolder) RenderContext ¶
func (ctx *RenderContextDataHolder) RenderContext() converter.RenderContext
Click to show internal directories.
Click to hide internal directories.