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 ¶ added in v0.134.0
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 ¶ added in v0.132.0
func (*Context) PeekPid ¶ added in v0.125.0
PeekPid returns the current page ID without removing it from the stack.
func (*Context) PopRenderedString ¶ added in v0.134.0
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.