md

package
v0.0.0-...-765903b Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const HighlightStyle = "solarized-dark"

HighlightStyle determines the syntax highlighting colorstyle: https://xyproto.github.io/splash/docs/all.html

Variables

This section is empty.

Functions

func Parse

func Parse(d *state.State, m *discord.Message) template.HTML

func ParseString

func ParseString(c string) template.HTML

func RenderCodeBlock

func RenderCodeBlock(lang, content string) string

RenderCodeBlock renders the node to a syntax highlighted code

Types

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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