leschuster4k downloadsCopy Markdown and transform it into HTML, Anki, or any custom format. Create custom profiles with versatile templates tailored to your workflow.
An Obsidian plugin to copy Markdown and transform it into HTML, Anki, or any custom format. Create custom profiles with versatile templates tailored to your workflow.
You can create templates for almost all Markdown elements supported by Obsidian, organized under a "Profile". Templates can include variables such as the heading level, element content, current filename, and date.
When running the plugin's commands, you need to select a profile. Default profiles are available and can be customized to your preferences.


https://github.com/user-attachments/assets/af4e9f83-d324-42f4-95fc-bda558bcee2c
You can download this plugin in the Obsidian Community plugins tab.
Here is how to do it manually:
main.js, manifest.json and styles.css.<vault>/.obsidian/plugins/advanced-copy and place the downloaded files there.Advanced Copy in the community plugins list.This plugin adds the commands Advanced Copy: Copy Page and Advanced Copy: Copy Selection. You need to choose which profile to use. After that, the plugin will copy the Markdown text, perform transformations according to the profile and place the result in the clipboard.
To speed things up, you can add separate commands for each profile. You may also add hotkeys for these commands in Obsidians Hotkeys-Tab. Beware that you might need to restart Obsidian for the changes to take effect.
In the plugins setting tab, you can configure pre-existing profiles, delete or duplicate them. You can also enable/disable commands for specifc profiles (you need to restart Obsidian after that).
Global variables are listed at the beginning of the Templates section in the Edit dialog. Local variables are listed in the description of the template.
Please create a dedicated Dev vault in Obsidian. Do not use your main vault!
<vault>/.obsidian/plugins/git clone https://github.com/leschuster/obsidian-advanced-copy.gitadvanced-copy and open it in your editor.npm inpm run devnpm run test or npm run test:watchIf you'd like to contribute, please fork the repository and open a pull request to the main branch.
Note: After you've made code changes, you need to either restart Obsidian or disable & enable the plugin. Alternatively, you can use the Obsidian Hot-Reload Plugin.
manifest.jsonversion-bump.mjspackage.jsonnpm i to update the version in package-lock.json.git tag -s 0.x.y -m "Release 0.x.y"
The core functionality of this project, converting Markdown to a custom format, relies heavily on the incredible work done by the unified and remark projects. I am deeply grateful for their contributions.