lotusdocs
lotusdocs copied to clipboard
Shortcode tables don't show up within tabs
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
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.
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: