package images

import "github.com/gohugoio/hugo/markup/goldmark/images"

Index

Constants

const (
	// Used to signal to the rendering step that an image is used in a block context.
	// Dont's change this; the prefix must match the internalAttrPrefix in the root goldmark package.
	AttrIsBlock = "_h__isBlock"
	AttrOrdinal = "_h__ordinal"
)

Functions

func New

func New(wrapStandAloneImageWithinParagraph bool) goldmark.Extender

Types

type Transformer

type Transformer struct {
	// contains filtered or unexported fields
}

func (*Transformer) Transform

func (t *Transformer) Transform(doc *ast.Document, reader text.Reader, pctx parser.Context)

Transform transforms the provided Markdown AST.

Source Files

transform.go

Version
v0.144.2 (latest)
Published
Feb 19, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
13 hours ago

Tools for package owners.