github_flavored_markdown
github_flavored_markdown copied to clipboard
GitHub Flavored Markdown renderer with fenced code block highlighting, clickable header anchor links.
We are using this package at [Source Graph](https://github.com/sourcegraph/sourcegraph) to render markdown [files](https://sourcegraph.com/github.com/sourcegraph/deploy-sourcegraph@ab7785db55b4d140835fd562c8c7b59bb6f0c6b8/-/blob/docs/k8s.eks.md#create-kubernetes-cluster-worker-nodes). The markdown table is not converted into HTML if it is wrapped with `div` in the markdown text....
Consider the following markdown input: `````` - List item 1 - List item 2 ``` some code here ``` more text here ``` more code here ``` `````` Your package...
Any solution to do it rather than jiust "raw mode" for GFM?>
`:smile:` is not translated as 😄 . Please support this GFM feature.
For https://pkg.go.dev/github.com/shurcooL/github_flavored_markdown#example-Markdown-CompleteHTMLPage I tried with http handler: ```go http.Handle("/assets/", http.StripPrefix("/assets", http.FileServer(gfmstyle.Assets))) http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { io.WriteString(w, ``) markdown := []byte("# GitHub Flavored Markdown\n\nHello.") w.Write(github_flavored_markdown.Markdown(markdown)) io.WriteString(w, ``) }) http.ListenAndServe(":8000",...
Thanks @shurcooL for the great library! I was reading #12 because I was also having problems with `dep`. I managed to just modify my `Gopkg.toml` to use version 1.5 of...
Fix for #18. Now heading with same text : ```md # General ## General ### General ``` will rendered with unique ID for each heading : ```html General General General...
For example, I have a markdown file like this : ```md # General ## General ### General ``` This package will render all headings with same reference : ```html General...
Actually, I didn't find any example of usage, when `for _, elt := range strings.Fields(lang) { ... }` loop is useful. That's why I deleted it. If I'm not right,...
* Add separate function for creating ugcPolicy. Earlier variant looked ugly and unnatural. * Move the declaration of ugcPolicy and extensions up to file. * Fix some comments