[pmwiki-devel] <:block>

0 views
Skip to first unread message

Simon

unread,
Jan 21, 2022, 7:34:30 PM1/21/22
to PmWiki Devel Mailing List
Just reaching out for info on
<:block>
and what it does when inserted into the markup stream

ngā mihi

Simon

Petko Yotov

unread,
Jan 25, 2022, 9:18:19 PM1/25/22
to Simon, PmWiki Devel Mailing List
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

_______________________________________________
pmwiki-devel mailing list
pmwiki...@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
Reply all
Reply to author
Forward
0 new messages