mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 15:29:19 +08:00
docs: fix incomplete tab examples
This commit is contained in:
parent
df49cdd3ef
commit
67f94a9921
@ -60,6 +60,14 @@ printf("Hello World!");
|
|||||||
|
|
||||||
### Single Code Block with Collapsed Margins
|
### Single Code Block with Collapsed Margins
|
||||||
|
|
||||||
|
````go
|
||||||
|
{{%/* tab title="Code" */%}}
|
||||||
|
```python
|
||||||
|
printf("Hello World!");
|
||||||
|
```
|
||||||
|
{{%/* /tab */%}}
|
||||||
|
````
|
||||||
|
|
||||||
{{% tab title="Code" %}}
|
{{% tab title="Code" %}}
|
||||||
|
|
||||||
```python
|
```python
|
||||||
@ -70,9 +78,18 @@ printf("Hello World!");
|
|||||||
|
|
||||||
### Mixed Markdown Content
|
### Mixed Markdown Content
|
||||||
|
|
||||||
|
````go
|
||||||
|
{{%/* tab title="_**Mixed**_" */%}}
|
||||||
|
A tab can not only contain code but arbitrary text. In this case text **and** code will get a margin.
|
||||||
|
```python
|
||||||
|
printf("Hello World!");
|
||||||
|
```
|
||||||
|
{{%/* /tab */%}}
|
||||||
|
````
|
||||||
|
|
||||||
{{% tab title="_**Mixed**_" %}}
|
{{% tab title="_**Mixed**_" %}}
|
||||||
|
|
||||||
A tab can not only contain code but arbitrary text. In this case text and code will get a margin.
|
A tab can not only contain code but arbitrary text. In this case text **and** code will get a margin.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
printf("Hello World!");
|
printf("Hello World!");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user