Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Copy as source

gapmissgapmiss2k downloads

Select and copy source HTML in reading view.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates7

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

HealthExcellent
ReviewPassed
About
Copy selected elements' HTML from reading view to the clipboard as formatted source code. Format the HTML with Prettier before copying for clean, readable output.
HTMLFormattingExport
Details
Current version
1.0.6
Last updated
4 months ago
Created
3 years ago
Updates
7 releases
Downloads
2k
Compatible with
Obsidian 0.15.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
gapmissgapmiss
github.com/gapmiss
GitHubgapmiss
  1. Community
  2. Plugins
  3. HTML
  4. Copy as source

Related plugins

Advanced PDF Export

Export notes as pixel-perfect PDFs with live preview, style presets, manual page breaks, tables, and full layout control.

Heading Level Indent

Indenting content under headers based on their level.

markdown export

Export Markdown to a package, including images.

Admonition

Admonition block-styled content.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Editing Toolbar

The Editing Toolbar is modified from cMenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.

Image Captions

Add captions to images with inline Markdown and link support. The caption format is compatible with the Commonmark spec and other Markdown applications.

Sort and Permute lines

Sort and Permute lines in whole file or selection.

Slides Extended

Create markdown-based reveal.js presentations. Fork of Advanced Slides.

PanGu

Add spaces between Chinese characters and English alphabet. A boon for typographically compulsive people.