source := `*"[Some link here](https://geeksocket.in)" and more text here.*`
var buf bytes.Buffer
if err := md.Convert([]byte(source), &buf); err != nil {
panic(err)
}
fmt.Println(buf.String())
source2 := `**"[Another link](https://geeksocket.in)"**`
var buf2 bytes.Buffer
if err := md.Convert([]byte(source2), &buf2); err != nil {
panic(err)
}
fmt.Println(buf2.String())
}
5. What did you expect to see? :
The quotes in both cases to be `“` and `”`.
6. What did you see instead? :
The quotes near `*` are `"` instead of `“` and `”`.
```html
<p><em>"<a href="https://geeksocket.in">Some link here</a>” and more text here.</em></p>
<p><strong>"<a href="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.
v1.1.31
or 3d78558cf265c6fbc4e20b74fec0809ea2b67d5dgo version go1.14.2 linux/amd64
Fedora 32 on amd64
import ( "bytes" "fmt"
)
func main() { md := goldmark.New(goldmark.WithExtensions(extension.Typographer))
}