redhatgov.github.io icon indicating copy to clipboard operation
redhatgov.github.io copied to clipboard

Adding 'alert warning' text boxes within panel groups results in rendering errors

Open jvanmeter opened this issue 7 years ago • 2 comments

Adding 'alert warning' text boxes within one panel within a panel group results in rendering errors. When using alerts in a panel, the text box format is not correctly rendered and an error is displayed alongside the intended warning text.

jvanmeter avatar Jun 13 '17 14:06 jvanmeter

After some some testing it appears placing <p> </p> around the alert codes enables proper rendering. Is this the intended behavior?

See the example below for an example:

{{< panel_group >}}
{{% panel "test 1" %}}
<p>
{{< alert info >}} OpenShift all the things test 1 {{< /alert >}}
</p>
{{% /panel %}}
{{% panel "test 2" %}}
{{< alert info >}} OpenShift all the things test 2 {{< /alert >}}
{{% /panel %}}
{{< /panel_group >}}

{{< panel_group >}}
{{% panel "test 3" %}}
<p>
{{< alert info >}} OpenShift all the things test 3 {{< /alert >}}
</p>
{{% /panel %}}
{{< /panel_group >}}

image

jvanmeter avatar Jun 17 '17 00:06 jvanmeter

Further testing has shown the enclosing alerts in paragraph markers does not consistently resolve the issue. Please review the following page to see an example of the rendering errors:

https://raw.githubusercontent.com/jvanmeter/redhatgov.github.io/openshift33/content/workshops/openshift33/exercise1.6.md

jvanmeter avatar Jun 30 '17 22:06 jvanmeter