mirror of
https://github.com/calmh/github_flavored_markdown.git
synced 2026-07-17 01:25:02 +00:00
GitHub Flavored Markdown renderer with fenced code block highlighting, clickable header anchor links.
- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
In module mode, build.Import can only find Go packages, not arbitrary directories in a GOPATH workspace. |
||
| gfmstyle | ||
| .travis.yml | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| main.go | ||
| main_test.go | ||
| README.md | ||
| sanitize_test.go | ||
github_flavored_markdown
Package github_flavored_markdown provides a GitHub Flavored Markdown renderer with fenced code block highlighting, clickable heading anchor links.
The functionality should be equivalent to the GitHub Markdown API endpoint specified at https://developer.github.com/v3/markdown/#render-a-markdown-document-in-raw-mode, except the rendering is performed locally.
See examples for how to generate a complete HTML page, including CSS styles.
Installation
go get github.com/shurcooL/github_flavored_markdown
Directories
| Path | Synopsis |
|---|---|
| gfmstyle | Package gfmstyle contains CSS styles for rendering GitHub Flavored Markdown. |