Skip to content

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

@yuukibarns

Description

@yuukibarns

πŸ› 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

{
	"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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions