Enforce consistent vertical spacing between paragraphs in endpoint definitions (#1969)
Use `p` elements to separate paragraphs instead of `br` and enforce single paragraphs to be wrapped in `p` for consistency. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>pull/1977/head^2
parent
32f41f88bc
commit
1f5f2c4d83
@ -0,0 +1 @@
|
||||
Enforce consistent vertical spacing between paragraphs in endpoint definitions.
|
@ -1,13 +1,13 @@
|
||||
{{ $ver := .v }}
|
||||
{{ $this := .this }}
|
||||
{{ $ver := .v -}}
|
||||
{{ $this := .this -}}
|
||||
|
||||
{{/*
|
||||
This differs from the shortcode added-in by wanting to be a block instead of inline
|
||||
and by slightly altering the rendered text as a result.
|
||||
*/}}
|
||||
|
||||
{{ if $this }}
|
||||
**New in this version.**
|
||||
{{ else }}
|
||||
**Added in `v{{ $ver }}`**
|
||||
{{ end }}
|
||||
{{ if $this -}}
|
||||
<p><strong>New in this version.</strong></p>
|
||||
{{ else -}}
|
||||
<p><strong>Added in <code>v{{ $ver }}</code></strong></p>
|
||||
{{ end -}}
|
||||
|
Loading…
Reference in New Issue