-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce consistent vertical spacing between paragraphs in endpoint de…
…finitions (#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 <[email protected]>
- Loading branch information
Showing
6 changed files
with
37 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Enforce consistent vertical spacing between paragraphs in endpoint definitions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters