getLabel = (tiddler, aliasField) => {
  const tObj = wikiUtils.getTiddler(tiddler);
  return (
    tObj &&
    tObj.fields[aliasField]
      ? tObj.fields[aliasField]
      : tObj.fields.title
  ).replace('\\n', '\n');
}
TODO: this method does not seem to be used!
@param {Tiddler} tiddler
@param {string} aliasField - A tiddler field that contains an
    alternative title (e.g. "caption").
@return {string|undefined} If the `aliasField` exists and is not
    empty, the value of the `aliasField` otherwise the tiddler's
    title or undefined if the tiddler doesn't exist.