Ticket #4790 (new defect)
Opened 5 years ago
Last modified 10 months ago
a blockquote after a list gets nested into two <blockquote> tags
| Reported by: | Gary Wilson <gary.wilson@…> | Owned by: | cboos |
|---|---|---|---|
| Priority: | high | Milestone: | 0.14-wikiengine |
| Component: | wiki system | Version: | |
| Severity: | normal | Keywords: | blockquote paragraph |
| Cc: | gary.wilson@… | ||
| Release Notes: | |||
| API 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
Change History
comment:1 Changed 5 years ago by cboos
- Keywords blockquote added
- Milestone set to 0.11
- Owner changed from jonas to cboos
comment:2 Changed 5 years ago by cboos
- Milestone changed from 0.11 to 0.12
WikiEngine refactoring and related fixes postponed.
comment:3 Changed 4 years ago by cboos
- Keywords paragraph added
- Priority changed from normal to high
#6887 provides additional examples and discussion about the expected behavior of blank lines in block level markup.
comment:4 Changed 2 years ago by cboos
- Milestone changed from next-major-0.1X to 0.13
comment:5 Changed 12 months ago by cboos
- Milestone changed from 0.13 to 0.14-wikiengine
comment:6 Changed 10 months ago by anonymous
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 Changed 10 months ago by anonymous
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.



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