delete-line
This enables you to delete a line without updating the following line.
code:script.js
import { insertText, press } from '/api/code/takker/scrapbox-userscript-std/mod.ts'
export const deleteLine = () => {
insertText('.') // dummy
// select the current line
press('End')
press('Home', { shiftKey: true })
press('Home', { shiftKey: true })
press('Delete')
press('Delete')
}