[pmwiki-users] XHTML strict compatible replacement for [[<<]]
Patrick R. Michaud
pmichaud at pobox.com
Thu May 26 08:27:01 CDT 2011
On Thu, May 26, 2011 at 11:28:44AM +0200, Oliver Betz wrote:
> What's the preferred way to create such a clear:something element (a
> "p" would be useful) with PmWiki markup?
>
> For example, lfloat styled images with some related text beside them:
>
> %lfloat% Attach:image1.jpg %%
> some text \\
> more text
> (:comment how to clear the lfloat here, i.e. clear:left styled <p>?:)
> %lfloat% Attach:image2.jpg %%
> This image shall be positioned below the first image
Perhaps override [[<<]] to have this instead:
Markup('[[<<]]', 'inline',
'/\\[\\[<<\\]\\]/',
"<br style='clear: both' />");
To really make it a paragraph, perhaps:
$WikiStyleCSS[] = 'clear';
and then
%lfloat% Attach:image1.jpg
some text \\
more text
%p clear=left%
%lfloat% Attach:image2.jpg
This image shall be positioned below the first image
Pm
More information about the pmwiki-users
mailing list