Package Usage: go: github.com/russross/blackfriday
Package blackfriday is a Markdown processor.
It translates plain text with simple formatting rules into HTML or LaTeX.
Blackfriday includes an algorithm for creating sanitized anchor names
corresponding to a given input text. This algorithm is used to create
anchors for headings when EXTENSION_AUTO_HEADER_IDS is enabled. The
algorithm is specified below, so that other packages can create
compatible anchor names and links to those anchors.
The algorithm iterates over the input text, interpreted as UTF-8,
one Unicode code point (rune) at a time. All runes that are letters (category L)
or numbers (category N) are considered valid characters. They are mapped to
lower case, and included in the output. All other runes are considered
invalid characters. Invalid characters that preceed the first valid character,
as well as invalid character that follow the last valid character
are dropped completely. All other sequences of invalid characters
between two valid characters are replaced with a single dash character '-'.
SanitizedAnchorName exposes this functionality, and can be used to
create compatible links to the anchor names generated by blackfriday.
This algorithm is also implemented in a small standalone package at
github.com/shurcooL/sanitized_anchor_name. It can be useful for clients
that want a small package and don't need full functionality of blackfriday.
5 versions
Latest release: almost 8 years ago
7,968 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/russross/blackfriday
Dependent Repos 6
swh/infra/ci-cd/3rdparty/cert-manager-webhook-gandi
Last synced: 7 months ago - Pushed: 11 months ago

ANSSI-FR/ultrablue
User-friendly Lightweight TPM Remote Attestation over BluetoothSize: 3.87 MB - Last synced: about 8 hours ago - Pushed: about 2 years ago


