Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🛠 fix: Space in rendered link #813

Merged
merged 1 commit into from
Mar 9, 2024
Merged

🛠 fix: Space in rendered link #813

merged 1 commit into from
Mar 9, 2024

Conversation

tomy0000000
Copy link
Contributor

When I have these in my markdwon:

this[link]({{< relref "/series" >}})shouldnothaveanyspace

this[link](https://github.com/tomy0000000)shouldnothaveanyspace

an extra \n character is rendered in HTML, which is interpreted as a space before the link like this:

CleanShot 2024-02-22 at 21 39 43@2x

where it should have been this:

CleanShot 2024-02-22 at 21 42 24@2x

This PR trimmed the newline characters and fixed the bug.

Copy link

netlify bot commented Feb 23, 2024

Deploy Preview for hugo-congo ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 0a6267c
🔍 Latest deploy log https://app.netlify.com/sites/hugo-congo/deploys/65d806735a583500081f6a50
😎 Deploy Preview https://deploy-preview-813--hugo-congo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@fcladera
Copy link

This seems to address #811 and I currently verified this issue.

@jpanther
Copy link
Owner

jpanther commented Mar 9, 2024

Thanks for this... these embedded templates are the bane of my existence. Will merge this in now.

@jpanther jpanther merged commit e2fa33a into jpanther:dev Mar 9, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants