Defect #25299

Markdown pre-block could derive incorrect wiki sections

Added by Kiichi Ozaki over 1 year ago. Updated 3 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Wiki
Target version:3.3.7
Resolution:Fixed Affected version:3.3.6

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.

redmine-wiki.png (20.4 KB) Kiichi Ozaki, 2017-03-10 07:33

fix-markdown-section.patch Magnifier (2.73 KB) Kiichi Ozaki, 2017-03-10 07:50


Related issues

Blocks Redmine - Feature #22843: Change the value of "pre" button in Markdown toolbar from... Closed

Associated revisions

Revision 17266
Added by Jean-Philippe Lang 3 months ago

Markdown pre-block could derive incorrect wiki sections (#25299).

Patch by Kiichi Ozaki.

Revision 17267
Added by Jean-Philippe Lang 3 months ago

Merged r17266 into 3.4-stable (#25299).

Revision 17268
Added by Jean-Philippe Lang 3 months ago

Merged r17266 into 3.3-stable (#25299).

History

#1 Updated by Toshi MARUYAMA over 1 year ago

  • Target version set to 4.1.0

#2 Updated by Go MAEDA 6 months ago

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

#3 Updated by Go MAEDA 4 months 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.

#4 Updated by Jean-Philippe Lang 3 months ago

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

Committed, thanks.

Also available in: Atom PDF