epwalsh / epwalsh/obsidian.nvim

Unicode character '❯' (U+276F) in autocompleted tags causes LaTeX errors with Pandoc

Open
#720 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Lua
Stars
6.2k
Forks
250
PR merge metrics
No merged PRs in 30d

Description

### 🐛 Describe the bug

When using the `obsidian.nvim` plugin to autocomplete tags in Obsidian notes, the Unicode character "❯" (U+276F) is inserted into the tags. This causes LaTeX errors when attempting to convert the notes to PDF using Pandoc.

#### Steps to Reproduce:

1. Open Neovim with the `obsidian.nvim` plugin installed.
2. Attempt to autocomplete tags in an Obsidian note.
3. Use Pandoc to convert the note to PDF.
4. Observe the LaTeX error:
```

Error producing PDF.
! LaTeX Error: Unicode character ❯ (U+276F)
not set up for use with LaTeX.

```

#### Expected Behavior:
The tags should not contain the Unicode character "❯".

#### Actual Behavior:
The tags contain the Unicode character "❯", causing LaTeX errors.

### Config

```lua
{
"epwalsh/obsidian.nvim",
version = "*",
ft = "markdown",
dependencies = {
"nvim-lua/plenary.nvim",
},
opts = {
workspaces = {
{
name = "personal",
path = "~/vaults/personal",
},
{
name = "work",
path = "~/vaults/work",
},
},
mappings = {
["gf"] = {
action = function()
return require("obsidian").util.gf_passthrough()
end,
opts = { noremap = false, expr = true, buffer = true },
},
},
ui = {
enable = false,
},
},
},
```

### Environment

NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1713484068
Run "nvim -V1 -v" for more info

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.