Defect #29478

Triple backtick does not work properly

Added by Kamil . over 1 year ago. Updated over 1 year ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Text formatting
Target version:-
Resolution:Invalid Affected version:3.4.6

Description

When I have my Text formatting set to Markdown, I can use backticks like this
```
this will be displayed
just fine
```

But this syntax is also correct, despite it does not work in Redmine:
```this is
also fine```

markdown.png (5.62 KB) Kamil ., 2018-09-02 22:12

redmine.png (1.87 KB) Kamil ., 2018-09-02 22:12

History

#1 Updated by Marius BALTEANU over 1 year ago

  • Status changed from New to Needs feedback

According to which documentation are you saying that the below syntax is correct?

``` this is
also fine```

#3 Updated by Go MAEDA over 1 year ago

I found the following sentence in https://spec.commonmark.org/0.28/#fenced-code-blocks.

If the end of the containing block (or document) is reached and no closing code fence has been found, the code block contains all of the lines after the opening code fence until the end of the containing block (or document).

In Redmine, the following expression works as described in the spec,

``` ruby
puts "Hello, world." 

but it does not work if a space character is contained in the "info string".

``` ruby ruby
puts "Hello, world." 

#4 Updated by Marius BALTEANU over 1 year ago

I'm not sure how correct is to follow the documentation of Common mark because is not quite the same thing with Markdown.

#5 Updated by Go MAEDA over 1 year ago

Marius BALTEANU wrote:

I'm not sure how correct is to follow the documentation of Common mark because is not quite the same thing with Markdown.

I agree. I don't think the reported problem is not a big problem which should be fixed.

#6 Updated by Marius BALTEANU over 1 year ago

  • Status changed from Needs feedback to Closed
  • Resolution set to Invalid

I'm closing this as invalid.

Also available in: Atom PDF