parser

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

Parser handles markdown parsing and HTML conversion

func New

func New() *Parser

New creates a new parser with goldmark configured for blog posts

func (*Parser) ParseAllPosts

func (p *Parser) ParseAllPosts(inputDir string) (models.PostList, error)

ParseAllPosts discovers and parses all posts in a directory

func (*Parser) ParseFile

func (p *Parser) ParseFile(filePath string) (*models.Post, error)

ParseFile reads a markdown file and parses it into a Post

func (*Parser) ParseMarkdown

func (p *Parser) ParseMarkdown(content []byte) (*models.Post, error)

ParseMarkdown parses markdown content with frontmatter into a Post

Jump to

Keyboard shortcuts

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