We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using this file:
$ cat input.md https://en.wikipedia.org/wiki/The_Master_(2012_film)
I get this result:
$ mmark -html input.md <!DOCTYPE html> <html> <!-- ... --> <body> <p><a href="https://en.wikipedia.org/wiki/The_Master_(2012_film" >https://en.wikipedia.org/wiki/The_Master_(2012_film</a>)</p> </body> </html>
Note that the final parenthesis is not included as part of the link. Other processors work as expected. For example GitHub parser:
https://en.wikipedia.org/wiki/The_Master_(2012_film)
The text was updated successfully, but these errors were encountered:
Here is a workaround:
package main import ( "bytes" "github.com/yuin/goldmark" "github.com/yuin/goldmark/extension" ) func main() { s1 := "https://en.wikipedia.org/wiki/The_Master_(2012_film)" o1 := goldmark.New(goldmark.WithExtensions(extension.Linkify)) var b2 bytes.Buffer o1.Convert([]byte(s1), &b2) s2 := b2.String() print(s2) }
https://github.com/yuin/goldmark
Sorry, something went wrong.
Enclose the link with < and >
<
>
No branches or pull requests
Using this file:
I get this result:
Note that the final parenthesis is not included as part of the link. Other
processors work as expected. For example GitHub parser:
https://en.wikipedia.org/wiki/The_Master_(2012_film)
The text was updated successfully, but these errors were encountered: