La Famille / Field notes
Emoji Kitchen Stickers
La Famille includes a custom inline Goldmark parser that allows you to easily embed mutant emoji stickers directly from Googleβs Emoji Kitchen CDN.
Shorthand Syntax
You can render an emoji combination using the exact shorthand syntax anywhere in your Markdown files:
!ek[emoji1+emoji2]
Example: Ghost Pizza
To render a combination of a ghost and a pizza, write:
!ek[π»+π]
This will automatically be converted into an HTML <img> tag pointing to the correctly constructed gstatic CDN URL for the combined sticker.
Resulting HTML output:
<img src="https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f47b/u1f47b_u1f355.png" alt="Emoji Kitchen combination of π» and π" title="Emoji Kitchen combination of π» and π">
Strict Syntax Rules
- The exclamation mark `!`
- The exact string `ek`
- Square brackets `[]`
- Exactly two emojis inside the brackets
- A plus sign `+` separating the two emojis
Styling and Accessibility
The rendered <img> tag does not include any default styling classes. If you need to style the emoji (e.g., set a specific width or margin), you can wrap it in a parent container with utility classes, or rely on the prose-img styles applied by Tailwind Typography if used within an <article class="prose">.
The parser automatically generates descriptive alt text and a title attribute for accessibility, ensuring screen readers can announce the emojis used to create the combination.