Skip to content
Discussion options

You must be logged in to vote

The label: parameter in the @{} syntax uses HTML-like rendering, not CommonMark. Here is how line breaks work in practice:

  • Literal newlines in the label string each produce a single <br/> in the rendered SVG
  • <br> tags add an additional break on top of the newline character
  • An empty line (two consecutive newlines) gives you two <br/>s

So in your attempts:

  1. Title + empty line = 2 breaks (one per newline), but the second newline starts the next content line
  2. <br> after title + empty line = 3 breaks (the explicit <br> + 2 from double newline)
  3. <br><br> + empty line = 4 breaks
  4. <br> on its own line = same as #3

To get exactly one visible blank line between the title and the steps, you want exa…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stdedos
Comment options

Answer selected by stdedos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants