fixed markdown display on truncated text