Link urls to its destination automatically (directly after non-space character)

In the previous version of hugo, urls are automatically linked to its destination. For example,
<p></p> is translated to <p><a href=""></a></p>.
However it seems they aren’t in the latest hugo currently available from apt (Hugo Static Site Generator v0.60.1-96066756 linux/amd64 BuildDate: 2019-11-29T14:57:23Z).
What I need to make them so? I would appreciate it if you could help me.

For me this works the same with both blackfriday (old default) and goldmark (new default). A url gets rendered as a link.

But if you have the url inside html tags, like the p-tags above, neither blackfriday or goldmark will render it as a link on my setup with Hugo v0.61.0.

I’m sorry it seems I installed hugo by downloading binary, and I meant <p>...</p> as what my rendered html is (not in .md files).
I confirmed hugo v0.40.1-1, the true latest version available from apt, works fine, while v0.61.0 doesn’t. Same with both goldmark and blackfriday, regardless of in server mode or not.

Judging from what you said, this may be a problem of my enviroment. I run hugo in Ubuntu 18.04.3 LTS on Windows Subsystem for Linux.

canonifyurls = true
hasCJKLanguage = true
summaryLength = 70
pygmentsCodeFences = true
enableGitInfo = true

I suspect that urls which is not at the back of space won’t be rendered as a link in recent hugo. In my case, I placed a url directly after a Japanese period character (such as こんにちは。

While inserting space between them works fine, adding space looks somewhat unnatural in Japanese (for example, こんにちは。 Zero-width space didn’t worked. Is there any solution to make urls linked without editing each .md file nor affecting their apparence?

It’s a bummer you don’t like how it looks, but the strings . and are technically different. You have to place a space between them to use all the markdown renderers I know.

On the other hand, you might do something like give a elements a -1em margin or padding in CSS. CSS is where you ought to solve this issue. :slight_smile:

Thank you all. Apparently there is no way to deal with it in the latest hugo alone.

Yes, that’s true. However, since in some languages there is no spaces after their periods, allowing them or things like that in the front of URLs might be helpful to people who write blog in these languages. I have no idea this is really needed or where in the code to modify to publish a pull request, though.

After all I wrote some JavaScript to replace unnecessary spaces after periods and it works fine. I’m happy with that relatively. Thank you so much anyway.