1 # Creates persistent ParseFunc setup for non-HTML content. This is recommended to use (as a reference!)
4 makelinks.http.keep = {$styles.content.links.keep}
5 makelinks.http.extTarget < lib.parseTarget
6 makelinks.http.extTarget =
7 makelinks.http.extTarget.override = {$styles.content.links.extTarget}
8 makelinks.mailto.keep = path
13 typolink.parameter.data = parameters : allParams
14 typolink.extTarget < lib.parseTarget
16 typolink.extTarget.override = {$styles.content.links.extTarget}
17 typolink.target < lib.parseTarget
19 typolink.target.override = {$styles.content.links.target}
20 parseFunc.constants =1
26 parameter.data = parameters:href
27 title.data = parameters:title
28 ATagParams.data = parameters:allParams
29 target.data = parameters:target
30 extTarget = {$styles.content.links.extTarget}
31 extTarget.override.data = parameters:target
35 allowTags = {$styles.content.links.allowTags}
37 sword = <span class="csc-sword">|</span>
39 nonTypoTagStdWrap.HTMLparser = 1
40 nonTypoTagStdWrap.HTMLparser {
41 keepNonMatchedTags = 1
46 # good old parsefunc in "styles.content.parseFunc" is created for backwards compatibility. Don't use it, just ignore.
47 styles.content.parseFunc < lib.parseFunc
49 # Creates persistent ParseFunc setup for RTE content (which is mainly HTML) based on the "ts_css" transformation.
50 lib.parseFunc_RTE < lib.parseFunc
53 # Processing <table> and <blockquote> blocks separately
54 externalBlocks = article, aside, blockquote, div, dd, dl, footer, header, nav, ol, section, table, ul, pre
56 # The blockquote content is passed into parseFunc again...
58 table.stdWrap.HTMLparser = 1
59 table.stdWrap.HTMLparser.tags.table.fixAttrib.class {
60 default = contenttable
64 table.stdWrap.HTMLparser.keepNonMatchedTags = 1
65 table.HTMLtableCells=1
66 table.HTMLtableCells {
67 # Recursive call to self but without wrapping non-wrapped cell content
69 parseFunc =< lib.parseFunc_RTE
70 parseFunc.nonTypoTagStdWrap.encapsLines.nonWrappedTag =
72 addChr10BetweenParagraphs=1
91 nonTypoTagStdWrap.encapsLines {
92 encapsTagList = p,pre,h1,h2,h3,h4,h5,h6,hr,dt,li
95 innerStdWrap_all.ifBlank =
96 addAttributes.P.class = bodytext
97 addAttributes.P.class.setOnly=blank
99 nonTypoTagStdWrap.HTMLparser = 1
100 nonTypoTagStdWrap.HTMLparser {
101 keepNonMatchedTags = 1
106 # Creates a condition for targets. Not allowed in XHTML except for xhtml frames DTD
110 isTrue.data = TSFE:dtdAllowsFrames