function makeSuggestion(text, keyword, includeContent, nonUrlDescription = null) {
	let keywordComponent = ''
	if (text == keyword) {
		// Show the full keyword as a match.
		keywordComponent = '<match>' + text + '</match>'
	} else if (keyword.includes(text)) {
		// Dim the full keyword, and highlight the text part that matches.
		keywordComponent = "<dim>" + keyword + "</dim>"
		keywordComponent = keywordComponent.replace(text, "</dim><match>" + text + "</match><dim>")
	} else {
		// Dim the full keyword.
		keywordComponent = "<dim>" + keyword + "</dim>"
	}

	// Build the suggestion description.
	let description = "jump"
	description += " <dim>|</dim> "
	description += keywordComponent 
	description += " <dim>|</dim> "
	if (nonUrlDescription) {
		description += nonUrlDescription
	} else {
		description += "<url>" + links[keyword] + "</url>"
	}

	return (includeContent)
		? { content: keyword, description: description }
		: { description: description }
}
// - Parameter includeContent: If false, result will not have a content field. Set to false when setting the default suggestion.
Parameter includeContent: If false, result will not have a content field. Set to false when setting the default suggestion.
Parameter includeContent : If false result will not have a content field . Set to false when setting the default suggestion .
function makeSuggestion(text, keyword, includeContent, nonUrlDescription = null) {
	let keywordComponent = ''
	if (text == keyword) {
		keywordComponent = '<match>' + text + '</match>'
	} else if (keyword.includes(text)) {
		keywordComponent = "<dim>" + keyword + "</dim>"
		keywordComponent = keywordComponent.replace(text, "</dim><match>" + text + "</match><dim>")
	} else {
		keywordComponent = "<dim>" + keyword + "</dim>"
	}
	let description = "jump"
	description += " <dim>|</dim> "
	description += keywordComponent 
	description += " <dim>|</dim> "
	if (nonUrlDescription) {
		description += nonUrlDescription
	} else {
		description += "<url>" + links[keyword] + "</url>"
	}
	return (includeContent)
		? { content: keyword, description: description }
		: { description: description }
}
function makeSuggestion ( text , keyword , includeContent , nonUrlDescription = null ) { let keywordComponent = '' if ( text == keyword ) { keywordComponent = '<match>' + text + '</match>' } else if ( keyword . includes ( text ) ) { keywordComponent = "<dim>" + keyword + "</dim>" keywordComponent = keywordComponent . replace ( text , "</dim><match>" + text + "</match><dim>" ) } else { keywordComponent = "<dim>" + keyword + "</dim>" } let description = "jump" description += " <dim>|</dim> " description += keywordComponent description += " <dim>|</dim> " if ( nonUrlDescription ) { description += nonUrlDescription } else { description += "<url>" + links [ keyword ] + "</url>" } return ( includeContent ) ? { content : keyword , description : description } : { description : description } }
Parameter includeContent: If false, result will not have a content field.
Parameter includeContent : If false result will not have a content field .
// Show the full keyword as a match. // Dim the full keyword, and highlight the text part that matches. // Dim the full keyword. // Build the suggestion description.