Field method for bi-directional text

If you set the dir="auto" attribute on block-level elements, browsers will detect the proper text direction based on what unicode characters are inside the element.

This is useful when writing bi-directional content, for example a blog post with a mix of latin and arabic :wink:

To avoid writing <p dir="auto"> all over my content files, I decided to make a simple field method to insert the attribute after calling kirbytext() or markdown() on an element.

Download here: https://github.com/samnabi/field-bidi