+1. You can put the markup outside the wiki link as in _[[page|title]]_, but that only works for bold and italic etc, but obviously not for monospace since monospace disables interpretation of what’s inside. Making backticks work for aliases would be fantastic (and hopefully not too hard to implement?)
+1 I would also add the the solution @rab suggested affects the entire link and you can’t target a specific section with italics or bold: [[The TeXbook|Knuth's _The TeXbook_]]
I’ve got a half-baked solution to styling an internal link as inline code. In Settings, go to Appearance > CSS snippets > Open snippets folder and add a file named code-link.css (or whatever you want) then paste the following contents:
Make sure to hit Reload snippets and toggle it on.
It doesn’t work for certain links, it doesn’t hide the backticks, it doesn’t add spellcheck="false" to disable spellcheck, and it doesn’t work in Reading view. Here’s what it looks like:
I decide to temporarily use Markdown link so the code format would show, and painfully replace space with %20 individually. Three links only and it took forever
i have been running into this issue for a full year now, thinking its some trivial oversight that will surely be addressed any minute now, a whole year and still the rendering is broken, come on. wiki links are super usefull in obisidian, not least, the auto rename feature, this issue is pretty much nullifying wiki links in my eyes.
This post has pointed out what I propose in the feature request. It was marked as a bug, which is not a bug, it’s just something Obsidian does not support. The moderator WhiteNoise said it is not supported.
The thing I would like is when you have an internal note that links to a header or an alias, the markdown render is applied. [[note|name]] would render name in live preview / read mode. Same for [[note#header]] would render header.
In my case, which is a bit specific, it would be very helpful. I often use Obsidian to make notes about source code. Some code bases have good documentation and other do not. Plus, let’s let aside the quality / complexity of the code base, those notes are very meaningful and useful as quick side notes “How to do this”, “A quick summary how I used this 1,000 lines module in a project” etc..
The result is that I name my file module.py (for a Python code) for example. Often, there is only one class in the module: MyClass. So I add an alias MyClass which I can refer in other note. Then I would like to directly link the alias. Another use case is when I have my note module.py, it might have multiple important classes. So I have header level 2 for each class. This is the same problem, if I link [[module.py#HeaderClass]], I do not have the Markdown render.
Proposed solution
Enable markdown rendering for internal link if there is a header or an alias with markup format symbols (stars, back tick ..)
[[note|name]] would render name in live preview / read mode. Same for [[note#header]] would render header.
Current workaround (optional)
I tried to do [[note|MyClass]], it does not work. The internal link is not even detected.
Related feature requests (optional)
I have seen some feature request like this, which is about markdown rendering too but I do not think it’s related. I really tried to search for similar post and I did not find it. Plus I could not find link pointing to the bug post. I hope I did not make a duplicate.
Would it be possible to make math render in links? Essentially I am talking about the following displaying the rendered x at the last line and not $x$.
$$x = 10$$
^fftest
[[#^fftest|$x$]]
Use case or problem
I am reading a lot of scientific papers with maths where variables all have some specific complicated meaning. With wikilinks I could use block referencing, such that when I type the variable and hover over I can see what it means. This would be great when the variable is a complicated expression.
Proposed solution
Make math mode renderable in links? I don’t know if this is complicated or simple.
Current workaround (optional)
Right now I am defining the variable at the top of the note and then link the definition with block referencing to one of the other words in the text. For example
“… then we see that the [[#^fftest|$x$variable]] x is not identifiable…”