text

package
Version: v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package text performs text manipulation on html strings it is used by stories and comments

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertLinks(s string) string

ConvertLinks returns the text with various transformations applied - bare links are turned into anchor tags, and @refs are turned into user links. this is somewhat fragile, better to parse the html

func ConvertNewlines

func ConvertNewlines(s string) string

ConvertNewlines converts \n to paragraph tags if the text already contains paragraph tags, return unaltered

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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