markdown

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoldText

func BoldText(haystack, needle string) string

BoldText bodifies the identified text. It looks for start of words using a word boundary and will arbirarily end to match words with different suffixes.

func RemarkHTML

func RemarkHTML(data PresentationData) string

func SkypeToMarkdown

func SkypeToMarkdown(input string, stripUrlAutoLink bool) string

SkypeToMarkdown converts Skype markup to Markdown. This is specifically useful for converting Slack messages to Markdown. The `stripUrlAutoLink` parameter will remove links when they are within 3 backticks and the link innerHTML and URl match.

func StreamRemarkHTML

func StreamRemarkHTML(qw422016 *qt422016.Writer, data PresentationData)

func UrlToMarkdownLinkHostname

func UrlToMarkdownLinkHostname(url string) string

func WriteRemarkHTML

func WriteRemarkHTML(qq422016 qtio422016.Writer, data PresentationData)

Types

type PresentationData

type PresentationData struct {
	Slides []RemarkSlideData
}

type RemarkSlideData

type RemarkSlideData struct {
	Layout   string
	Class    string
	Markdown string
}

func (*RemarkSlideData) ToRemarkString

func (data *RemarkSlideData) ToRemarkString() string

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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