Opened 19 years ago
Last modified 4 years ago
#4790 new defect
a blockquote after a list gets nested into two <blockquote> tags
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | high | Milestone: | topic-wikiengine | 
| Component: | wiki system | Version: | |
| Severity: | normal | Keywords: | blockquote paragraph | 
| Cc: | gary.wilson@… | Branch: | |
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
This text:
a list: * item 1 * item 2 a blockquote after a list
turns into:
<p> a list: </p> <ul><li>item 1 </li><li>item 2 </li></ul><blockquote> <blockquote> <p> a blockquote after a list </p> </blockquote> </blockquote>
Same thing happens for a blockquote following a blockquote following a list:
a list: * item 1 * item 2 a blockquote after a list a blockquote after a blockquote after a list
turns into:
<p> a list: </p> <ul><li>item 1 </li><li>item 2 </li></ul><blockquote> <blockquote> <p> a blockquote after a list </p> </blockquote> </blockquote> <blockquote> <blockquote> <p> a blockquote after a blockquote after a list </p> </blockquote> </blockquote>
Attachments (0)
Change History (8)
comment:1 by , 19 years ago
| Keywords: | blockquote added | 
|---|---|
| Milestone: | → 0.11 | 
| Owner: | changed from to | 
comment:2 by , 18 years ago
| Milestone: | 0.11 → 0.12 | 
|---|
WikiEngine refactoring and related fixes postponed.
comment:3 by , 18 years ago
| Keywords: | paragraph added | 
|---|---|
| Priority: | normal → high | 
#6887 provides additional examples and discussion about the expected behavior of blank lines in block level markup.
comment:4 by , 16 years ago
| Milestone: | next-major-0.1X → 0.13 | 
|---|
comment:5 by , 15 years ago
| Milestone: | 0.13 → 0.14-wikiengine | 
|---|
comment:6 by , 15 years ago
Note that this makes it impossible to include a list in a blockquote:
This is a quoted list: * item1 * item2
I expect it to be roughly rendered as:
<blockquote> <p>This is a quoted list:</p> <ul> <li>item1</li> <li>item2</li> </ul> </blockquote>
But is instead translated to:
<blockquote> <p>This is a quoted list:</p> </blockquote> <ul> <li>item1</li> <li>item2</li> </ul>
Example:
This is a quoted list:
- item1
 - item2
 
Perhaps a simple workaround/fix would be to provide a {{{#!quote processor to quote arbitrary markup?
comment:7 by , 15 years ago
In response to my own comment, a current workaround is to apply custom style to a div element such that it mimics a blockquote.
File site.css:
div.blockquote { /* copy-paste the blockquote style here. */ }
In wiki:
{{{#!div class="blockquote"
Your wiki markup here.
}}}
Less elegant/more cryptic than a native alternative though.
comment:8 by , 10 years ago
| Owner: | removed | 
|---|



  
Right, there should be only one level of indentation in the quote.