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:
welpo 2024-10-18 18:53:00 +02:00
parent 9859b120db
commit 8d2c24d3dd
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
5 changed files with 108 additions and 3 deletions

View file

@ -0,0 +1,5 @@
{%- set direction = direction | default(value="ltr") -%}
<div data-force-text-direction="{{ direction }}">
{{ body | markdown | safe }}
</div>