maiki is a user on mastodon.sdf.org. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

@maiki stupid hugo question. Im having trouble with Hugo parsing markdown links that end in a close parenthesis. As some Wikipedia articles do. Is there a mechanism for escaping parenthesis im missing?

@satchmoz no stupid questions!

I link to Wikipedia often, so I am not sure I can repro on my own. Send me a repo to clone and I will check it out real quick. ^_^

@maiki Got it, you can escape characters in markdown links as in C with a forward-slash. Thanks though.

@satchmoz can I still see an example? I've never run into that, and I don't fully understand the issue. But markdown links should be easier than that.

Where are you rendering it? In Content, or in a different partial somewhere?

@maiki In a content area.

Regular .md file.
[text](link)

Where link might be:

en.wikipedia.org/wiki/Kernel_(

@maiki because of the url you get a double ')' at the end.

@satchmoz here is a quick test: interi.org/notes/hugo-scratchp and corresponding content file: allthe.codes/maiki/interi/blob

The first one is just the URL on it's own, but the others work as expected for me. So I think your setup may be buggy; you running 30.1?

@maiki Your right it is a stale bug. 's version of hugo isn't current so I am running a few versions behind. Though hugo definitely supports escaping parenthesis as a work around.

maiki @maiki

@satchmoz FYI, the default markdown library used in is : github.com/russross/blackfrida

I know this because I have to constantly look up weird, obscure markdown use cases. ^_^

· Web · 0 · 1