[pmwiki-devel] <:block>

Petko Yotov 5ko at 5ko.fr
Mon Jan 24 20:32:47 PST 2022


At the start of a line, <:block> means "start a block-level element", 
i.e. break out of the paragraphs.

Say you have these markups:
* (:abc:) returns 'ABC'
* (:def:) returns '<:block>DEF'

This wiki text:

Some text
(:abc:)
some other text

will produce this HTML (simplified):

<p>Some text
ABC
some other text</p>

While this wiki text:

Some text
(:def:)
some other text

will produce this HTML (simplified):

<p>Some text</p>
DEF
<p>some other text</p>

This is intended for a markup rule to return a block level element like 
<div>...</div> that is not allowed inside an HTML paragraph.

Petko

On 22/01/2022 01:33, Simon wrote:
> Just reaching out for info on
> <:block>
> and what it does when inserted into the markup stream



More information about the pmwiki-devel mailing list