Defect #25299

Markdown pre-block could derive incorrect wiki sections

Added by Kiichi Ozaki 8 months ago. Updated 8 months ago.

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

0%

Category:Wiki
Target version:4.1.0
Resolution: 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.

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

History

#1 Updated by Toshi MARUYAMA 8 months ago

  • Target version set to 4.1.0

Also available in: Atom PDF