Markdown css styles not shown when RTL is enable

Yes, I can reproduce that issue with lists. The markdown is being parsed correctly, but the padding on the <ul> element is being added based on the user’s locale, not on the language of the text. This can be fixed. A temporary workaround is to add this CSS to the site’s theme.

ul[dir="ltr"] {
    padding-right: 0;
    padding-left: 40px;
}

ul[dir="rtl"] {
    padding-left: 0;
    padding-right: 40px;
}

Have you noticed any other issues with markdown?

3 Likes