@michaelhauser, this is great!
I took it one step further by installing clipdown from https://github.com/jhuckaby/clipdown. This tool converts clipboard test to markdown. My Keyboard Maestro macro extends your work by saving to the clipboard either a) the title and location of a web page (if no text is selected), or the selected text formatted as markdown and the title/location fo the web page.
In addition to your work, my macro builds on a technique described in the KM forum (using the ClipboardSeed() function) for determining whether the clipboard has changed so as to determine whether any text is selected when the macro is invoked.
– Robert