Kindleの引用
code: script.js
scrapbox.PopupMenu.addButton({
title: 'kindle引用',
onClick: text => {
text = zenhan(text);
text = text.split(/\n/).map(line => line.normalize()
.join('\n')
return text;
}
})
function zenhan(text) {
return String.fromCharCode(s.charCodeAt(0) - 65248);
});
//16進数の場合
return String.fromCharCode(s.charCodeAt(0) - 0xFEE0);
});
text = text.replace(/ /g,' ');
return text;
}