mirror of
https://github.com/welpo/tabi.git
synced 2026-04-30 03:27:19 +02:00
✨ feat: add force_text_direction shortcode
- Introduce new `force_text_direction` shortcode - Overrides global `force_codeblock_ltr` setting and document direction - Accepts "ltr" or "rtl" as direction parameter
This commit is contained in:
parent
9859b120db
commit
8d2c24d3dd
5 changed files with 108 additions and 3 deletions
|
|
@ -237,3 +237,19 @@ details summary {
|
|||
.mermaid .node .label {
|
||||
max-width: none !important;
|
||||
}
|
||||
|
||||
// For the `force_text_direction` shortcode.
|
||||
[data-force-text-direction="ltr"] {
|
||||
direction: ltr;
|
||||
unicode-bidi: bidi-override;
|
||||
}
|
||||
|
||||
[data-force-text-direction="rtl"] {
|
||||
direction: rtl;
|
||||
unicode-bidi: bidi-override;
|
||||
}
|
||||
|
||||
[data-force-text-direction="ltr"] *,
|
||||
[data-force-text-direction="rtl"] * {
|
||||
direction: inherit;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue