jpanther / congo

A powerful, lightweight theme for Hugo built with Tailwind CSS.
https://jpanther.github.io/congo/
MIT License
1.23k stars 328 forks source link

Extra space after [ when using links #811

Closed AntoineSoetewey closed 8 months ago

AntoineSoetewey commented 8 months ago

Issue description

Hello,

As you can see on https://antoinesoetewey.com/research/ (in section "Preprints & submitted manuscripts"), there is an extra space between [ and working paper, such that it looks like [ working paper] instead of [working paper].

I checked the code (https://github.com/AntoineSoetewey/antoinesoetewey.com/blob/master/content/research.md?plain=1) and there is no extra space. So I guess it must be because I use a link in addition to [].

Is there a way to fix this?

Thanks in advance for your help!

Regards, Antoine

Theme version

v2.8.0

Hugo version

Not sure

Which browser rendering engines are you seeing the problem on?

Chromium (Google Chrome, Microsoft Edge, Brave, Vivaldi, Opera, etc.)

URL to sample repository or website

https://github.com/AntoineSoetewey/antoinesoetewey.com

Hugo output or build error messages

No response

Jh123x commented 8 months ago

Issue description

Hello,

As you can see on https://antoinesoetewey.com/research/ (in section "Preprints & submitted manuscripts"), there is an extra space between [ and working paper, such that it looks like [ working paper] instead of [working paper].

I checked the code (https://github.com/AntoineSoetewey/antoinesoetewey.com/blob/master/content/research.md?plain=1) and there is no extra space. So I guess it must be because I use a link in addition to [].

Is there a way to fix this?

Thanks in advance for your help!

Regards, Antoine

Theme version

v2.8.0

Hugo version

Not sure

Which browser rendering engines are you seeing the problem on?

Chromium (Google Chrome, Microsoft Edge, Brave, Vivaldi, Opera, etc.)

URL to sample repository or website

https://github.com/AntoineSoetewey/antoinesoetewey.com

Hugo output or build error messages

No response

You can do something like this instead

[\[working paper\]](#link)

This will render to [working paper]

Please let me know if there are any issues

EDIT:

I've tested it locally and it seems to work with this markdown

[\[working paper\]](https://dial.uclouvain.be/pr/boreal/object/boreal:281061)

image

AntoineSoetewey commented 8 months ago

It works, thank you very much @Jh123x!