Help us shape the future of Go! Take the 2026 Go Developer Survey

hugocontext

package
v0.153.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger loggers.Logger) goldmark.Extender

func Wrap

func Wrap(b []byte, pid uint64) string

Wrap wraps the given byte slice in a Hugo context that used to determine the correct Page in .RenderShortcodes.

Types

type HugoContext

type HugoContext struct {
	ast.BaseInline

	Closing bool

	// Internal page ID. Not persisted.
	Pid uint64
}

HugoContext is a node that represents a Hugo context.

func (*HugoContext) Dump

func (n *HugoContext) Dump(source []byte, level int)

Dump implements Node.Dump.

func (*HugoContext) Kind

func (h *HugoContext) Kind() ast.NodeKind

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL