.. include:: /Includes.rst.txt .. _parsefunc: parseFunc ^^^^^^^^^ This object is used to parse some content for stuff like special typo tags, the "makeLinks"-things and so on... .. ### BEGIN~OF~TABLE ### .. container:: table-row Property externalBlocks Data type list of tagnames/+properties Description This allows you to pre-split the content passed to parseFunc so that only content outside the blocks with the given tags is parsed. **Extra properties:** **.[tagname]** { **callRecursive:** Boolean. If set, the content of the block is directed into parseFunc again. Otherwise the content is just passed through with no other processing than stdWrap (see below). **callRecursive.dontWrapSelf:** Boolean. If set, the tags of the block is *not* wrapped around the content returned from parseFunc. **callRecursive.alternativeWrap:** Alternative wrapping instead of the original tags. **callRecursive.tagStdWrap:** ->stdWrap processing of the block-tags. **stdWrap:** ->stdWrap processing of the whole block (regardless of whether callRecursive was set.) **stripNLprev:** Boolean. Strips off last line break of the previous outside block. **stripNLnext:** Boolean. Strips off first line break of the next outside block. **stripNL:** Boolean. Does both of the above. **HTMLtableCells:** Boolean. If set, then the content is expected to be a table and every table-cell is traversed. Below, "default" means all cells and "1", "2", "3", ... overrides for specific columns. **HTMLtableCells.[default/1/2/3/...]** { **callRecursive:** Boolean. The content is parsed through current parseFunc. **stdWrap:** ->stdWrap processing of the content in the cell. **tagStdWrap:** -> The
" will have a chr(10) inserted between them.
}
**Example:**
This example is used to split regular bodytext content so that tables
and blockquotes in the bodytext are processed correctly. The
blockquotes are passed into parseFunc again (recursively) and further
their top/bottom margins are set to 0 (so no apparent line breaks are
seen)
The tables are also displayed with a number of properties of the cells
overridden. ::
tt_content.text.20.parseFunc.externalBlocks {
blockquote.callRecursive = 1
blockquote.callRecursive.tagStdWrap.HTMLparser = 1
blockquote.callRecursive.tagStdWrap.HTMLparser {
tags.blockquote.fixAttrib.style.list = margin-bottom:0;margin-top:0;
tags.blockquote.fixAttrib.style.always = 1
}
blockquote.stripNLprev = 1
blockquote.stripNLnext = 1
table.stripNL = 1
table.stdWrap.HTMLparser = 1
table.stdWrap.HTMLparser {
tags.table.overrideAttribs = border="0" style="margin-top: 10px;"
tags.tr.allowedAttribs = 0
tags.td.overrideAttribs = class="table-cell" style="font-size: 10px;"
}
}
.. container:: table-row
Property
constants
Data type
boolean
Description
You can define constants in the :ref:`top-level object "constants"
|
20.stdWrap.brTag =
20.stdWrap.parseFunc {
makelinks = 1
makelinks.http.keep = path
makelinks.http.extTarget = _blank
makelinks.mailto.keep = path
tags {
link = TEXT
link {
stdWrap.current = 1
stdWrap.typolink.extTarget = _blank
stdWrap.typolink.target = {$cLinkTagTarget}
stdWrap.typolink.wrap =