markdown

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: GPL-3.0 Imports: 18 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 parses the content of Markdown notes.

func NewParser

func NewParser(options ParserOpts, logger util.Logger) *Parser

NewParser creates a new Markdown Parser.

func (*Parser) ParseNoteContent added in v0.7.0

func (p *Parser) ParseNoteContent(content string) (*core.NoteContent, error)

ParseNoteContent implements core.NoteContentParser.

type ParserOpts

type ParserOpts struct {
	// Indicates whether #hashtags are parsed.
	HashtagEnabled bool
	// Indicates whether Bear's multi-word tags are parsed. Hashtags must be enabled as well.
	MultiWordTagEnabled bool
	// Indicates whether :colon:tags: are parsed.
	ColontagEnabled bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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