perkeep/third_party/github.com/shurcooL/sanitized_anchor_name
Will Norris 6c231339dc add blackfriday and deps to third_party
russross/blackfriday (BSD license, version 8cec3a8) parses and converts
markdown to HMTL.

shurcooL/sanitized_anchor_name (MIT license, version 11a20b7) generates
anchor names for HTML headings.

Change-Id: I475ec76a1a252354071abfbe2d9c97b234144b3e
2015-07-23 14:57:04 -07:00
..
README.md add blackfriday and deps to third_party 2015-07-23 14:57:04 -07:00
main.go add blackfriday and deps to third_party 2015-07-23 14:57:04 -07:00
main_test.go add blackfriday and deps to third_party 2015-07-23 14:57:04 -07:00

README.md

sanitized_anchor_name Build Status

Package sanitized_anchor_name provides a func to create sanitized anchor names.

Its logic can be reused by multiple packages to create interoperable anchor names and links to those anchors.

At this time, it does not try to ensure that generated anchor names are unique, that responsibility falls on the caller.

Example

anchorName := sanitized_anchor_name.Create("This is a header")

fmt.Println(anchorName)

// Output:
// this-is-a-header

License