hugo: emoji is rendered in code blocks

I have enableEmoji: True and the following content in a page:

```
    :az:ab:cd:
```

It should be rendered as:

screen shot 2018-07-20 at 14 37 56

But instead I get an emoji πŸ†Ž instead of :ab: - picture:

screen shot 2018-07-20 at 14 36 52

$ hugo version
Hugo Static Site Generator v0.44/extended darwin/amd64 BuildDate: unknown

theme: vjeantet/hugo-theme-docdock [latest]

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Same problem here, still on Hugo v0.67.1 (extended)… image

@anup92k LoveIt theme uses a special syntax to escape what you want to display. https://hugoloveit.com/theme-documentation-content/#escape-character

πŸ‘‹ Bumping this issue. I don’t think it should be closed?

screenshot_2021-08-12_00-07-39

reopen, still the case. Hugo should not replace emoji in code blocks. Should work as in github :smile: πŸ˜„

I assume this is with enableemoji enabled, in which this is as designed. You can solve this by turning that off.