Get index of character after which variable 'word' must be broken given variable 'length' (accounts for wide characters).
Trims text to a certain number of characters. You can define either to break-word to maintain the number of characters limit or characters limit may decrease to avoid breaking words.
<span style="font-size: x-large;
break-words dark:prose-invert light">
<div class="markdown prose w-full
<span style="font-size: x-large;
break-words dark:prose-invert light">
<div class="markdown prose w-full