Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML entities in hyperlink text #710

Open
SomeWeekendReading opened this issue Mar 29, 2021 · 2 comments
Open

HTML entities in hyperlink text #710

SomeWeekendReading opened this issue Mar 29, 2021 · 2 comments
Assignees

Comments

@SomeWeekendReading
Copy link

I'm using kramdown as the default markdown engine in jekyll. Normally it renders entities correctly, even obscure ones like the capital Greek digamma (Ϝ which in some fonts looks vaguely like a Roman capital F). However, when the Ϝ is part of a link, it does not.

Example input: spirit of ϜΤΦ
HTML output: spirit of ϜΤΦ

Note here that it has output the Τ and Φ entities as characters, but has escaped the ampersand in Ϝ causing it not to render.

Live example on the web here, near the bottom of the page.

Is jekyll perhaps using an older version by default?

@gettalong gettalong self-assigned this Mar 29, 2021
@gettalong
Copy link
Owner

The reason for this is that the Gammad entity is not recognized by kramdown. I will fix this for the next release.

In the meantime you can do the following:

require 'kramdown/utils'
Kramdown::Utils::Entities::ENTITY_TABLE << [988, 'Gammad']

This adds the entity to the table where kramdown looks it up.

@SomeWeekendReading
Copy link
Author

Thanks; that makes sense. Maybe pick up all the legal HTML entities, if any others are missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants