ekalinin / typogr.js

Typography utils for javascript
MIT License
297 stars 20 forks source link

apostrophe immediately after a tag is inverted #15

Closed mattly closed 10 years ago

mattly commented 10 years ago

for example:

<a href="">markdown</a>'s popularity is growing

becomes:

<a href="">markdown</a>&#8216;s popularity is growing

which has the opposite smart-quote effect.

I'm not sure if this is the intended behavior or if other smartypants-style libraries do the same, but the results stick out pretty horribly to my eyes.

mattly commented 10 years ago

Also FWIW I discovered this while using showdown, and typogr is called before the markdown is rendered, so the source text is something like:

[markdown][]'s popularity is growing.

discount does what I'd expect it to, but uses &rsquo instead of a unicode entity.

mattly commented 10 years ago

awesome, thanks!