Typeset
Typeset copied to clipboard
An HTML pre-processor for web typography
I was planning to add a line in punctuation.js to replace a hyphen between two numbers _without a space_ with an en-dash (`14-31 days ` → `"14–31 days"`). It looks...
[Void elements](https://w3c.github.io/html-reference/syntax.html#syntax-elements), or singletons, like `img`, `hr`, `br` and others contain a closing forward slash in (X)HTML validation, e.g. ``. When Typeset processes content with HTML, it is removing those...
This is a great library! Thanks so much for maintaining it. I'd love to see an option for controlling [widows](https://en.wikipedia.org/wiki/Widows_and_orphans). For instance [typogr.js uses the "widont" pattern](https://github.com/ekalinin/typogr.js#widont) of replacing the...
I would like to avoid the last 2 words in a paragraph from appearing on the last line by themselves. For now I've been hacking around this by manually wrapping...
Is there a way to specify the language in the case of processing HTML fragments?
Screen readers stumble on something like `at`, reading it as 'A T' instead of 'at'. This makes the optical margin alignment and hanging punctuation output unusable for people using screen...
I have HTML with entities like `<` and `>` in it and when I pass this HTML through typeset, they are replaced with the actual `` characters and so my...
As part of my research on #52 I also studied whether the push/pull technique could be applied to blocks with `text-align:right` (that is, the punctuation would hang over the right...
Add option to wrap a sequence of characters in a node which could be targeted? This would not be default behaviour and is naturally dependent on the typeface e.g. ```...
A cool feature would be to automatically encapsulate instances of manually configured—and perhaps predefined—abbreviations with ``.