blackfriday icon indicating copy to clipboard operation
blackfriday copied to clipboard

Blackfriday: a markdown processor for Go

Results 121 blackfriday issues
Sort by recently updated
recently updated
newest added

my markdown: ```markdown ```java public interface List extends Collection { // 内容省略 } ``` ``` my go code: ```golang input := []byte(article.Content) unsafe := blackfriday.Run(input, blackfriday.WithExtensions(blackfriday.CommonExtensions)) p := bluemonday.UGCPolicy() p.AllowAttrs("class").Matching(regexp.MustCompile("^language-[a-zA-Z0-9]+$")).OnElements("code")...

The below program panics: `package main import ( "github.com/russross/blackfriday/v2" ) func main() { input := ": \n\n0\n00" blackfriday.Run([]byte(input)) }` The Program out: ![image](https://user-images.githubusercontent.com/99457708/175028913-4165be85-8426-4b97-8718-414174a3baf5.png) The bug was found with the help...

The below program panics: `package main import ( "github.com/russross/blackfriday/v2" ) func main() { input := "[0000000]:

when parsing markdown and rendering it into html bitcoin and monero uri's are not rendered as a link example markdown `[donate](monero:83UXh3SQZGk63yCWA8cQcQFrYL6xat3aNASZcz7USgy94neK8proFxU1BJhxr4PWNPJy1ScKX2oxy6TX3BmcGJk67JbJmXG)` current output `donate` desired output `donate` https://www.iana.org/assignments/uri-schemes/prov/bitcoin For a...

This PR adds an extension `IgnoreUnderscore` that can be used to skip processing all underscores. Similar to `NoIntraEmphasis` this extension can be used by users to control the rendering behavior...

Fixes the quotes joins on multiple quotes.

I'd like it if this could be configured to generate UTF-8 characters instead of HTML entities for the smart quotes and dashes. It's not a big deal, just a preference...

Hi, While I was fuzzing this library with [go-fuzz](https://github.com/dvyukov/go-fuzz), I am encountered with the following panic (index out of range error). I assume it is a simple size check mistake...

Trying to write a program that's mostly an AST transformer, but I can't seem to find any way to turn a (v2) node back into markdown text ( short of...

question

This file causes panic on parse: https://raw.githubusercontent.com/carnot-technologies/redis-scaling/master/README.md The panic: ``` panic: runtime error: index out of range [709] with length 709 [recovered] panic: runtime error: index out of range [709]...