BiDi support
info:
- slidev version: v52.0.0
- node version: 20.18.3
BiDi text is not supported, even if you add dir: auto to the frontmatter.
For example the text
یک two سه
is counting from one to three, but two is in english. this get's messed up because of forced LTR text
Describe the solution you'd like
Support BiDi writing by default.
One way is to add dir="auto" to every text element. This is the way I usually do it.
Describe alternatives you've considered
- set
dir: autoin frontmatter. doesn't work - create plugin or theme that supports BiDi, but its would be much much better for slidev to support BiDi out of the box.
Today, It seems to be working out of nowhere!
adding dir: auto to frontmatter of the slide fixes the BiDi issue.
BUT, here's the issue. adding dir: auto to the headmatter doesn't apply to all slides as expected. you have to add it to the frontmatter of every slide.
How about
---
defaults:
dir: auto
---
But that sounds like something we should fix indeed.
Yes, the defaults way seems to be working.
@antfu