Skip to content

Support RTL Direction - #94

Open
srezasm wants to merge 6 commits into
piharpi:masterfrom
srezasm:support-rtl-direction
Open

Support RTL Direction#94
srezasm wants to merge 6 commits into
piharpi:masterfrom
srezasm:support-rtl-direction

Conversation

@srezasm

@srezasm srezasm commented Jul 6, 2024

Copy link
Copy Markdown

Added automatic RTL direction support for RTL texts within posts:

  • Added script for automatic text direction detection
  • Fixed list styling in _sass/klise/_base.scss to support RTL
  • Fixed header styling _sass/klise/_post.scss to support RTL
  • Added Farsi/Arabic font support to _sass/klise/_fonts.scss

srezasm added 2 commits July 6, 2024 14:40
Added dir="auto" attribute to all text placeholder tags
@vercel

vercel Bot commented Jul 6, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
klise ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 6, 2024 0:01am

@srezasm

srezasm commented Jul 6, 2024

Copy link
Copy Markdown
Author

Use this post template to test the added RTL support:

---
title: rtl support test
date: 2024-07-06
tags: [rtl]
description: این پستی به زبان فارسی جهت بررسی پشتیبانی این قالب از زبان فارسی است
---

# Headers

## Second Level Header

### Third Level Header

---

## Text Formatting

**Bold text** and *italic text*.

---

## Lists

### Unordered List

- Item 1
- Item 2
  - Sub-item 2.1
  - Sub-item 2.2

### Ordered List

1. First item
2. Second item
   1. Sub-item 2.1
   2. Sub-item 2.2

---

## Images

![Sample Image](/path/to/your/image.png)

---

## Links

[OpenAI](https://www.openai.com)

---

## Tables

| Column 1  | Column 2  | Column 3  |
|-----------|-----------|-----------|
| Row 1, Col 1 | Row 1, Col 2 | Row 1, Col 3 |
| Row 2, Col 1 | Row 2, Col 2 | Row 2, Col 3 |

---

## Farsi Text (RTL Support Test)

### نمونه متن فارسی

این یک متن نمونه برای آزمایش پشتیبانی از راست به چپ در مارک‌داون است.

### لیست نمونه

- آیتم ۱
- آیتم ۲
  - زیر-آیتم ۲.۱
  - زیر-آیتم ۲.۲

1. آیتم ۱
2. آیتم ۲
   1. آیتم ۳
   2. آیتم ۴

### جدول نمونه

| ستون ۱     | ستون ۲     | ستون ۳     |
|-------------|-------------|-------------|
| ردیف ۱، ستون ۱ | ردیف ۱، ستون ۲ | ردیف ۱، ستون ۳ |
| ردیف ۲، ستون ۱ | ردیف ۲، ستون ۲ | ردیف ۲، ستون ۳ |

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant