so it was “Multi-line literal strings”. But how was I supposed to understand that “there is no escaping whatsoever. All other content between the delimiters is interpreted as-is without modification.” meant control characters would be rendered as I hoped, and not as literal “\t” “\n” etc ? Give me a break…
This {{ $title = .Title | $.Page.RenderString }}
produces my menu entry. But this: Title = "Cooking:\u000&the original sin"
shows only a space instead of a newline.
The field or variable may or may not contain markdown. The template author has to make that determination.
Sorry, yes, I was wrong. However \
should work for headings by default, since it’s a .md file. And it still doesn’t, only
works.
This render-heading.html:
{{ if eq .Level 1 }}
<h1 id=title>
{{ .Text | .Page.RenderString }}
</h1>
{{ else }}
<h{{ .Level }} id="{{ .Anchor | safeURL }}">
{{ .Text | .Page.RenderString }}
<a class="anchor" href="#{{ .Anchor | safeURL }}">#</a>
</h{{ .Level }}>
{{ end }}
fails because Error: Error building site: "/home/drm/WEBSITE/content/docs/Autres_cachés/purity_spirale.md:1:1": "/home/drm/WEBSITE/themes/hugo-book/layouts/_default/_markup/render-heading.html:3:18": execute of template failed: template: _default/_markup/render-heading.html:3:18: executing "_default/_markup/render-heading.html" at <.Page.RenderString>: error calling RenderString: text is already rendered, repeating it may cause infinite recursion
.
Without, trailing \ are not recognized.
Ah… I got it, the hexcode does produce the a newline is the html code, but html itself doesn’t render newline as such.
Obviously the user couldn’t care less about what appears in the source, he wants the damn specially included unicode character to be displayed as is, any other behavior is stupid. 
, the newline character, wherever I put it. If the language or tool or whatnot doesn’t get than a newline character means newline, it makes no sense.
A newline character is not the same thing as a <br>
element in HTML.
Yes, but I don’t care nor should I. hugo/goldmark should translate these characters in the corresponding html elements to show what they’re meant to show.
I stop my rant, I have what I wanted, thanks.