jnordberg / wintersmith

A flexible static site generator
http://wintersmith.io/
MIT License
3.5k stars 335 forks source link

incorrect rendering of link #219

Closed bennage closed 10 years ago

bennage commented 10 years ago

In one of my article, I have markdown similiar to this:

[a link](http://www.43things.com)

When rendered this produces the unexpected:

<a href="http://www.43<span class="ord">th</span>ings.com/">a&nbsp;link</a>

After fiddling a bit, I narrowed it down to some number followed by 'th'. It looks like it is intended for pretty formatting ordinal numbers (34th, 1st, 72nd, etc.)

This seems to be a case where it is misapplied.

I haven't been able to find this in the source yet, but point me in the right direction and I'll send a pr.

bennage commented 10 years ago

It looks like the culprit is the typogr module. Investigating.

bennage commented 10 years ago

In my article.jade, I replaced

section.content!= typogr(page.html).typogrify()

with

section.content!= page.html

and now it renders as expected.

The issue is resolved for me perosnally, but I'll leave it open for a bit in case the project coordinators want to address it. Thanks.

jnordberg commented 10 years ago

Closing, looks like a bug in typogr

Thanks for your report