website: Index | Files

package markdown

import ""

Package markdown provides a wrapper for rendering Markdown. It is intended to be used on the website.

This package is not intended for general use, and its API is not guaranteed to be stable.


Package Files


func Render Uses

func Render(src []byte) ([]byte, error)

Render converts a limited and opinionated flavor of Markdown (compliant with CommonMark 0.29) to HTML for the purposes of websites. This should not be adjusted except for the needs of *

The Markdown source may contain raw HTML and Go templates. Sanitization of untrusted content is not performed: the caller is responsible for ensuring that only trusted content is provided.

Package markdown imports 4 packages (graph) and is imported by 2 packages. Updated 2021-01-22. Refresh now. Tools for package owners.