mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-01-23 06:55:43 -06:00
adding LTR/RTL shortcodes to the docs + implement Tailwind classes for the ltr/rtl shortcodes
This commit is contained in:
parent
06d9e18599
commit
aaa76e04d3
3 changed files with 26 additions and 2 deletions
|
@ -431,6 +431,30 @@ The `where` and `value` values are used in the following query `where .Site.Regu
|
||||||
|
|
||||||
<br/><br/><br/>
|
<br/><br/><br/>
|
||||||
|
|
||||||
|
## LTR/RTL
|
||||||
|
|
||||||
|
`ltr` and `rtl` allows you to mix your contents. Many RTL language users want to include parts of the content in LTR. Using this shortcode will let you do so, and by leveraging `%` as the outer-most dilemeter in the shortcode [Hugo shortcodes](https://gohugo.io/content-management/shortcodes/#shortcodes-with-markdown), any markdown inside will be rendered normally.
|
||||||
|
|
||||||
|
**Example:**
|
||||||
|
|
||||||
|
```md
|
||||||
|
- This is an markdown list.
|
||||||
|
- Its per default a LTR direction
|
||||||
|
{{% rtl %}}
|
||||||
|
- هذه القائمة باللغة العربية
|
||||||
|
- من اليمين الى اليسار
|
||||||
|
{{% /rtl %}}
|
||||||
|
```
|
||||||
|
|
||||||
|
- This is an markdown list.
|
||||||
|
- Its per default a LTR direction
|
||||||
|
{{% rtl %}}
|
||||||
|
- هذه القائمة باللغة العربية
|
||||||
|
- من اليمين الى اليسار
|
||||||
|
{{% /rtl %}}
|
||||||
|
|
||||||
|
<br/><br/><br/>
|
||||||
|
|
||||||
## Mermaid
|
## Mermaid
|
||||||
|
|
||||||
`mermaid` allows you to draw detailed diagrams and visualisations using text. It uses Mermaid under the hood and supports a wide variety of diagrams, charts and other output formats.
|
`mermaid` allows you to draw detailed diagrams and visualisations using text. It uses Mermaid under the hood and supports a wide variety of diagrams, charts and other output formats.
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
<div dir="ltr" align="left">
|
<div dir="ltr" class="text-left">
|
||||||
{{ .Inner }}
|
{{ .Inner }}
|
||||||
</div>
|
</div>
|
|
@ -1,3 +1,3 @@
|
||||||
<div dir="rtl" align="right">
|
<div dir="rtl" class="text-right">
|
||||||
{{ .Inner }}
|
{{ .Inner }}
|
||||||
</div>
|
</div>
|
Loading…
Reference in a new issue