Print directives are post-processing on the output of a
The table below lists basic print directives that are available by default. For print directives related to bidirectional text, see Bidi Support. For information on writing custom print directives, see Plugins.
Changes newlines (
Truncates a string to a maximum length
Note: Simple truncation does not guarantee consistent visual results. For example, in
common fonts, the character "x" is about half the width of a Chinese character, and "l" is
half that. It's better to use CSS size constraints and