Markdown syntax for back to top

I googled a bit for this but did not find an answer regarding a certain markdown syntax, if it exists.

At the top of my page I create a link to a header at the bottom, like so [text](#header-title).

Next to that header at the bottom I want to create a link to jump back to the top of the page, but at the top of the page I do not want to create ###### top because in Preview it shows that header.

Is there a syntax to create something at the top I can jump back to from the bottom but that is not shown in Preview?

Alternatively, is there a way in css to not show/camouflage a H6 header?

Hiding H6 should be something like:

h6 {
   display: none;

…but (a) I’m an amateur and (b) I haven’t tested that!

For an amateur you’re doing fine: it works!
Many thanks.


Can you post an example of how this is implemented?

It would have to be added to custom CSS. See Getting comfortable with Obsidian CSS

In fact, the full code is

.markdown-preview-view h6 {
  display: none;
1 Like

Hey, this has nothing to do with your question, but I just wanted to tell you that you can achieve the same thing with the following hotkeys on the keyboard, in case you didn’t know that yet:

ctrl. + end: end of the document
ctrl. + pos1: beginning of the document

@thats.eli on MacOS that works well in Edit mode, not in Preview mode.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.