DavidSouthgate / jekyll-email-obfuscate

Mirrored from GitLab
https://gitlab.com/southgate/libraries/jekyll/jekyll-email-obfuscate
MIT License
0 stars 0 forks source link

encode_email Filter is reverted by kramdowns entity_output default option #1

Open hmbgbw opened 6 years ago

hmbgbw commented 6 years ago

I stumbled upon this when I tried your jekyll-plugin. Since the encode_email filter changes the signs in the email to the equivalent html-entity and the kramdown (markdown language used by jekyll) option entity_output is set to char by default (which does the exact opposite of your filter), your filter doesn’t seem to work. If you set the entity-output: as_input your filter does what it is supposed to do.

I resolved this problem by adding following code to the _config.yaml

kramdown:
  entity_output: as_input 

By the way, the GitHub Flavored Markdown behaves the same way

https://github.github.com/gfm/#decimal-numeric-character

An example: 7 is replaced by 7 (Take a look at the sourcecode, in the editor i used the hmtl-entity)

Greets, Heiner

DavidSouthgate commented 6 years ago

Thanks for this. I'll look into this