-
Notifications
You must be signed in to change notification settings - Fork 209
Description
Problem:
You can create links to headings in the same document in Obsidian by using [[#heading]]
These will not be turned into clickable links and will just show up as normal text in the rendered output.
As far as I can see only links with alternative link text (i.e. [[link|text]]
) will be converted (see regex here). At some point in the pipeline alternative text is added to any normal link (i.e. [[link#optional-heading]]
) that lacks it (turning it into [[link#optional-heading|link#optional-heading]]
). But for some reason this is not done to links consisting only of a heading (so they will stay [[#heading]]
, not triggering the regex).
Expected result:
All links including those only linking to a heading should be converted into something along the lines of <a href="#heading">text</a>