import { brand , brandLogoImg , toolName } from '../content/strings' ; export const escaped = ( markdown ) : string => { return markdown . replace ( /</g , '\\<' ) ; } ; export const snippet = ( text ) : string => { return `\`${ text }\`` ; } ; export const link = ( href , text ) : string => { return `[${ text }](${ href })` ; } ; export const image = ( altText , src ) : string => { return `![${ altText }](${ src })` ; } ; export const listItem = ( text ) : string => { return `* ${ text }` ; } ; export const heading = ( text , headingLevel ) : string => { return `${ '#' . repeat ( headingLevel ) } ${ text }` ; } ; export const bold = ( text ) : string => { return `**${ text }**` ; } ; export const productTitle = ( ) : string => { return `${ image ( `${ brand }` , brandLogoImg ) } ${ toolName }` ; } ; export const footerSeparator = ( ) : string => `---` ; export const sectionSeparator = ( ) : string => '\n' ;