From matthias.berth@googlemail.com Tue Sep 25 12:22:54 2007 From: Matthias Berth To: smallwiki@list.inf.unibe.ch Subject: Pier: mixing wiki markup and raw html Date: Tue, 25 Sep 2007 12:22:41 +0200 Message-ID: <9aa6ae270709250322q4c7f1514me1687f21f5b604ec@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7574180753900605646==" --===============7574180753900605646== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hello, I want to mix raw HTML into Pier wiki pages, mostly for laying out some parts inside
. For example I want to put a heading and some text inside a box, like so:
!Hello
Pier uses line breaks to start new paragraphs, so this gets rendered as:

Hello

I cannot put the
at the beginning of the line because the Pier parser would not detect the !Hello as a heading then (! has to be at the start of line). I guess that there will be no perfect solution for mixing HTML and wiki markup, but I'm willing to give it a try. Here are potential solutions I could see: - do a HTML escape (put and at the start of two lines) - a bit better: do html escape and use Piers textmatcher to resolve *internal links* and +embeddings+ - change the paragraph line break convention to what's used e.g. in TeX: paragraphs are separated by two or more newlines (roughly speaking). I'd love to hear your opinions, and maybe tips about possible implementation. Cheers Matthias --===============7574180753900605646==--