markdown

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: MIT Imports: 5 Imported by: 10

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 Linkify

func Linkify(url, text string) string

Linkify constructs a link from url and text inputs. This function does not handle escaping so it should be done before hand, e.g. using `\[` instead of `[` by itself in the `text`.

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. Default is `true`.

func StreamRemarkHTML

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

func URLToMarkdownLinkHostname added in v0.37.0

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