function formatContentURL(content) {
  if (content.name) {
    return content.name;
  }
  // All Blackboard file URLs start with the literal string `blackboard:`
  if (content.url.includes('blackboard:')) {
    return 'PDF file in Blackboard';
  }
  return truncateURL(content.url, 65 /* maxLength */);
}
/**
 * For URL content, show the most meaningful explanation of the content we can
 * to the user. In cases where we have a filename (name), show that. For
 * Blackboard files, show a static string instead of the meaningless URL. Fall
 * back to showing a (truncated) URL.
 *
 * @param {URLContent} content
 * @returns {string}
 */
For URL content, show the most meaningful explanation of the content we can
to the user. In cases where we have a filename (name), show that. For
Blackboard files, show a static string instead of the meaningless URL. Fall
back to showing a (truncated) URL.

@param {URLContent} content
@returns {string}
For URL content show the most meaningful explanation of the content we can to the user . In cases where we have a filename ( name ) show that . For Blackboard files show a static string instead of the meaningless URL . Fall back to showing a ( truncated ) URL . @param { URLContent } content @returns { string }
function formatContentURL(content) {
  if (content.name) {
    return content.name;
  }
  if (content.url.includes('blackboard:')) {
    return 'PDF file in Blackboard';
  }
  return truncateURL(content.url, 65 );
}
function formatContentURL ( content ) { if ( content . name ) { return content . name ; } if ( content . url . includes ( 'blackboard:' ) ) { return 'PDF file in Blackboard' ; } return truncateURL ( content . url , 65 ) ; }
For URL content, show the most meaningful explanation of the content we can
 to the user.
For URL content show the most meaningful explanation of the content we can to the user .
// All Blackboard file URLs start with the literal string `blackboard:` /* maxLength */