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

gapmissgapmiss1k 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 weeks ago
Created
2 years ago
Updates
7 releases
Downloads
1k
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

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.

Easy Typing

Auto format when typing.

Slides Extended

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

Pandoc Plugin

Commands to export to Pandoc-supported formats like DOCX, ePub and PDF.

Timekeep

Time tracking.

Colored Text

Color the selected texts.

Yanki

Sync flashcards from a folder in your vault to Anki. Pure Markdown syntax. No fuss.