goldmark
goldmark copied to clipboard
Single quotes not opening before the letter 't'
goldmark has https://github.com/yuin/goldmark/discussions in github. You should post only issues here. Feature requests and questions should be posted at discussions.
- [x] goldmark is fully compliant with the CommonMark. Before submitting issue, you must read CommonMark spec and confirm your output is different from CommonMark online demo.
- [x] Extensions(Autolink without
<
>
, Table, etc) are not part of CommonMark spec. You should confirm your output is different from other official renderers correspond with an extension.
- [x] Extensions(Autolink without
- [x] goldmark is not dedicated for Hugo. If you are Hugo user and your issue was raised by your experience in Hugo, you should consider create issue at Hugo repository at first .
Please answer the following before submitting your issue:
- What version of goldmark are you using? : 1.5.3
- What version of Go are you using? : 1.19.4
- What operating system and processor architecture are you using? : Ubuntu 22.04, x86_64
- What did you do? : write a word starting with t in apostrophes quotes, such as: 'terrifying', 'turn', 'to do something'
- What did you expect to see? : &lsquo terrifying &rsquo
- What did you see instead? : &rsquo terrifying &rsquo
- Did you confirm your output is different from CommonMark online demo or other official renderer correspond with an extension?: yes
This issue seems to me similar to those raised in https://github.com/yuin/goldmark/issues/180, which is why I raised it here, not at the Hugo repository. Perhaps this is to do with handling contractions (like 'don't', 'mustn't', and so on)? In any case, as soon as I put anything other than a t after the first apostrophe, it outputs the correct quote (&lsquo), even when I italicise the word, for instance (like 'terrifying')
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
I also get only ’
around this eh
: try replace: 'eh'
Ping