Markdown / bbcode خلل الكود/الاقتباس

I’ve encountered an odd markdown markdown/bbcode bug.

Have a few lines of code in bbcode/markdown

[code]
line1
line2
[/code]

looks like

line1
line2

Quote them:

> [code]
> line1
> line2
> [/code]

looks like

line1
> line2
4 إعجابات

… and should look like:

line1
line2

escaped:

> ```
> line1
> line2
> ```
إعجابَين (2)

Can you tell me what browser / OS you’re using and how you’re quoting these lines?

Here’s how it looks on my end

which gives the correct markdown

[quote="Richard - Communiteq, post:1, topic:299047, username:RGJ"]
```
line1
line2
```
[/quote]

which renders as

Oh wait, I think I understand what you mean :man_facepalming:

  1. Write down the following markdown
[code]
line1
line2
[/code]
  1. Select the text and click the “Blockquote” button so it prepends a > on each line
> [code]
> line1
> line2
> [/code]

Which renders (wrongly) as

line1
> line2

Instead of

line1
line2

This is most likely an issue with the way we parse BBCode Blocks :thinking:

إعجاب واحد (1)

Yeah, I already figured it was not a markdown issue per se but probably a bbcode issue.

The problem can be circumvented by using ``` instead of [code], as supermathie implicitly said in the second post.

إعجاب واحد (1)

Will be fixed by

إعجابَين (2)

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.