text

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2018 License: MIT Imports: 2 Imported by: 2

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.

Jump to

Keyboard shortcuts

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