Project

General

Profile

Actions

Defect #25299

closed

Markdown pre-block could derive incorrect wiki sections

Added by Kiichi Ozaki about 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Wiki
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

In markdown formatting, pre-block by ``` including # derives incorrect wiki editable-sections.

Example:

# H1

## H2

```
## pre-block
```

### H3


Editing section "H2":

## H2

```

and editing section "H3":

## pre-block
```

### H3

As above, # in pre-block is treated as markdown header.

NOTE pre-block by ~~~ does right results.

# H1

## H2

~~~
## pre-block
~~~

### H3

Editing "H2":

## H2

~~~
## pre-block
~~~

### H3

and editing "H3":

### H3

I attached a fix patch.


Files

redmine-wiki.png (20.4 KB) redmine-wiki.png Kiichi Ozaki, 2017-03-10 07:33
fix-markdown-section.patch (2.73 KB) fix-markdown-section.patch Kiichi Ozaki, 2017-03-10 07:50

Related issues

Blocks Redmine - Feature #22843: Change the value of "pre" button in Markdown toolbar from "~~~" to "```"ClosedGo MAEDA

Actions
Actions #1

Updated by Toshi MARUYAMA about 7 years ago

  • Target version set to 4.1.0
Actions #2

Updated by Go MAEDA over 6 years ago

  • Blocks Feature #22843: Change the value of "pre" button in Markdown toolbar from "~~~" to "```" added
Actions #3

Updated by Go MAEDA about 6 years ago

  • Target version changed from 4.1.0 to 3.3.7
  • Affected version set to 3.3.6

Since it is a very small fix, I think we can include the fix in the next minor release. Setting target version to 3.3.7.

Actions #4

Updated by Jean-Philippe Lang about 6 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Resolution set to Fixed

Committed, thanks.

Actions

Also available in: Atom PDF