Skip to content

theme: unwanted paragraph break with AsciiDoc #829

@Yosh31207

Description

@Yosh31207

Using notice shortcode in AsciiDoc, a paragraph break is inserted between icon and notice title like this.

image

I found that this is fixed by changing layouts/partials/shortcodes/notice.html as like below.

from:

<div class="box-label">{{ if $icon }}<i class="{{ $icon }}"></i>{{ end }}{{ if and $icon $title }} {{ end }}{{ $title | .RenderString }}</div>

to:

<div class="box-label">{{ if $icon }}<i class="{{ $icon }}"></i>{{ end }}{{ if and $icon $title }} {{ end }}{{ $title }}</div>

image

But I don't know if this change (removing .RenderString) may cause other side effects.

Metadata

Metadata

Assignees

Labels

asciidocThis is a topic related to the processing of AsciiDocbugSomething isn't workinghugoThis is a topic related to Hugo itself but not the theme

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions