[ewiki] Re: markup: headline,table,img | mpi: embed vs insert

> ##headline markup (!,!!,!!!)
> [...]
> line whether !, !!, !!! following the logic of *, **, *** and <h1>, <h2>, 

The ! indicating <h1> obviously makes the folks happy, that were already
used to HTML in the first place; I however believe that this was an
unfriendly markup for newbies.
Making it configureable (in one or another way) however seems to be a
good idea - Andy's idea of having different markup on different pages
also makes a lot of sense - this is how PhpWiki did it (checkbox asking
for "new or old markup"). The downside is, that this approach adds to
the complexity of the edit/ UI.

The _THEHTMLWAY constant also made sense here, as it allows for the
site-wide setting of the default behaviour; but I'd rather move this
into $ewiki_config[] instead, to also allow overriding from within
the upcoming meta/ plugins.


> ##RE: table markup: whitespace thingy 
>
> I find Mario's suggestion to take a tables first line as reference and being 
> more tolerant for the other rows.
>
> Nonetheless I'd favour a markup which is tolerant towards whitespaces after 
> the last '|' __even__ in the first row. So what do you think about a 
> str-operation that doesn't prune the rest of a line after '|' regardless but 
> just removes whitespaces?

I only reject the full-tolerance idea, because it was more code involved
to cleanly accomplish it, and also because I've already done the other
thing! ;)
Anyhow the restriction still would allow for 99% good results, if there
was one such trailing space in a 100-lines table.


> ##RE: table markup: rowspan stuff
> [...]
> Where do we put the 
> if ($ewiki_plugins["format_final"]) { evil_table_rowspan(&$html); }

That snippet was a sample plugin, and thus I'll just upload it into
plugins/markup/ for general use.


> ##mpi_embed instead of mpi_insert to get rid of footer
>
> @Mario: It seems that I can only imbed pages such as PowerSearch but not 
> simple WikiPages? Should I be able to embed any pages?

The "embed" mpi only allows for embedding of dynamic pages (which
however included spages/), but no regular pages. (Nevertheless, I think
that internal separation is a good thing, and keeps some things cleaner.)

You can however use the renewed "insert" mpi and pass it additional
parameters to get rid of this and that:

   <?plugin insert WhatEverPage split_title=1 control_line=0
          frame=1 wm_indent="<blockquote class=indent>" allow_html=1  ?>



Other related posts: