check

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package check implements markdown basic checkings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAutofix

func WithAutofix(on bool) option

WithAutofix set auto fix during checking.

func WithMarkdownDir

func WithMarkdownDir(dir string) option

WithMarkdownDir set markdown path to checking.

func WithMetaDir

func WithMetaDir(dir string) option

WithMetaDir set markdown meta data path for checking.

Types

type CheckResult

type CheckResult struct {
	Path string `json:"path"`
	Text string `json:"text,omitempty"`
	Err  string `json:"err,omitempty"`
	Warn string `json:"warn,omitempty"`
}

func Check

func Check(opts ...option) (res []*CheckResult, err error)

Jump to

Keyboard shortcuts

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