Set Text Direction in Footnotes

I write sources from both English and Hebrew sources and I reference them in my footnotes. The problem is that the footnotes that begin with an English word begin on the left side of the page and the footnotes that begin with a Hebrew word begin on the right side of the page, which looks a bit stupid. I want all of my footnotes to begin from the left side (as I mostly write in English). This is what it looks like now:

Another problem is that when I write a line in that begins in Hebrew but also has English mixed in, the English is on the left side and the Hebrew is on the right, like this

On this line, the Hebrew is the first word. The problem is that I want to be able to read the line from left to right (as most of my stuff is in English) and so I want the Hebrew to appear on the left of the line (as the first word, which it is).

I used the following css to fix the issue in editing mode:

.HyperMD-footnote, .cm-hmd-footnote {direction: ltr;}

However, I don’t know how to fix it in reading mode. I tried doing this:

p {direction: ltr;}
li {direction: ltr;}

but it did not work and I don’t know why.

I don’t have a solution, but I’m commenting to say that I have the exact same issue and am looking for a solution. I think that this was introduced with the 1.6.2 update. My problem extends also in the main text, not just footnotes. I posted recently but haven’t received any replies: Option to revert to old RTL formatting? After 1.6.2 update - #2 by ftmartinn

I asked ChatGPT and it told me to create a css file with the following:

.markdown-preview-view .footnotes,
.markdown-preview-view .footnotes ol,
.markdown-preview-view .footnotes li,
.markdown-preview-view .footnotes li p {
    text-align: left !important;
    direction: ltr !important;
    unicode-bidi: embed !important;
}


.markdown-preview-view .footnotes ol,
.markdown-preview-view .footnotes li {
    text-align: left !important;
    direction: ltr !important;
}

I tried it and it worked.

I also asked on StackOverflow and I received an answer there as well.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.