function splitRenderedContent (mdPageContent) {
  const userScripts = new Set()

  const mdContent = mdPageContent.replace(scriptRE, (_, p1) => {
    userScripts.add(p1)
    return ''
  })

  return { mdContent, userScripts }
}
Extract the user scripts from the rendered content