move `trim` so it applies to block and inline `markdownString`s