markdown-oxide icon indicating copy to clipboard operation
markdown-oxide copied to clipboard

Unresolved reference when the header has an icon

Open franroa opened this issue 5 months ago β€’ 6 comments

I have this link referencing to a block in my file: - [πŸ“š Modules](#modules)

And the real block looks like this: `## πŸ“š Modules

Each module has its own detailed documentation .....: `

But the link is not referencing properly due to the icon in the header. How can I solve that? Thank you in advance!

franroa avatar Jul 14 '25 11:07 franroa

Hey! Yea this is def an issue

Would you be up for giving this a shot yourself?

This would be a modification to the header parsing regex + adding a unit test for it.

The parsing is pretty well tested; here's an example PR updating the parser: https://github.com/Feel-ix-343/markdown-oxide/pull/268 -- made just today!

Feel-ix-343 avatar Jul 15 '25 08:07 Feel-ix-343

hmm still not working. It might be also not supported by markdown in general.

Other Issue I found is this:

  • 🌐 Accessing Airflow

This is showing as "Unresolved Reference" but I can jump to the header

franroa avatar Jul 15 '25 09:07 franroa

ah I meant that PR was an example of how to update oxide parsing, not that it fixed your issue.

Would you want to give this a shot?

Feel-ix-343 avatar Jul 15 '25 20:07 Feel-ix-343

πŸ’Ž Feel-ix-343 is offering a $5 bounty for this issue. View and reward the bounty at algora.io/Feel-ix-343/markdown-oxide/issues/267

πŸ‘‰ Got a pull request resolving this? Claim the bounty by commenting /claim #267 in your PR and joining algora.io

algora-pbc avatar Aug 12 '25 02:08 algora-pbc

Hello, I tried reproducing this issue using the following snippet:

## πŸ“š Modules

Each module has its own detailed documentation...

---

# References:

- [πŸ“š Modules](#πŸ“š Modules)

In this case the reference works correctly. However, in @franroa’s original message, the link was written as:

- [πŸ“š Modules](#modules)

This attempting to reference a heading called modules without the emoji. markdown-oxide doesn’t appear to be case-sensitive, but the emoji cannot be skipped. So a valid reference would be [πŸ“š Modules](#πŸ“š Modules) or [πŸ“š Modules](#πŸ“š modules).

@franroa, could you confirm if the issue was just the malformed reference? If not, would you mind sharing a snippet or details about the platform you’re using so we can try to reproduce it?

Thanks!

2coffee2crab avatar Aug 18 '25 01:08 2coffee2crab

Yes, I tried this too. OP's initial message was wrong. It also did not work in obsidian too.

mav3ri3k avatar Aug 22 '25 19:08 mav3ri3k