gerwitz / hgc-v12

The twelfth version of my website, built with Eleventy
https://hans.gerwitz.com
7 stars 1 forks source link

HTML Entities #34

Open gerwitz opened 2 years ago

gerwitz commented 2 years ago

I just want to show the tree glyph, not the emoji.

This requires using a Unicode variant. But I think this doesn't work because markdown-it is translating HTML entities into characters instead of passing them through.

Disabling the entity rule doesn't work, because then the ampersands get escaped.

There's a plugin but another dependency seems like overkill.

Brute force replacement might work: https://github.com/cmints/cmints/issues/109#issuecomment-427478413