Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Content & Markdown

Footnote linking problem

Started by Norbert 3 years ago · 2 replies · 518 views
3 years ago

I'm trying to insert a footnote in the markdown syntax.

  1. I turned on Markdown Extra in the configuration
  2. on the page I added: [^1]
  3. In the footer of the article I added: [^1] Footnote description...

However, the problem is with linking. The URL to which the footnote links in the article looks like this:

http://192.168.0.2:3000/#fn:1

when the actual article URL is:

http://192.168.0.2:3000/privacy#fn:1

In other words, it links to the home page, not the actual article page.

3 years ago

@q3d, Unfortunately, I cannot reproduce the issue.

On a fresh Grav install:

  • I've enabled Markdown Extra in /user/config/system.yaml
  • I've added [^1] somewhere at the top of page Typography
  • Added at de bottom of Typography: [^1]: Description of...

Clicking the superscript ¹ at the top, brings me to the bottom of the page. Clicking the ↵ at the bottom brings me back to the head of the page.

NB. Probably a typo in your post: The footnote itself should have a colon: [^1]: Description of...

last edited 09/25/23 by pamtbaau
3 years ago

Ok. I will check this on the default theme.

With the default theme, of course it works.
What might influence this behavior in my case?

last edited 09/25/23 by Norbert

Suggested topics

Topic Participants Replies Views Activity
Content & Markdown · by Jochen, 8 months ago
6 99 8 months ago
Content & Markdown · by Ton Haarmans, 1 year ago
10 186 1 year ago
Content & Markdown · by Jan L'Am, 1 year ago
4 148 1 year ago
Content & Markdown · by Leonardo, 1 year ago
3 62 1 year ago
Content & Markdown · by belthasar, 1 year ago
4 257 1 year ago