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
  • Join the community
  • 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
  • Updates4

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.

How to use

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

Demo

Demo screencast GIF

77%
HealthExcellent
ReviewSatisfactory
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.3
Last updated
Last year
Created
2 years ago
Updates
4 releases
Downloads
1k
Compatible with
Obsidian 0.15.0+
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.

Copy as HTML

Convert the selected Markdown to HTML and copy it to the clipboard.

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.

Admonition

Admonition block-styled content.

Pandoc

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

Markmind

Mind map, outline and PDF annotation tool. (Closed source)

Colored Text

Color the selected texts.

Yanki

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

List Callouts

Create simple callouts in lists.