escape

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package escape escapes characters that are commonly used in markdown like the * for strong/italic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarkdownCharacters

func MarkdownCharacters(text string) string

MarkdownCharacters escapes common markdown characters so that `<p>**Not Bold**</p> ends up as correct markdown `\*\*Not Strong\*\*`. No worry, the escaped characters will display fine, just without the formatting.

func MarkdownCharactersWithEscape

func MarkdownCharactersWithEscape(text string, startSymbols []string, endSymbols []string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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