bhollis / maruku

A pure-Ruby Markdown-superset interpreter (Official Repo).
MIT License
500 stars 80 forks source link

Charset in <pre> tags #79

Closed Karmac closed 11 years ago

Karmac commented 11 years ago

As I write posts in Spanish using Jekyll, I must use special characters like á é í ó ú… They work in normal paragraph, but they don't show correctly inside <pre> tags.

I attach a pic of the problem. Thanks for your help.

Captura de pantalla 2013-03-25 a la s 23 59 25

PS: they're not working neither in the automatic ids assigned to headings.

Captura de pantalla 2013-03-26 a la s 00 00 19

bhollis commented 11 years ago

Hi @Karmac,

I think I've fixed both issues in the Git version (I haven't released it yet) - could you try it out and let me know?

Karmac commented 11 years ago

Sorry to be so newbie, but where could I find that version to download it?

bhollis commented 11 years ago

In your Gemfile, add this line:

gem 'maruku', :git => 'http://github.com/bhollis/maruku'
Karmac commented 11 years ago

I downloaded the git version and found out that I was using that version before, as I did update my maruku version yesterday with the contents of this repo.

It keeps not working.

Karmac commented 11 years ago

OK problems with pre tags are fixed in v0.6.1, but I'm still having problems with id's on v0.6.1. New Git version has both errors.

bhollis commented 11 years ago

The ID generation behavior is intentional - it matches other Markdown implementations by dripping non-ASCII characters.

bhollis commented 11 years ago

Wait, you said the latest from git also has problems with pre tags? I'll write a test.

Karmac commented 11 years ago

Yes, it does. Thanks for your help, I really appreciate.

bhollis commented 11 years ago

OK, I've verified the problem and have added a failing spec. This is targeted to be fixed in the next release.

As a workaround, consider using indented code block instead of raw <pre> tags - they correctly preserve your text.

Karmac commented 11 years ago

OK, I'll try. Thanks.

distler commented 11 years ago

For whatever it's worth, this was fixed here.

distler commented 11 years ago

Fix is now on trunk.