util

package
v0.0.0-...-5c1de5d Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatPost

func FormatPost(msg string) string

Constructs raw html based on a user message. The output must be escaped.

- Blank lines separate paragraphs

- ``` is used to fence code blocks

- Urls become links

- Post id's prefixed with `>>` become thread local links

TODO: This is slow (puts rendering from 2ms to 500ms for a long thread) and should be optimized.

Types

This section is empty.

Jump to

Keyboard shortcuts

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