文字装飾記法をプレーンテキストにする
もともとプレーンテキストだな?rmaruon.icon
code:js
const unlink = (text) => {
return text.replaceAll(
'$<string>'
)
}
ちゃんとした検証は面倒なので、とりあえず適当に
code:js
var text = 'apple banana orange my name is hoge hoge.'
console.assert(unlink(text) == 'apple banana orange my name is hoge hoge.')
refs