markdown

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToHTML added in v0.4.0

func ConvertToHTML(s string) string

Types

type Mark

type Mark struct {
	Meta    Meta
	Raw     []byte
	Content string
	Brief   string
}

func Parse

func Parse(r io.Reader) (result *Mark, err error)

func (*Mark) WriteFile

func (m *Mark) WriteFile(filename string) error

type Meta added in v0.3.0

type Meta yaml.MapSlice

func (Meta) Get added in v0.3.0

func (m Meta) Get(path string) interface{}

Get returns the value by path

{
  "a": {
    "b": {
      "c": 1
    }
  }
}

e.g. Get("a.b.c") returns 1

func (Meta) GetBool added in v0.3.0

func (m Meta) GetBool(path string) bool

func (Meta) GetInt added in v1.0.0

func (m Meta) GetInt(path string) int

func (Meta) GetString added in v0.3.0

func (m Meta) GetString(path string) string

func (Meta) GetStringSlice added in v0.4.0

func (m Meta) GetStringSlice(path string) []string

func (Meta) Set added in v0.3.0

func (m Meta) Set(path string, value interface{}) Meta

Jump to

Keyboard shortcuts

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