md

package
v0.0.67 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0, NCSA Imports: 2 Imported by: 0

Documentation

Overview

Package md provides some helper functions for creating marked down for Kythe documentation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Link(content, destination string) string

Link creates a markdown link. Content must be html and md escaped prior to calling this function.

func ProcessLinks(content string, links []LinkInfo) string

ProcessLinks adds markdown links to the provided content based on the provided link information. This content can be rendered by the client

Types

type LinkInfo

type LinkInfo struct {
	StartByte   int
	Length      int
	Destination string
}

LinkInfo contains information about the placement and destination of linkable text

Jump to

Keyboard shortcuts

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