passthrough

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KindPassthroughBlock = ast.NewNodeKind("PassthroughBlock")

KindPassthroughBlock is a NodeKind of the PassthroughBlock node.

View Source
var KindPassthroughInline = ast.NewNodeKind("PassthroughInline")

KindPassthroughInline is a NodeKind of the PassthroughInline node.

View Source
var PassthroughInlineTransformer = &passthroughInlineTransformer{}

Functions

func New added in v0.2.0

func New(c Config) goldmark.Extender

Types

type Config added in v0.2.0

type Config struct {
	InlineDelimiters []Delimiters
	BlockDelimiters  []Delimiters
}

Config configures this extension.

type Delimiters

type Delimiters struct {
	Open  string
	Close string
}

type PassthroughBlock

type PassthroughBlock struct {
	ast.BaseBlock
}

A PassthroughBlock struct represents a fenced block of raw text to pass through unchanged. This is not parsed directly, but emitted by an ASTTransformer that splits a paragraph at the point of an inline passthrough with the matching block delimiters.

func (*PassthroughBlock) Dump

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

Dump implements Node.Dump.

func (*PassthroughBlock) Kind

func (n *PassthroughBlock) Kind() ast.NodeKind

Kind implements Node.Kind.

Jump to

Keyboard shortcuts

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