Overview
I set up a Web Clipper template to capture the VS Code changelogs. For reference, the latest changelog document is here: Visual Studio Code 1.123
Here’s the JSON of the template:
{
"schemaVersion": "0.1.0",
"name": "VSCode Changelog",
"behavior": "create",
"noteContentFormat": "{{selectorHtml:h1|markdown}}\n\n{{selectorHtml:.docs-main-content|markdown}}",
"properties": [],
"triggers": [
"https://code.visualstudio.com/updates"
],
"noteNameFormat": "{{title}}",
"path": "Dev/VS Code Changelog"
}
Unfortunately, every header is an internal link (anchor link). For a visual example of what I mean, see this screenshot of the clipped page in Obsidian:
Actual links from the clipped page:
### [Agents window (Preview)](#_agents-window-preview)
The [Agents window](https://aka.ms/VSCode/Agents/docs) is a dedicated companion window optimized for exploring, iterating on, and reviewing agent sessions across projects and machines. This release, we focused on letting you work with multiple sessions side by side.
#### [Multiple open sessions](#_multiple-open-sessions)
You can now have more than one session open at the same time in the Agents window. In addition to the active session, open another session next to it by:
What I’m trying to do
I want to strip all internal links like this for headers across the entire captured content, but I can’t figure out the right combination of filters and logic. I am really hoping there is a way to do this and that someone here knows the solution.
Things I have tried
I haven’t tried much, because I don’t know where to begin. I think some kind of logic is required. My note content is simply:
{{selectorHtml:h1|markdown}}
{{selectorHtml:.docs-main-content|markdown}}
The page clips fine, but again all the headers are internal links. If someone knows a way to automatically strip all internal links across a clipped page, I would be overjoyed.
Thanks so much for any help.
