Skip to content

Commit 0efb7d1

Browse files
authored
Fix HTML in terraform variable description (#835)
1 parent 799e559 commit 0efb7d1

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

scripts/docs-collator/component/renderer/templates/components/md/terraform-docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ content: |-
1515
<dd>
1616
{{- $lines := regexSplit "\n" (tostring .Description | replace "OBSOLETE: " "") -1 -}}
1717
{{- range $lines }}
18-
{{ . }}<br/>
18+
{{ . | html }}<br/>
1919
{{- end }}
2020
2121
{{ if gt (len (split "\n" (tostring .Type))) 2 }}
@@ -45,7 +45,7 @@ content: |-
4545
<dd>
4646
{{- $lines := regexSplit "\n" (tostring .Description | replace "OBSOLETE: " "") -1 -}}
4747
{{- range $lines }}
48-
{{ . }}<br/>
48+
{{ . | html }}<br/>
4949
{{- end }}
5050
<br/>
5151
{{ if gt (len (split "\n" (tostring .Type))) 2 }}
@@ -83,7 +83,7 @@ content: |-
8383
<dd>
8484
{{- $lines := regexSplit "\n" (tostring .Description | replace "OBSOLETE: " "") -1 -}}
8585
{{- range $lines }}
86-
{{ . }}<br/>
86+
{{ . | html }}<br/>
8787
{{- end }}
8888
**Required:** {{ ternary .Required "Yes" "No" }}<br/>
8989
{{ if gt (len (split "\n" (tostring .Type))) 2 }}
@@ -116,7 +116,7 @@ content: |-
116116
<dd>
117117
{{- $lines := regexSplit "\n" (tostring .Description | replace "OBSOLETE: " "" | default "n/a" ) -1 -}}
118118
{{- range $lines }}
119-
{{ . }}<br/>
119+
{{ . | html }}<br/>
120120
{{- end }}
121121
</dd>
122122
{{- end }}

scripts/docs-collator/component/renderer/templates/components/yml/terraform-docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ content: |-
1515
<dd>
1616
{{- $lines := regexSplit "\n" (tostring .Description | replace "OBSOLETE: " "") -1 -}}
1717
{{- range $lines }}
18-
{{ . }}<br/>
18+
{{ . | html }}<br/>
1919
{{- end }}
2020
2121
{{ if gt (len (split "\n" (tostring .Type))) 2 }}
@@ -45,7 +45,7 @@ content: |-
4545
<dd>
4646
{{- $lines := regexSplit "\n" (tostring .Description | replace "OBSOLETE: " "") -1 -}}
4747
{{- range $lines }}
48-
{{ . }}<br/>
48+
{{ . | html }}<br/>
4949
{{- end }}
5050
<br/>
5151
{{ if gt (len (split "\n" (tostring .Type))) 2 }}
@@ -83,7 +83,7 @@ content: |-
8383
<dd>
8484
{{- $lines := regexSplit "\n" (tostring .Description | replace "OBSOLETE: " "") -1 -}}
8585
{{- range $lines }}
86-
{{ . }}<br/>
86+
{{ . | html }}<br/>
8787
{{- end }}
8888
**Required:** {{ ternary .Required "Yes" "No" }}<br/>
8989
{{ if gt (len (split "\n" (tostring .Type))) 2 }}
@@ -116,7 +116,7 @@ content: |-
116116
<dd>
117117
{{- $lines := regexSplit "\n" (tostring .Description | replace "OBSOLETE: " "" | default "n/a" ) -1 -}}
118118
{{- range $lines }}
119-
{{ . }}<br/>
119+
{{ . | html }}<br/>
120120
{{- end }}
121121
</dd>
122122
{{- end }}

scripts/docs-collator/templates/modules/terraform-docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ content: |-
1515
<dd>
1616
{{- $lines := regexSplit "\n" (tostring .Description | replace "OBSOLETE: " "") -1 -}}
1717
{{- range $lines }}
18-
{{ . }}<br/>
18+
{{ . | html }}<br/>
1919
{{- end }}
2020
2121
{{ if gt (len (split "\n" (tostring .Type))) 2 }}
@@ -45,7 +45,7 @@ content: |-
4545
<dd>
4646
{{- $lines := regexSplit "\n" (tostring .Description | replace "OBSOLETE: " "") -1 -}}
4747
{{- range $lines }}
48-
{{ . }}<br/>
48+
{{ . | html }}<br/>
4949
{{- end }}
5050
<br/>
5151
{{ if gt (len (split "\n" (tostring .Type))) 2 }}
@@ -83,7 +83,7 @@ content: |-
8383
<dd>
8484
{{- $lines := regexSplit "\n" (tostring .Description | replace "OBSOLETE: " "") -1 -}}
8585
{{- range $lines }}
86-
{{ . }}<br/>
86+
{{ . | html }}<br/>
8787
{{- end }}
8888
**Required:** {{ ternary .Required "Yes" "No" }}<br/>
8989
{{ if gt (len (split "\n" (tostring .Type))) 2 }}
@@ -116,7 +116,7 @@ content: |-
116116
<dd>
117117
{{- $lines := regexSplit "\n" (tostring .Description | replace "OBSOLETE: " "" | default "n/a" ) -1 -}}
118118
{{- range $lines }}
119-
{{ . }}<br/>
119+
{{ . | html }}<br/>
120120
{{- end }}
121121
</dd>
122122
{{- end }}

0 commit comments

Comments
 (0)