zwsp

package
v0.0.5-0...-0379fef Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package zwsp provides functions for inserting and removing zero-width spaces from a string. This package also works with Markdown.

Index

Constants

View Source
const Frequency = 4

The frequency to insert a zero-width space into a paragraph.

View Source
const Offset = -2

Offset sets the offset for the number used to determine insertion.

Variables

View Source
var URLPrefixes = []string{"https://", "http://"}

Functions

func Delete

func Delete(from string) string

Delete removes all zero-width spaces from a string.

func Insert

func Insert(into 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