import Nast from 'notajs-types/nast' import { renderBlock } from '../render-utils' function renderBookmark( node: Nast.WebBookmark ): string { let titleHTML = node.title ? `
${node.description}
` : '' let linkHTML = `${node.link}
` let content = `\ ${titleHTML} ${descHTML} ${linkHTML} ` return renderBlock(node, content) } export default renderBookmark