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
5
templates/shortcodes/force_text_direction.html
Normal file
5
templates/shortcodes/force_text_direction.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{%- set direction = direction | default(value="ltr") -%}
|
||||
|
||||
<div data-force-text-direction="{{ direction }}">
|
||||
{{ body | markdown | safe }}
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue