utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PageFromMarkdownFile

func PageFromMarkdownFile(config *entities.Config, path fields.Path) (*entities.Page, error)

PageFromMarkdownFile creates a new page from a markdown file.

Types

type H1TextExtractor

type H1TextExtractor struct {
	Segment text.Segment
}

H1TextExtractor is a markdown AST visitor that extracts the text from the first h1 tag.

func (*H1TextExtractor) Visit

func (h *H1TextExtractor) Visit(node ast.Node, entering bool) ast.WalkStatus

Visit implements the ast.Visitor interface.

Jump to

Keyboard shortcuts

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