Skip to content

[bug] Emoji not parsed on certain text patterns #2198

@revelt

Description

@revelt

Hi all,

There is a bug in the emoji rendering, probably related to #1892. My post content with emoji is sometimes parsed, sometimes not, and I distilled the following:

  • Emoji are not parsed when the colon character is being present
  • If the text after comma is short enough, emoji renders fine, no matter is there a colon or not

See this:
hugo-emoji-bug

Try copy-pasting into your sites to test:

Aaaaaaaaaa: aaaaaaaaaa aaaaaaaaaa aaaaaaaaaa.

:rocket:

In practice, my blog articles contain some colon characters and emoji are not being parsed on the whole article. By the way, I'm using the latest Hugo v0.16 from Brew.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions