goldmark icon indicating copy to clipboard operation
goldmark copied to clipboard

Single quotes not opening before the letter 't'

Open cl1ntv opened this issue 2 years ago • 4 comments

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] 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:

  1. What version of goldmark are you using? : 1.5.3
  2. What version of Go are you using? : 1.19.4
  3. What operating system and processor architecture are you using? : Ubuntu 22.04, x86_64
  4. What did you do? : write a word starting with t in apostrophes quotes, such as: 'terrifying', 'turn', 'to do something'
  5. What did you expect to see? : &lsquo terrifying &rsquo
  6. What did you see instead? : &rsquo terrifying &rsquo
  7. 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')

cl1ntv avatar Jan 05 '23 02:01 cl1ntv

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar May 29 '23 09:05 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jun 12 '23 09:06 github-actions[bot]

I also get only &rsquo; around this eh: try replace: 'eh'

quite avatar Jul 14 '23 10:07 quite

Ping

mwat56 avatar Mar 15 '24 18:03 mwat56