You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of goldmark are you using? :
Latest from master i.e. v1.1.31 or 3d78558
What version of Go are you using? : go version go1.14.2 linux/amd64
What operating system and processor architecture are you using? : Fedora 32 on amd64
What did you do? :
package main
import (
"bytes""fmt""github.com/yuin/goldmark""github.com/yuin/goldmark/extension"
)
funcmain() {
md:=goldmark.New(goldmark.WithExtensions(extension.Typographer))
source:=`*"[Some link here](https://geeksocket.in)" and more text here.*`varbuf bytes.Bufferiferr:=md.Convert([]byte(source), &buf); err!=nil {
panic(err)
}
fmt.Println(buf.String())
source2:=`**"[Another link](https://geeksocket.in)"**`varbuf2 bytes.Bufferiferr:=md.Convert([]byte(source2), &buf2); err!=nil {
panic(err)
}
fmt.Println(buf2.String())
}
What did you expect to see? :
The quotes in both cases to be “ and ”.
What did you see instead? :
The quotes near * are " instead of “ and ”.
<p><em>"<ahref="https://geeksocket.in">Some link here</a>” and more text here.</em></p><p><strong>"<ahref="https://geeksocket.in">Another link</a>"</strong></p>
Did you confirm your output is different from CommonMark online demo or other official renderer correspond with an extension?:
Yes, enabled Smart punctuation option.
The text was updated successfully, but these errors were encountered:
Latest from master i.e.
v1.1.31
or 3d78558go version go1.14.2 linux/amd64
Fedora 32 on amd64
The quotes in both cases to be
“
and”
.The quotes near
*
are"
instead of“
and”
.Yes, enabled Smart punctuation option.
The text was updated successfully, but these errors were encountered: