Action

AnkiCard from iBooks Highlight

Posted by @FlohGro, Last update about 2 years ago - Unlisted

retitle current Draft

Created by FlohGro (Twitter)

request from @CMx3 in Drafts Forum here

This action tries to extract the content of a highlight copied from iBooks into a Draft and removes the copyright notes.
Do only use this action for your personal learning stuff - Iā€˜m not responsible if you miss citing the original source i academic paperwork.

If you find this useful you can Buy Me A Coffee

Steps

  • script

    const content = draft.content
    const regex = /\ā€ž([\s\S]*?)\ā€œ/m;
    
    let match = regex.exec(content)
    
    if(match){
    draft.content = match[1]
    draft.update()
    }

Options

  • After Success Default
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.