I use justified text in preview mode. Because it sometimes looks awkward the way the words are spaced, i would like to enable proper word hyphenation at line breaks.
Hyphenation does not work. The words dont even break at all.
i also tried to include word-break:break-all; but that just makes the words break at completely wrong locations (e.g. it broke “to” into “t \n o”).
Is there any way to make it work properly? Thank you in advance.
I tried the same and it didn’t work. As far as I understand the hyphens property requires the lang attribute to be set in the html file since the hyphenation rules differ for each language.
However, obsidian doesn’t use the lang attribute. As a consequence the hyphens property will not work.
It would be nice if Obsidian would support setting the lang attribute in the yaml frontmatter so that the language can be set for each note. But currently I see now way to make hyphenation work.