# Markdown formatting should be ignored within wikilinks and tags

**URL:** <https://forum.obsidian.md/t/markdown-formatting-should-be-ignored-within-wikilinks-and-tags/3591>\
**Category:** Bug graveyard\
**Tags:** repro, important, editor-parser\
**Created:** [July 24, 2020, 1:01am UTC](https://forum.obsidian.md/t/markdown-formatting-should-be-ignored-within-wikilinks-and-tags/3591 "2020-07-24T01:01:10Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![malecjan](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/m/a6a055/32.png) [@malecjan](https://forum.obsidian.md/u/malecjan)\
**Post date:** [January 17, 2021, 2:08am UTC](https://forum.obsidian.md/t/markdown-formatting-should-be-ignored-within-wikilinks-and-tags/3591/12 "2021-01-17T02:08:56Z")

</div>

It might still be desired to use markdown formatting in alternative text after pipe character in wikilink.  
I use markdown-style links and I think, markdown formatting should be ignored in url part of the link. Unfortunately many existing parsers do not respect this. It is headache when I have to reference some stupid folder/file names as reported and still completely unresolved in:

- [How to both store and render raw path in functional link](https://forum.obsidian.md/t/how-to-both-store-and-render-raw-path-in-functional-link/9043)
- [Code enclosed in backticks does not preserve double/consecutive spaces](https://forum.obsidian.md/t/code-enclosed-in-backticks-does-not-preserve-double-consecutive-spaces/9806)

Related: [Support underscores "\_" in block-id](https://forum.obsidian.md/t/support-underscores-in-block-id/9813)

### Proposed solution:

Develop syntax to reference links from YAML header where they can be easily stored as “block literals” which conveniently do not require encoding in YAML. markdown  
Reference-style link syntax could be used for this. If markdown reference definition is not found, then check if anchor exists in YAML front-matter.

```nohighlight
---
related: 
  - &YAMLAnchor1 file1.md
  - &Anchor2 file2.md
  - file3.md
---
Possible options to consider: 
- [text][YAMLAnchor1] %% reference-style + YAML anchors %%
- [[{{Anchor2}}|text]] or [text]({{Anchor2}}) %% some syntax for referencing variables %%
- ...

```

---

_[View the full topic](https://forum.obsidian.md/t/markdown-formatting-should-be-ignored-within-wikilinks-and-tags/3591)._
