Skip to content

Commit

Permalink
fix(core): Header and footer templates are not escaping the custom he…
Browse files Browse the repository at this point in the history
…ader and footer content (#8)
  • Loading branch information
nandorholozsnyak authored Apr 23, 2023
1 parent e3638ba commit f4080f1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/custom-footer.adoc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Custom footer !!
== Custom footer !!
2 changes: 1 addition & 1 deletion examples/custom-header.adoc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Custom header !!
== Custom header !!
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#if customContent.customFooterContent~}}
{{customContent.customFooterContent}}
{{{customContent.customFooterContent}}}
{{/if~}}

{{#if customization.includeGenerationDate ~}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{~#if description}}= {{description}} {{/if~}}
{{> templates/adoc/toc.adoc}}
{{#if customContent.customHeaderContent~}}
{{customContent.customHeaderContent}}
{{{customContent.customHeaderContent}}}
{{/if~}}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#if customContent.customFooterContent~}}
{{customContent.customFooterContent}}
{{{customContent.customFooterContent}}}
{{/if~}}

{{#if customization.includeGenerationDate ~}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{~#if description}}# {{description}} {{/if~}}
{{> templates/md/toc.md}}
{{#if customContent.customHeaderContent~}}
{{customContent.customHeaderContent}}
{{{customContent.customHeaderContent}}}
{{/if~}}

0 comments on commit f4080f1

Please sign in to comment.