Grow your CSS skills. Land your dream job.

RTL in Markdown!-WordPress

  • # February 20, 2013 at 7:57 am

    markdown is great but it doesnt support “rtl”! you can’t write languages like Persian or Arabic or Hebrew with just having Markdown and basic html ability!! for solving this i want to allow my users to write unfiltered html for having a paragraph with **dir=”rtl”**! i know its not cool to let users having unfiltered html but i dont have another choice! my question is: is there any other way to have **direction=right to left** without letting everyone else *unfiltered html* ability?! or is unfiltered html ability a bad thing to do in WordPress?!

    # February 20, 2013 at 8:20 am

    This thread has some good info about a JavaScript port of Markdown that added right-to-left support: http://stackoverflow.com/questions/2258028/rtl-in-markdown/.

    # February 20, 2013 at 8:29 am

    thanks @tomrogers123 but it’s just JS and not actual HTML that stores in database!

    # February 20, 2013 at 8:46 am

    Still, if this is the only option, you could post it via an AJAX call, couldn’t you?

    # February 20, 2013 at 9:03 am

    @tomrogers123 you are right man! :) i think about it and i understand that i can simply use rtl (and css) in comment sections to show user comments in right to left format! as easy as a pie! :)

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".