Copy Page as Markdown Link
Make a reference link for your notes
This Rule creates a Markdown reference from the current Chrome page, useful when collecting sources for documentation or a research note. It combines the document title and URL so you can paste a labeled link without writing the Markdown syntax yourself.
When: Press Option + M, or your replacement shortcut. Do: Run JavaScript in the active Chrome tab to format its title and URL, then place the script’s result on the clipboard. There is no If Condition. The script escapes brackets and backslashes in the title and wraps the URL in angle brackets.
Configure and try it
- Import through Open this Rule in Rulr and review the hotkey. Accessibility access is needed if you record a different shortcut.
- Allow Rulr to control Google Chrome through macOS Automation permission. Chrome must also permit JavaScript from Apple Events for the script Action to work.
- Open an ordinary webpage in Chrome, run the Rule, and paste into a Markdown editor or a plain text note.
- Check that both the label and destination describe the active page. Test a title containing punctuation and verify the link in your intended Markdown renderer.
For a research session that also opens your source pages, compare Chrome Research Workspace. Review the Scripting Actions before changing the JavaScript, and use the AI Builder review steps to inspect any proposed change to link formatting.
Requirements and limits
Run JavaScript requires Rulr Pro. Some browser pages do not allow ordinary page scripts, so use a standard webpage for initial testing. Review Chrome’s Apple Events JavaScript setting if Automation access alone does not resolve a script error.
The sample copies a link, without downloading the article or creating a full citation with author and publication date. It also replaces the prior clipboard text. For an unformatted address, see Copy Current Chrome URL.