-
Notifications
You must be signed in to change notification settings - Fork 72
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
HTML entities do not work in wiki link custom title #441
Comments
It looks like an issue with https://github.com/srid/commonmark-wikilink/. Note that the original Probably changing |
@PlayerNameHere It looks like there is no standard behavior regarding entities in wikilinks (different apps show different behavior, e.g. GitHub vs Obsidian). I thought you may like to join the discussion in jgm/commonmark-hs#105. Regardless of the result of this discussion, it is not obvious to me whether it is preferable to keep compatibility with |
jgm/commonmark-hs#109 was accepted, so in I tried the same simple approach (see kukimik/commonmark-wikilink@67798fe), but didn't have time to test it until now. Unfortunately it turned out that this does not work as expected. If an entity of the form |
Describe the bug
Using HTML entities in the custom title of a wiki link causes them to be rendered literally.
To Reproduce
I am using cedd7d8.
Using a non-breaking space (
) as an example:This is rendered as:
Here is the generated HTML:
Notice that the
&
is translated to&
.Expected behavior
The
is rendered as a non-breaking space.Using a regular markdown link works as expected and so can be used as a workaround and a reference:
Another workaround is to type in the desired character directly without using an HTML entity.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: