Hi,
I’m always looking for fringe cases, and finding them. Is there a reason why in this:
{{ $author := .Attributes.author }}
{{ $cite := .Attributes.cite }}
<figure>
<blockquote{{with $cite}} cite=“{{$cite|plainify}}”{{end}}>{{ .Inner|markdownify }}{{ if or $author $cite }}<figcaption><cite>{{with $author}}<strong>{{.| markdownify }}</strong>{{end}}{{with $cite }} in {{$cite}}{{end}}</cite></figcaption>{{end}}
</blockquote>
</figure>
plainify would not work ?
I tried to insert {{ [here I copied the content of $cite] | plainify}} and it worked.
But using the variable doesn’t.
Instead, it plainifies nothing and if I put html code in cite, what happens is one hell of a mess. The code generated is actually just as I wrote it, with the full <details> complete with its figure inside the opening blockquote tag (<blockquote cite= “HEEEERE”>) but only the figure is rendered, with a trailing ">
. Then again in the element down below, working as intended.
So figure is rendered twice.