markdown

package
v0.9.15-beta-15 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package markdown provides Markdown utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TemplateHTML

func TemplateHTML(md string, fixCarets bool) template.HTML

TemplateHTML renders Markdown into template.HTML suitable for use in cmd/server. Embedded Markdown in Go code blocks is typically quoted using back quotes ("`") which are used within Markdown for fixed font markup.

The fixCarets flag will change every caret character ("^") in the provided string to a back quote ("`") prior to parsing the Markdown text, allowing carets to be used for fixed font markup instead of back quotes. Set fixCarets to true for use with back quoted strings with carets, false for use with embedded Markdown files containing back quotes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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