convert

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConvertTypeNotSupported = errors.New("convert: type not supported")
)

Functions

func ConvertMarkdown

func ConvertMarkdown(ct ConvertType, md []byte) ([]byte, error)

func NewMarkdownRenderer

func NewMarkdownRenderer(ct ConvertType) (markdown.Renderer, error)

Types

type ConvertType

type ConvertType string
const (
	ConvertTypeHtml  ConvertType = "html"
	ConvertTypeJira  ConvertType = "jira"
	ConvertTypeSlack ConvertType = "slack"
)

func (ConvertType) String

func (ct ConvertType) String() string

Directories

Path Synopsis
render

Jump to

Keyboard shortcuts

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