Patreon Logo Support us on Patreon to keep GamingOnLinux alive. This ensures all of our main content remains free for everyone. Just good, fresh content! Alternatively, you can donate through PayPal Logo PayPal. You can also buy games using our partner links for GOG and Humble Store.
Title: [DONE] Inconsistent Markdown support?
Shmerl 17 May 2020
Looks like comments and forum posts now use Markdown at least for links, but it doensn't work for example for images.

I tried this, and it doesn't work:

![](https://i.imgur.com/StUEEo9.jpg)

External Media: You need to be logged in to view this.


The link however works fine
[test link](https://i.imgur.com/StUEEo9.jpg)

[test link](https://i.imgur.com/StUEEo9.jpg)

Last edited by GamingOnLinux Bot on 18 May 2020 at 3:24 pm UTC
Liam Dawe 18 May 2020
Hi, this has now been implemented.
Shmerl 18 May 2020
Thanks!
Liam Dawe 18 May 2020
I've gone back and converted all forum posts and comments from img bbcode to markdown now too, bbcode for images has been removed. Let me know if you encounter any issues.
Shmerl 18 May 2020
By the way, why not go Markdown all the way then? It's going to be more consistent than using part of the syntax with bbcode and part with markdown.

For example for code it's easier to do:


foo bar() {
}


or

`foo`

than

[code]
foo bar() {
}
[ /code]


or

[code]foo[ /code]

Are you using some standard engine for that, or you have to implement each syntax rule explicitly?

Last edited by Shmerl on 18 May 2020 at 4:24 pm UTC
Liam Dawe 18 May 2020
We are, things like that take time. You can't just slot markdown into an old system and have it work. Each individual one needs implementing, testing and then converting from bbcode to ensure no breakage. We have ~10 years of posts to ensure they keep working and rendering doesn't break.
Shmerl 18 May 2020
Got it, thanks for working on it!
randyl 18 May 2020
The markdown work is cool. Thanks!
Liam Dawe 20 May 2020
Codeblocks moved to markdown now too. Hooray for backticks.
Shmerl 20 May 2020
Test

foo bar() {
}


before `foo bar()` after

Last edited by Shmerl on 20 May 2020 at 4:47 pm UTC
Shmerl 20 May 2020
Great, thanks!

Big block works, but small section doesn't seem to. But it's different from bbcode in that regards (bbcode doesn't support inline code at all as far as I know).

Last edited by Shmerl on 20 May 2020 at 4:50 pm UTC
Shmerl 20 May 2020
Another test

\\

Last edited by Shmerl on 20 May 2020 at 4:51 pm UTC
Liam Dawe 20 May 2020
Quoting: ShmerlGreat, thanks!

Big block works, but small section doesn't seem to. But it's different from bbcode in that regards (bbcode doesn't support inline code at all as far as I know).
Yeah, that will be a whole different thing to try and implement and need corresponding css styles to allow it too.
Shmerl 20 May 2020
There is a Markdown trick with escaping the character, to turn it off. Sometimes can be useful

I.e.

\``` should turn off markdown parsing for the first `
Shmerl 20 May 2020
[http://tech.saigonist.com/b/code/escaping-special-characters-markdown.html](http://tech.saigonist.com/b/code/escaping-special-characters-markdown.html)

Last edited by Shmerl on 20 May 2020 at 4:53 pm UTC
Pangaea 23 May 2020
Why don't links automatically turn into links any more? It was very handy, and is what happens on most forums I know. Even GOG when it doesn't muck things up (which admittedly happens often there).
Liam Dawe 23 May 2020
Quoting: PangaeaWhy don't links automatically turn into links any more? It was very handy, and is what happens on most forums I know. Even GOG when it doesn't muck things up (which admittedly happens often there).
It never quite worked right, and was breaking often, plus the regex for it was a terrible mess. You can use markdown links or encapsulate them in <link>.

Edit: testing a new one I worked on today.

Last edited by GamingOnLinux Bot on 23 May 2020 at 2:33 pm UTC
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon Logo Patreon. Plain Donations: PayPal Logo PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register