[!!!][TASK] Remove deprecated parsing of <link> tag
[Packages/TYPO3.CMS.git] / typo3 / sysext / fluid_styled_content / Configuration / TypoScript / Helper / ParseFunc.typoscript
1 # Creates persistent ParseFunc setup for non-HTML content.
2 lib.parseFunc {
3 makelinks = 1
4 makelinks {
5 http {
6 keep = {$styles.content.links.keep}
7 extTarget = {$styles.content.links.extTarget}
8 }
9 mailto {
10 keep = path
11 }
12 }
13 tags {
14 a = TEXT
15 a {
16 current = 1
17 typolink {
18 parameter.data = parameters:href
19 title.data = parameters:title
20 ATagParams.data = parameters:allParams
21 target.data = parameters:target
22 extTarget = {$styles.content.links.extTarget}
23 extTarget.override.data = parameters:target
24 }
25 }
26 }
27 allowTags = {$styles.content.allowTags}
28 denyTags = *
29 sword = <span class="ce-sword">|</span>
30 constants = 1
31 nonTypoTagStdWrap {
32 HTMLparser = 1
33 HTMLparser {
34 keepNonMatchedTags = 1
35 htmlSpecialChars = 2
36 }
37 }
38 }
39
40
41 # Creates persistent ParseFunc setup for RTE content (which is mainly HTML) based on the "default" transformation.
42 lib.parseFunc_RTE < lib.parseFunc
43 lib.parseFunc_RTE {
44 # Processing <ol>, <ul> and <table> blocks separately
45 externalBlocks = article, aside, blockquote, div, dd, dl, footer, header, nav, ol, section, table, ul, pre
46 externalBlocks {
47 ol {
48 stripNL = 1
49 stdWrap.parseFunc = < lib.parseFunc
50 }
51 ul {
52 stripNL = 1
53 stdWrap.parseFunc = < lib.parseFunc
54 }
55 pre {
56 stdWrap.parseFunc < lib.parseFunc
57 }
58 table {
59 stripNL = 1
60 stdWrap {
61 HTMLparser = 1
62 HTMLparser {
63 tags.table.fixAttrib.class {
64 default = contenttable
65 always = 1
66 list = contenttable
67 }
68 keepNonMatchedTags = 1
69 }
70 }
71 HTMLtableCells = 1
72 HTMLtableCells {
73 # Recursive call to self but without wrapping non-wrapped cell content
74 default.stdWrap {
75 parseFunc = < lib.parseFunc_RTE
76 parseFunc.nonTypoTagStdWrap.encapsLines.nonWrappedTag =
77 }
78 addChr10BetweenParagraphs = 1
79 }
80 }
81 div {
82 stripNL = 1
83 callRecursive = 1
84 }
85 article < .div
86 aside < .div
87 blockquote < .div
88 footer < .div
89 header < .div
90 nav < .div
91 section < .div
92 dl < .div
93 dd < .div
94 }
95 nonTypoTagStdWrap {
96 encapsLines {
97 encapsTagList = p,pre,h1,h2,h3,h4,h5,h6,hr,dt
98 remapTag.DIV = P
99 nonWrappedTag = P
100 innerStdWrap_all.ifBlank = &nbsp;
101 }
102 }
103 nonTypoTagStdWrap {
104 HTMLparser = 1
105 HTMLparser {
106 keepNonMatchedTags = 1
107 htmlSpecialChars = 2
108 }
109 }
110 }