Markdown

Undesirable parsing of [code] blocks - Markdown

Undesirable parsing of [code] blocks

by johnd0e » Mon Jul 19, 2021 8:36 am

On our forum I see that markdown is parsed even in [code] blocks.
Is that intended?
Can you reproduce the issue?
May be it is connected with this extension: viewtopic.php?t=2557806?

Could you advise how to fix this?
I'd prefer markdown parser to ignore bbcode "code" blocks completely.
johnd0e
Registered User
Posts: 40
Joined: Fri Oct 04, 2019 3:07 pm
Contact:

Re: Undesirable parsing of [code] blocks

by AlfredoRamos » Tue Jul 20, 2021 4:49 pm

It would have been more useful to include code and maybe some screenshots.

Someone reported a couple of weeks ago some indentation issues with the [code] that might be related to this.

I need to investigate if it's a issue of this extension or from the library itself.

I believe it's coming from the library, but I need to test.
Some of my phpBB extensions:
Image Imgur | :chart_with_upwards_trend: SEO Metadata | Image Markdown | :shield: hCaptcha
:trophy: Check out all my validated extensions :trophy:

:penguin: Arch Linux user :penguin:
User avatar
AlfredoRamos
Recognised Extension Developer
Posts: 1241
Joined: Wed Dec 25, 2013 9:06 pm
Location: /dev/null
Name: Alfredo
Contact:

Re: Undesirable parsing of [code] blocks

by johnd0e » Tue Jul 20, 2021 5:23 pm

https://github.com/s9e/TextFormatter/issues/169
Here is answer from library's author
johnd0e
Registered User
Posts: 40
Joined: Fri Oct 04, 2019 3:07 pm
Contact: