{{ if content.extract("heading1").count > 0
for chapter in content.splitBy("heading1") }}
-
{{ chapter.head.plainText.replace('\u2028', ' ').replace('\u2029', ' ').replace('\u000A',' ').trimSpaces }}{{
if chapter.body.extract("heading2").count > 0 }}
{{
for sectionItem in chapter.body.extract("heading2") }}
-
{{ sectionItem.plainText.replace('\u2028', ' ').replace('\u2029', ' ').replace('\u000A',' ').trimSpaces }}
{{
end
}}
{{
end }}
{{
end
end
if (content.extract("heading1").count == 0) and (content.extract("heading2").count > 0)
for chapter in content.splitBy("heading2") }}
-
{{ chapter.head.plainText.replace('\u2028', ' ').replace('\u2029', ' ').replace('\u000A',' ').trimSpaces }}{{
if chapter.body.extract("heading3").count > 0 }}
{{
for sectionItem in chapter.body.extract("heading3") }}
-
{{ sectionItem.plainText.replace('\u2028', ' ').replace('\u2029', ' ').replace('\u000A',' ').trimSpaces }}
{{
end
}}
{{
end }}
{{
end
end
}}