箇条書きリストのタグを追加するUserScript
というわけで、箇条書きリスト(ulとli)を追加するスクリプトです。
code:script.js
scrapbox.PopupMenu.addButton({
title: 'リスト変換',
onClick: function (text) {
text = text.split(/\n/).map(line => <li>${line}</li>).join('\n');
text = '<ul>\n' + text + '\n</ul>';
return text;
}
});
Sample
https://gyazo.com/239a877ffdf8e4d96851e401023631d3