I think it’s because you can add things like .rss, so if you finish off a sentence in brackets with a link the full stop then Discourse thinks it’s all part of the URL.
i don’t understand why you are including periods and exclamation marks as part of the links. and why are you using the square brackets like that? what is the use case you are doing?
i was probably overthinking what you are trying to do. you are just talking about random use of square brackets i assume. yea they can break stuff occasionally in markdown links.
It’s not entirely a markdown thing, or at least it doesn’t seem to be based on what https://markdownviewer.org/ does. There, .) at the end is not treated as part of the URL though .] is.
Also, rather than “random use of square brackets” it’s the use of a URL at the end of a sentence which is in brackets.
Thanks all. Looks as though this is a Markdown thing rather than just Discourse, and there are two potential solutions when a sentence within brackets ends with a URL:
Surround the URL with angle brackets, though this doesn’t display the URL as the topic title, and the link won’t work when quoted.
Just skip the full stop. This is what I’d done before asking here.