Ask A Question

Notifications

You’re not receiving notifications from this thread.

Markdown/Emoji : how to host images?

Boris Baskovec asked in Site Feedback

Hi,

I watched https://gorails.com/episodes/markdown-emoji-with-html-pipeline-gem and I'm wondering 2 things :

  • Where did you find the asset_root of the emoji images?
  • How do you use your own Emoji files instead of using an external link? I tried it several ways but I can't find one that works

Thank you

Reply

I can't remember where I grabbed that from exactly, but some documentation somewhere. If you want to host your own, check out https://github.com/HenrikJoreteg/emoji-images and you can serve up the pngs folder in your app. Of course, you'll want to put those in your public directory and not the asset pipeline so they stay the same filenames and don't get compiled.

Reply

Hi @chris, I'm having hard time figuring out how to host the folder in my app. should I install the npm package from here https://github.com/HenrikJoreteg/emoji-images in my app?!

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 80,973+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2024 GoRails, LLC. All rights reserved.