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

Properly render wikilinks with backticks (`) #1246

Open
christeefy opened this issue Jun 29, 2024 · 0 comments
Open

Properly render wikilinks with backticks (`) #1246

christeefy opened this issue Jun 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@christeefy
Copy link
Contributor

christeefy commented Jun 29, 2024

Intro

First of all, I just wanna say thank you so much for the wonderful plugin! It's a huge deal for me who's not well versed with JS/TS but still want an Obsidian-flavoured markdown SSG. Keep up the great work!

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I have some notes that contain the ` notation. This comes up when the note is regarding coding concepts that benefit from code formatting to distinguish the idea being highlighted.

For example, I may have a note like The Never ! Type. Without the code formatting, the title may be confusing to the reader.

The problem is that anytime a note contains the backtick notation, wikilink parsing fails. So instead of two notes getting properly linked, "[[The Never ! Type]]" is rendered instead.

Why I think this is important to fix:

  • Obsidian properly handles such situations
  • the resulting graph is sparser than it should be
  • the reading experience is diminished by unparsed wikilink notations
  • the reader has to manually search that up — a poorer UX

Describe the solution you'd like

A clear and concise description of what you want to happen.

When a file contains the backtick, its corresponding wikilink in other files should be properly rendered in Quartz via hyperlink.

This should work for various wikilink cases including:

  • "[[The Never ! Type]]"
  • "[[The Never ! Type|type !]]"
  • "[[My File#The Never ! Type|type !]]"

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

I looked through ofm.ts but wasn't successful at making the change as I'm not well-versed enough in JS/TS.

Additional context

Add any other context or screenshots about the feature request here.

@christeefy christeefy added the enhancement New feature or request label Jun 29, 2024
@christeefy christeefy changed the title Properly handle "`" character in Wikilinks Properly handle backticks (`) in wikilinks Jun 29, 2024
@christeefy christeefy changed the title Properly handle backticks (`) in wikilinks Properly render wikilcnks with backticks (`) Jun 29, 2024
@christeefy christeefy changed the title Properly render wikilcnks with backticks (`) Properly render wikilinks with backticks (`) Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant