Space in markdown links

This could be either be a Hugo or Goldmark issue. When a link is placed between brackets, it leaves a space at the opening of the bracket. For example, copy the sentence below to a markdown file then build the site and observe.

Lorem ipsum ([Dola sit](/) amet) markdown"

Just tested in commonmark.js demo and everything seems to be good.

HTML produced:

<p>Lorem ipsum (<a href="/">Dola sit</a> amet) markdown&quot;</p>

Turns out it was my markdown render hook adding the trailing white spaces due to a missing - at the end of the last variable. I need to audit my site now because I had a similar issue yesterday with the dashes used to trim white space.

1 Like

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