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

Add the entity as a symbol in token's title attribute #8

Closed
kizu opened this issue Jul 12, 2012 · 2 comments
Closed

Add the entity as a symbol in token's title attribute #8

kizu opened this issue Jul 12, 2012 · 2 comments

Comments

@kizu
Copy link
Contributor

kizu commented Jul 12, 2012

There can be small, but useful enhancement: we can add the parsed entity as a symbol to the title attribute of it's token. So if we'd have &amp;amp; in code, it would become <span class="token entity" title="&amp;">&amp;amp;</span> etc.

@LeaVerou
Copy link
Member

Nice!
I’ll try to add sufficient hooks to do this as a plugin.

@LeaVerou
Copy link
Member

Not sure if you've noticed, but I've included this in the Markup language definition a while ago: https://github.com/LeaVerou/prism/blob/gh-pages/components/prism-markup.js#L35

Pinpickle added a commit to Pinpickle/prism that referenced this issue Jan 12, 2015
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