Multiple URLs to DEVONthink

I have a bunch of notes that have a list of URLs in Markdown. I would like some assistance in creating an automation/shortcut that does the following:

  • selects each URL from the Draft
  • Open the URL in Safari
  • Save the webpage in MD format to DEVONthink
  • Close Safari
  • Delete the note

Attached is a sample of what needs to be parsed -