It looks to me like the truncation needs to support finishing all the open markdown elements; both by adding trailing * for italics and bold formatting and by not counting non-rendered metadata like links towards the length limit. Example:
This happens because the markdown is trimmed before it is converted to HTML. I'm currently working on a solution that uses a dfs to trim the markdown after it is converted to HTML.
It looks to me like the truncation needs to support finishing all the open markdown elements; both by adding trailing * for italics and bold formatting and by not counting non-rendered metadata like links towards the length limit. Example: