Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

When using headings containing a link, the linked part gets lost #80

Closed
WetenSchaap opened this issue Nov 28, 2022 · 2 comments
Closed

Comments

@WetenSchaap
Copy link

Describe the bug

When a heading contains a link, the link is placed at the beginning of the heading, overwriting the rest of the heading.

To Reproduce

Steps to reproduce the behavior:

  1. Make a document with headings with links in them:
---
title: "Bibliography"
date: 2022-11-28
draft: false
---
## 2nd level heading

### 3rd level heading

### Heading containing a [link](https://gohugo.io/), and acts weird

### Heading containing a [longer link here](https://gohugo.io/), and you see it better
  1. See error:

image

Expected behavior
Links are simply part of the heading.

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Firefox
  • Hugo version: v0.107.0
  • Latest cupper-hugo-theme
@zwbetz-gh
Copy link
Owner

Hi @WetenSchaap - thanks for reporting this. It's been fixed in 711a53b.

@zwbetz-gh
Copy link
Owner

Here's a demo of the fix, for reference: https://cupper-hugo-theme.netlify.app/heading-link-test/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants