Learned about debugging in Obsidian and adding custom CSS

- 1 min

Today when I was checking out preview mode for one of my notes I noticed that emojis were taking complete line instead of staying in the same line which annoyed me because it was looking really weird. After a bit of googling I figured out that it was because the emojis in Obsidian are rendered as <image> tags as it was currently taking display: block.

Fix for the problem

.emoji{
    display: inline-block
}

Adding the above snippet solves the problem as it makes the display inline-block which doesn’t use separate line.

rss facebook twitter github gitlab youtube mail spotify lastfm instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora quora