obsidian-kindle-plugin icon indicating copy to clipboard operation
obsidian-kindle-plugin copied to clipboard

[BUG] Template Emoji Expands to Unicode

Open elliott-liu opened this issue 2 years ago • 1 comments

Describe the bug

Emojis in template expand to unicode instead of rendering as emoji.

Method of syncing

  • [x] Amazon Kindle Reader

To Reproduce

Steps to reproduce the behaviour:

  1. Kindle Highlights > Templates > File content
  2. Template I'm using:
---
tag: 📥
alias: {{title}}
publish: false
date: (date("YYYY-MM-DD"))
type: [Book]
title: {{longTitle}}
author: [{{author}}]
image: {% if imageUrl %}{{imageUrl}}{% endif %}
published: {{publicationDate}}
isbn: {% if isbn %}"{{isbn}}"{% endif %}
url: {% if url %}{{url}}{% endif %}
reviewed: []
finished: []
rating: ☆☆☆☆☆
---
# {{longTitle}}
[![{{title}} Cover Image]({{imageUrl}})]({{appLink}})

## Highlights
{{highlights}}

  1. Sync and preview output (see attached screenshot).

Expected behaviour

The emoji is supposed to render as an emoji not unicode. Screenshot 2022-12-18 at 12 04 42

Screenshots

Actual Output Screenshot 2022-12-18 at 11 58 08

Metadata

  • OS: macOS Monterey (12.4)
  • Plugin version: 1.8.1
  • Obsidian version: 1.0.3 (Installer 1.0.0)

elliott-liu avatar Dec 18 '22 12:12 elliott-liu

Note, Obsidian interprets the unicode as an emoji so not entirely an issue! Although, it would be nice if it rendered as expected.

elliott-liu avatar Dec 18 '22 12:12 elliott-liu