Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

hexo-tag-rtl

Force RTL layout direction when used in a mixed RTL and LTR texts.

About

This is a Hexo tag plugin for changing the direction of your writing (layout)

Installation

npm install --save hexo-tag-rtl

Usage

{% rtl [css class]%}
  RTL text
{% endrtl %} 

css class defaults to div

Example

An English document, but wants to have and RTL direction

{% rtl div %}
{% blockquote  جلال الدين الرومي  %}
    أدينُ بدينِ الحبِّ أنى توجَّهت ركائِبهُ ، فالحبٌّ ديني و إيماني.
{% endblockquote %}
{% endrtl %}

and

{% rtl %}
مقتطفات من بعض الحكم
{% endrtl %}

“A small leak will sink a great ship.” - Benjamin Franklin

{% rtl %}
"لو أنك عشتَ في الماضي و تصرفت كأنك في الماضي ، سوف يكون صعباً على المُستقبلِ أن يراكَ." - Body of Lies
{% endrtl %}

which results in screenshot.png

Authors

blueMix

About

Hexo forcing right-to-left (RTL) direction

Topics

Resources

Releases

No releases published
You can’t perform that action at this time.