Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Charset in <pre> tags #79

Closed
Karmac opened this Issue · 12 comments

3 participants

@Karmac

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
Owner

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

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

@bhollis
Owner

In your Gemfile, add this line:

gem 'maruku', :git => 'http://github.com/bhollis/maruku'
@Karmac

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

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
Owner

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

@bhollis bhollis closed this
@bhollis bhollis reopened this
@bhollis
Owner

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

@Karmac

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

@bhollis
Owner

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

OK, I'll try.
Thanks.

@distler
Collaborator

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

@distler
Collaborator

Fix is now on trunk.

@distler distler closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.