# Link does not exist when I compile to .md; the link exists when I compile to .pdf

**URL:** <https://forum.literatureandlatte.com/t/link-does-not-exist-when-i-compile-to-md-the-link-exists-when-i-compile-to-pdf/127510>\
**Category:** Markdown & LaTeX\
**Tags:** support, compile\
**Created:** [April 16, 2022, 12:32am UTC](https://forum.literatureandlatte.com/t/link-does-not-exist-when-i-compile-to-md-the-link-exists-when-i-compile-to-pdf/127510 "2022-04-16T00:32:53Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![AmberV](https://forum.literatureandlatte.com/user_avatar/forum.literatureandlatte.com/amberv/32/13021_2.png) [@AmberV](https://forum.literatureandlatte.com/u/AmberV)\
**Post date:** [September 20, 2023, 7:26pm UTC](https://forum.literatureandlatte.com/t/link-does-not-exist-when-i-compile-to-md-the-link-exists-when-i-compile-to-pdf/127510/13 "2023-09-20T19:26:29Z")

</div>

You _can_ use round brackets, but then you would need to make use of a valid anchor name and syntax, since at that point it is a “non-magical” direct link that just so happens to point to something in the document rather than anywhere in the world. The square bracket method is designed to be a writer-friendly tool, so we can merely type in the section name naturally, as we would refer to it ourselves, rather than, `[My Link Source](#my-link-source)`.

But it does presume the heading target is in the same context as the reference. As for breaking that (splitting files and putting things into different contexts), I feel like this specifically [has already been discussed](https://forum.literatureandlatte.com/t/compiling-to-latex-one-file-per-section/41136/45), and established that one should be using Quarto’s cross-referencing syntax for multi-file site management, rather than pure Markdown. I.e. _not_ using Scrivener’s convenience pure Markdown converter.

---

_[View the full topic](https://forum.literatureandlatte.com/t/link-does-not-exist-when-i-compile-to-md-the-link-exists-when-i-compile-to-pdf/127510)._
