エディタで選択中の文字列を置換する方法。`editor.getSelection`で選択中の文字列を取得し、`editor.replaceSelection`で置換する。 ```ts const editor = app.workspace.activeLeaf.view.editor const c = editor.getSelection().replaceAll("[[", "").replaceAll("]]", "") editor.replaceSelection(c) ```