markdown

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FencedCodeBlockLanguageHcl       = "hcl"
	FencedCodeBlockLanguageMissing   = "MISSING"
	FencedCodeBlockLanguageTerraform = "terraform"
)

Variables

This section is empty.

Functions

func FencedCodeBlockLanguage

func FencedCodeBlockLanguage(fcb *ast.FencedCodeBlock, source []byte) string

FencedCodeBlockLanguage returns the language or "MISSING"

func FencedCodeBlockText

func FencedCodeBlockText(fcb *ast.FencedCodeBlock, source []byte) string

FencedCodeBlockText returns the text

func Parse

func Parse(source []byte) (ast.Node, map[string]interface{})

Parse converts a Markdown source into AST and metadata

Types

This section is empty.

Jump to

Keyboard shortcuts

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