parser

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsJSONObject

func IsJSONObject(data []byte) bool

IsJSONObject checks if the input looks like a JSON object

func JSONToMarkdown

func JSONToMarkdown(jsonData []byte, bodyKey string) ([]byte, error)

JSONToMarkdown converts JSON back to markdown with frontmatter bodyKey specifies which JSON property contains the markdown body

func MarkdownToJSON

func MarkdownToJSON(markdown []byte, bodyKey string, pretty bool) ([]byte, error)

MarkdownToJSON converts markdown with frontmatter to JSON bodyKey specifies the JSON property name for the markdown body content pretty determines if the JSON should be formatted with indentation

Types

This section is empty.

Jump to

Keyboard shortcuts

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