extensions

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SectionStartFormat = "<!-- section-start %s -->\n"
	SectionEndFormat   = "\n<!-- section-end %s -->"
)

Variables

View Source
var Section = &section{}

Section is an extension that allow you to use group content under a shared parent ast node.

Functions

func NewSectionMarkdownRenderer added in v0.3.0

func NewSectionMarkdownRenderer() renderer.NodeRenderer

func NewSectionParser

func NewSectionParser() parser.BlockParser

NewSectionParser returns a new BlockParser that can parse a section block. Section blocks can be used to group various nodes under a parent ast node. This parser must take precedence over the parser.HTMLParser.

Types

type SectionMarkdownRenderer added in v0.3.0

type SectionMarkdownRenderer struct{}

func (SectionMarkdownRenderer) RegisterFuncs added in v0.3.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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