lotusdocs icon indicating copy to clipboard operation
lotusdocs copied to clipboard

Shortcode tables don't show up within tabs

Open ginsm opened this issue 11 months ago • 2 comments

Past Issues Searched

  • [X] I have searched open and closed issues to make sure that the bug has not yet been reported

Issue is a Bug Report

  • [X] This is a bug report and not a feature request, nor asking for support

Describe the bug

I tried to create a table using the shortcode tables within a tab and it doesn't appear:

{{< tabs tabTotal="2">}}
{{% tab tabName="Example" %}}

{{< table >}}
| Animal | Sounds | Legs |
|---------|--------|-----|
| `Cat` | Meow | 4 |
| `Dog` | Woof | 4 |
| `Cricket` | Chirp | 6 |
{{< /table >}}

{{% /tab %}}
{{% tab tabName="Another Tab" %}}

{{< table "table-hover" >}}
| Animal | Sounds | Legs |
|---------|--------|-----|
| `Cat` | Meow | 4 |
| `Dog` | Woof | 4 |
| `Cricket` | Chirp | 6 |
{{< /table >}}

{{% /tab %}}
{{< /tabs >}}

Normal tables appear just fine.

Expected behavior

I'd expect the shortcode tables to appear within the tabs.

Screenshots

No response

Environment

- OS: Windows
- Browser: Brave | Chrome
- Browser Version: v1.63.169 | v122.0.6261.112

ginsm avatar Mar 11 '24 07:03 ginsm

Hi, I had the same problem with prism. The dev should add nesting support.

Edit: However I tried the code you posted and it works. pagtPAk

LuigiColantuono avatar Apr 03 '24 02:04 LuigiColantuono

Huh. Perhaps it's an issue with how I have LotusDocs/Hugo set up then? Since it wasn't working for me when I ran that example. :thinking:

ginsm avatar Apr 03 '24 05:04 ginsm