Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tag escape does not work #1542

Open
Tracked by #1496
exodrifter opened this issue Oct 22, 2024 · 0 comments
Open
Tracked by #1496

Tag escape does not work #1542

exodrifter opened this issue Oct 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@exodrifter
Copy link

Describe the bug
Quartz does not escape tags, while Obsidian does.

To Reproduce

Steps to reproduce the behavior:

  1. Make a new note with a tag containing the text \#foobar
  2. Generate the static site
  3. Visit the note to see that the tag #foobar has been added to the page and the text #foobar in the body is now a link to the tag page.

Expected behavior

Quartz should not add the tag #foobar and render #foobar in the body of the note without a link

Screenshots and Source

Obsidian-Flavored Markdown:

# \#foobar

\#foobar is a popular tag used on bird site.

Obsidian:

image

Quartz:

image

Desktop (please complete the following information):

  • Quartz Version: v4.4.0
  • node Version: v22.9.0
  • npm version: v10.9.0
  • OS: Linux
  • Browser: Firefox

Additional context

This feature is mentioned in the official documentation:

In some cases, you may need to display special characters in Markdown, such as *, _, or #, without triggering their formatting. To display these characters literally, place a backslash (\) before them.

See: https://help.obsidian.md/Editing+and+formatting/Basic+formatting+syntax#Escaping+Markdown+Syntax

I imagine that this is probably related to #1496

@exodrifter exodrifter added the bug Something isn't working label Oct 22, 2024
@exodrifter exodrifter changed the title Quartz does not handle tag escapes Tag escape does not work Oct 22, 2024
Repository owner deleted a comment Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant