link-text
code:script.js
export const linkText = (text) => {
return text
.split(/\n/)
.map((line) => (line === '' ? line :
[${line}]
))
.join('\n')
}