But hyphenation only works, if a lang attribute (for example lang="de") is present on the HTML element for which automatic hyphenation should be applied. Since most documents only use one language it's common to set the lang attribute on the <html> element. The lang attribute of an HTML document is, for example, also used by screen readers, which can select an appropriate voice for the document language.
Adding this to MultiMarkdown could be done with metadata, for example:
lang: de
Unterstützung für automatische Silbentrennung in MultiMarkdown ...
should produce the following result:
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8"/>
</head>
<body>
<p>Unterstützung für automatische Silbentrennung in MultiMarkdown …</p>
</body>
</html>
The proposed HTML output shows that the lang metadata is not written as a meta element to the headelement, so the behaviour is the same like for Quotes Language.
Many current browsers support automatic hyphenation via CSS, for example:
But hyphenation only works, if a
lang
attribute (for examplelang="de"
) is present on the HTML element for which automatic hyphenation should be applied. Since most documents only use one language it's common to set thelang
attribute on the<html>
element. Thelang
attribute of an HTML document is, for example, also used by screen readers, which can select an appropriate voice for the document language.Adding this to MultiMarkdown could be done with metadata, for example:
should produce the following result:
The proposed HTML output shows that the
lang
metadata is not written as ameta
element to thehead
element, so the behaviour is the same like forQuotes Language
.Thanks, Michael