Skip to content

Commit

Permalink
Add links to retired criteria / fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Evan Anderson <[email protected]>
  • Loading branch information
evankanderson committed Jan 17, 2025
1 parent 324af2f commit 08ac139
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions cmd/baseline.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ func (b *Baseline) Generate() error {
"asLink": func(s string) string {
return asLinkTemplateFunction(s)
},
"toLower": strings.ToLower,
}).Parse(string(templateContent))
if err != nil {
return fmt.Errorf("error parsing template: %w", err)
Expand Down
8 changes: 4 additions & 4 deletions cmd/template.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ For more information on the project and to make contributions, visit the [GitHub

### {{ .ID }}

**Criterion:** {{ .CriterionText | addLinks }}

{{ if .ReplacedBy -}}
**Replaced By:** {{ .ReplacedBy }}
{{- else -}}
**Replaced By:** [{{ .ReplacedBy }}](#{{ .ReplacedBy | toLower }})

{{else -}}
**Criterion:** {{ .CriterionText | addLinks }}

**Maturity Level:** {{ .MaturityLevel }}

Expand Down

0 comments on commit 08ac139

Please sign in to comment.