Documentation ¶
Index ¶
- func BoldText(haystack, needle string) string
- func Linkify(url, text string) string
- func RemarkHTML(data PresentationData) string
- func SkypeToMarkdown(input string, stripUrlAutoLink bool) string
- func StreamRemarkHTML(qw422016 *qt422016.Writer, data PresentationData)
- func UrlToMarkdownLinkHostname(url string) string
- func WriteRemarkHTML(qq422016 qtio422016.Writer, data PresentationData)
- type PresentationData
- type RemarkSlideData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoldText ¶
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 ¶
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 ¶
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 WriteRemarkHTML ¶
func WriteRemarkHTML(qq422016 qtio422016.Writer, data PresentationData)
Types ¶
type PresentationData ¶
type PresentationData struct {
Slides []RemarkSlideData
}
type RemarkSlideData ¶
func (*RemarkSlideData) ToRemarkString ¶
func (data *RemarkSlideData) ToRemarkString() string
Click to show internal directories.
Click to hide internal directories.