如名,复制支持supermemo18的外链,然后通过SM18的粘贴为html内容,实现超连接
//author:sheen
//version:1.2
//time:2021-11-10
NHook.add({
after_nodemenu_run() {
plugin.menu.addItems("node",{
re_to_sm: {
label: "复制SM外链",
icon: "home",
action() {
const reky = this.nv.ky;
const userid = USER_ID;
sm_url = `<a href='roamedit://open/nk${userid}/${reky}'>查看答案</a>`
copyToClipboard(sm_url)
}
}
})
}
})