Block Quote Syntax

How about the quoted text? For { { { for the fixed width text, ((( can be used for the quoted text. It is similar to [quote]text[/quote] in BBcode.

(((
first line of MoinMoin

second line of MoinMoin
)))

could be rendered as:

first line of MoinMoin

second line of MoinMoin


I have a patch for Moin v1.3.4 that implements this (see here: JamieLawrence). It's nothing more than a hack by someone without much Python and/or MoinMoin experience. However, it works for me and maybe useful to others. It implements the ((( syntax described above (by blatently copying the way code elements using {{{ are handled) and still allows wiki formatting within the quote. Hope this is useful to someone. Email me if you find any problems with it, and particularly if you've fixed them!!

Why add more funny syntax? wiki markup is good when its minimal and simple, like text only document: email, RFC. When wiki markup try to do complicated things like tables, its simply horrible. It is easier to type ((( then more verbose "quote" or "blockquote" but it not readable. For special stuff, use extensible and verbose system, like macros and parsers.

A quote parser can render the contents inside a div or BLOCKQUOTE designed with css. Could be modified SectionParser.

For example, this markup:

‪{‪{‪{
#!quote
#cite http://www.mycom.com/tolkien/twotowers.html
They went in single file, running like hounds on a strong scent,
and an eager light was in their eyes. Nearly due west the broad
swath of the marching Orcs tramped its ugly slot; the sweet grass
of Rohan had been bruised and blackened as they passed.
‪}‪}‪}

Will become:

<blockqoute cite="http://www.mycom.com/tolkien/twotowers.html">
<P>They went in single file, running like hounds on a strong scent,
and an eager light was in their eyes. Nearly due west the broad
swath of the marching Orcs tramped its ugly slot; the sweet grass
of Rohan had been bruised and blackened as they passed.</P>
</blockqoute >

Which could be designed like this:

"They went in single file, running like hounds on a strong scent, and an eager light was in their eyes. Nearly due west the broad swath of the marching Orcs tramped its ugly slot; the sweet grass of Rohan had been bruised and blackened as they passed."


CategoryFeatureRequest

MoinMoin: FeatureRequests/BlockQuote (last edited 2007-10-29 19:06:56 by localhost)