Copy as source

approved

by gapmiss

Select and copy source HTML in reading view.

5 stars1,987 downloadsUpdated 2mo agoMIT

copy-as-source

Obsidian.md plugin to select and copy source HTML in reading view. The source HTML code is formatted via prettier and copied to the clipboard.

Installation

Install from community.obsidian.md

From Obsidian's settings or preferences:

  1. Community Plugins > Browse
  2. Search for "Copy as Source"

Manually:

  1. download the latest release archive
  2. uncompress the downloaded archive
  3. move the copy-as-source folder to /path/to/vault/.obsidian/plugins/
  4. Settings > Community plugins > reload Installed plugins
  5. enable plugin

or:

  1. download main.js, manifest.json & styles.css from the latest release
  2. create a new folder /path/to/vault/.obsidian/plugins/copy-as-source
  3. move all 3 files to /path/to/vault/.obsidian/plugins/copy-as-source
  4. Settings > Community plugins > reload Installed plugins
  5. enable plugin

How to use

  1. In settings, assign a hotkey for the Copy as source: Copy selection source command.
  2. In reading view, select the elements you want to copy the source of and execute the assigned hotkey.

Demo

Demo screencast GIF

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.