Copy document as HTML

by mvdkwast
5
4
3
2
1
Score: 55/100

Description

Category: Note Enhancements

The Copy document as HTML plugin allows you to effortlessly copy your Obsidian documents into HTML format, making it easy to paste them into other applications like Gmail. With this plugin, you can choose whether to copy the entire document or just the selected text, and even customize the styling of the output. The plugin also supports various media types, including images, diagrams, and plantuml, ensuring that your copied content looks great in different formats. Whether you need to share documents with others or use them for personal notes, this plugin provides a convenient way to convert your Obsidian content into HTML format.

Reviews

No reviews yet.

Stats

81
stars
38,006
downloads
31
forks
1,280
days
106
days
688
days
9
total PRs
2
open PRs
4
closed PRs
3
merged PRs
54
total issues
15
open issues
39
closed issues
14
commits

Latest Version

2 years ago

Changelog

New features :

  • Fix : compatibility with the sheets extended plugin (empty tables when native table processing is enabled). Closes #65

Thanks @Bakr2030 for reporting.

📣 Also, mobile support for Android is unfortunately not going to work. iOS support might work, but I need testers with some development knowledge to validate this. See #61 !

README file from

Github

Copy Document as HTML

Plugin for Obsidian that copies the current document to the clipboard, so it can be pasted into HTML aware application like gmail.

This plugin exposes the Copy document as HTML command, which can be bound to keyboard shortcuts (see below). Content can also be copied from the file explorer view.

image

Features

Commands

copy-as-html-actions

The commands can be bound to keyboard shortcuts from the hotkeys menu, or run using the commands menu (Ctrl+P)

Copy selection or document to clipboard : If text is selected, it will copied as HTML into the clipboard. If no text is selected, the entire document is copied. This should probably be your default keyboard shortcut. (suggestion: Ctrl+Shift+C)

Copy entire document to clipboard : Copy the entire document

Copy current selection to clipboard : Copy the selected text only

Media support

Currently working with :

  • ✅ images
  • ✅ plantuml
  • ✅ diagrams
  • ✅ obsidian-tasks
  • ✅ obsidian-dataview - for large dataview blocks the content may not be complete
  • ✅ Excalidraw - rendering as bitmap solves pasting in gmail
  • ✅ Mermaid

image

Styling

By default, simple styling is applied to the document. The stylesheet can be customized through the plugin settings, eg. to customize how tables or quotes look. Feel free to improve the current style and show it the world !

image

Advanced

  • You may choose whether you want to embed external links (http, https) or not. If you don't (default), you will need internet access to view the document, and the linked image may be taken offline. If you do your documents will be larger.
  • It is possible to customize or replace the stylesheet in the settings dialog.
  • The default is to convert SVG to bitmap for better compatibility at the cost of potential quality loss. If you know that you are pasting into an application with good .svg support, you can disable the Convert SVG to bitmap setting.
  • It is possible to render code and callouts to HTML tables. This makes them ugly except in Google Docs where they make the document slightly prettier.
  • If you have titles in your markdown files, use the filename as title
  • If you don't need a full HTML document but only a HTML fragment, for instance to paste into an existing document enable the "Copy HTML fragment only" option.
  • You may also retrieve the HTML content by pasting into a non-HTML editor, such as notepad.
  • Provide your own HTML template

Implementation

The plugin converts image references to data urls, so no references to the vault are included in the HTML.

Known issues

  • No mobile support
  • Support for removing special dataview fields (double-colon attributes, ...) is experimental, and bracket notation is not supported. They are also not removed from transcluded files.
  • data-uris can use a lot of memory for big/many pictures

Also see the issues section on github, and feel free to ask anything here.

Install

Look for Copy document as HTML in the community plugin section in the Obsidian settings.

Don't be afraid to report or ask if anything seems wrong !

Development

Please see the Obsidian sample plugin.

Credits

  • Oliver Balfour for his obsidian-pandoc plugin, which helped me solve some rendering issues.
  • @TfTHacker for his BRAT plugin which makes beta-testing a breeze.
  • PJ Eby for his Hot-reload plugins which makes plugin development fast and fun.
  • @jkunczik for enabling transclusions to work with heading references
  • @Ivan1248 for making the generated HTML more standard-compliant and @fetwar for his constructive comments on the subject
  • @vgyenge6 for his suggestions
  • @HMLeeSoundcat for more customization ideas and providing sample code
  • @Luiz-nyan for suggesting the inclusion of Obsidian links

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Advanced Copy
2 years ago by leschuster
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.
Alt-Click to Copy
2 years ago by Veer Sheth
Arweave Uploader
2 years ago by makesimple
Auto Close Tags
10 months ago by k0src
Obsidian MD plugin to auto-close HTML tags.
Avatar
3 years ago by froehlichA
An obsidian plugin for displaying an avatar image in front of your notes.
Awesome Image
3 years ago by AwesomeDog
One-stop solution for image management.
BackItUp
2 years ago by Hammad Javed
🟣 Quickly make a copy or snapshot of a note in Obsidian.
Banners
5 years ago by Danny Hernandez
An Obsidian plugin that adds banners to your notes
Callout Copy Buttons
a year ago by Aly Thobani
An Obsidian plugin that adds copy buttons to callout blocks in your notes.
Chevereto Image Uploader for Obsidian
4 years ago by kkzzhizhou
obsidian plugins: chevereto image uploader
Clear Unused Images
5 years ago by Ozan Tellioglu
Obsidian plugin to clear the images that are not used in note files anymore
Clipboard Manager
9 months ago by Ayush Raj
The clipboard obsidian plugin
Cliplet
7 months ago by namikaze-40p
An Obsidian plugin that serves as a clipboard and snippet manager — your own, separate from the OS clipboard.
Cloudinary
3 years ago by Uday Samsani, Jordan Handy
Cloudinary plugin for content uploading and transformation.
Command Line
a year ago by Steven Stallion
Copy command lines from your notes to the clipboard.
Confluence Converter
a year ago by Addo Zhang
An Obsidian Plugin for Confluence
Convert Base64 to PNG
a year ago by Nykko Lin
Converts base64-encoded images to local PNG files for Obsidian.
Copy as HTML
4 years ago by Bailey Jennings
A simple plugin that copies the selected text to your clipboard as HTML
Copy as source
2 years ago by @gapmiss
Select and copy source HTML in reading view in Obsidian.md
Copy Image
2 years ago by Felipe D.S. Lima
Easily copy image to clipboard by right clicking image.
Copy Inline Code
3 years ago by Ondrej Zavodny
Copy Search URL
4 years ago by Carlo Zottmann
A plugin for Obsidian (https://obsidian.md) that adds a menu entry to its search view for copying the Obsidian search URL.
Copy Section
2 years ago by skztr
Obsidian.md plugin adding a Copy button to the top of Headed sections
Custom Classes
3 years ago by Lila Rest
A minimal Obsidian plugin that allows you to add your own HTML classes to chosen Markdown elements directly from your notes.
Display Relative Path Img
2 years ago by Dyc
Display the relative path image referenced by <img> in Obsidian without altering the original document
Emo
3 years ago by yaleiyale
Use image/file hosting in Obsidian by clipboard or draging file. Obsidian 图床聚合 & Github上传器
Enhance Copy Note
5 years ago by kzhovn
Plugin which enhances the copy command for Obsidian.
Enhanced Copy
2 years ago by Mara-Li
A obsidian plugin that allows to copy in markdown in reading view or canvas read-only view, creating profile and transform the text during copy.
Enhanced Image
2 years ago by situ2001
Enhance the experience of image in Obsidian, seamlessly.
Export to HTML
a year ago by kalvn
Export a note as HTML in the clipboard or in a file.
Extract Highlights
6 years ago by Alexis Rondeau
Manage your highlights in Obsidian by easily creating, removing and exporting them.
Fast Image Auto Uploader
2 years ago by Longtao Wu
upload images from your clipboard by gopic
Featured Image
2 years ago by Johan Sanneblad
Obsidian plugin to automatically set a featured image property in your notes based on the first image, YouTube link, or Auto Card Link image found in your document. This allows you to create rich note galleries using Folder Notes and Dataview.
Find Orphaned Images
2 years ago by Josmar Cristello
Find Orphaned Images is an Obsidian plugin designed to help you keep your vault clean and organized by identifying and managing images that are not linked anywhere in your notes.
Fix Line Endings on Copy
7 months ago by KiwiJanus
Ghost Text
8 months ago by lawrencefeng17
Hanko
a year ago by Telehakke
Obsidian plugin.
Html Server
3 years ago by Pr0dt0s
Obsidian plugin to serve a vault as an html site.
ii
2 years ago by Wilson
The main feature of this plugin is to quickly insert common Markdown code and HTML code, including Sup, Sub, Audio, Video, Iframe, Left-Center-Right Alignment, Variables, Footnotes, Callout, Anchor Points, HTML Comments and so on.
Image auto upload
5 years ago by renmu123
auto upload image with picgo
Image Captions
3 years ago by Alan Grainger
Add captions to images with inline Markdown and link support. The caption format is compatible with the CommonMark spec and other Markdown applications.
Image Collector
2 years ago by tdaykin
Image Context Menus
5 years ago by NomarCub
Image Context Menus - Obsidian.md image context menus: copy, open in default app, show in system explorer, reveal in navigation context menu. Also Open PDF externally context menu.
Image Converter
3 years ago by xRyul
⚡️ Convert, compress, resize, annotate, markup, draw, crop, rotate, flip, align images directly in Obsidian. Drag-resize, rename with variables, batch process. WEBP, JPG, PNG, HEIC, TIF.
Image Embedder
a year ago by Natalie Sumbo
Image Gallery
4 years ago by Luca Orio
A zero setup masonry image gallery for Obsidian
Image Helper
2 years ago by Chongmyung Park
Context menu to convert a image to another format in reading view in Obsidian.md
Image in Editor
5 years ago by Ozan Tellioglu
This Obsidian plugin to view Images, Transclusions, iFrames and PDF Files within the Editor without a necessity to switch to Preview.
Image Inline
2 years ago by Zackary W
convert images into base64 encoded strings and embed them directly within your notes
Image Layouts
3 years ago by Luke Chadwick
Image Magician
2 years ago by luxmargos
This is a plugin for Obsidian (https://obsidian.md). Supports viewing and exporting various image formats using ImageMagick.
Image Metadata
2 years ago by alexeiskachykhin
Adds image metadata editing capabilities to Obsidian
Image OCR
3 years ago by kaffarell
Runs ocr on pasted images and posts result in details box. This allows to search in images.
Image Picker
a year ago by ari.the.elk
Image to HTML
a year ago by 0x1DA9430
A plugin for Obsidian that converts pasted images to HTML format instead of Obsidian's wikilink or Markdown format
Image To Lskypro
3 years ago by NekouTarou
支持直接上传图片到图床Lsky,基于https://github.com/renmu123/obsidian-image-auto-upload-plugin.git改造。
Image Toolkit
5 years ago by sissilab
An Obsidian plugin for viewing an image.
Image Tools
a year ago by Andrey Serov
Image Uploader
5 years ago by Creling
Image Uploader For Note
a year ago by Yunfi
Upload images in a note, and if the image is only used in this note, delete it from vault.
Image Window
4 years ago by Jeremy Valentine
Adds the ability to open images in new Obsidian windows
Image2LaTEX
3 years ago by Hugo Persson
This is a plugin for obsidian that will read your latest copied image from clipboard and generate math latex from it
Inline Code Copy
a year ago by Hongchen Lin
Insta TOC
a year ago by Nick C.
Generate, update, and maintain a table of contents for your notes while typing in real time.
JSONifier
5 years ago by Kjell Connelly
Line Commands
2 years ago by charliecm
Adds commands to quickly select, copy, cut, and paste lines under the selection or cursor.
Lite Gallery
2 years ago by Jordan Poles
Local images
5 years ago by catalysm, aleksey-rezvov
Local images plus
3 years ago by catalysm, aleksey-rezvov, Sergei Korneev
This repo is a reincarnation of obsidian-local-images plugin which main aim was downloading images in md notes to local storage.
Local Media Embedder
2 years ago by seyf1elislam
an obsidian plugin allows you to Embed videos and images and audios from your local device in your notes.
Lskypro Upload V2
2 months ago by 3kk0
Auto upload local images to LskyPro.
Markdown Image Caption
3 years ago by Hananoshika Yomaru
Generate image caption easily. Completely markdown-based.
Media Slider
a year ago by Aditya Amatya
An obsidian plugin that helps to make slider for images, audios, videos, pdfs, markdown, etc in obsidian notes.
Media Sync
3 years ago by fnya
Media Sync is Plugin for Obsidian
Memories
4 months ago by DIMFLIX
Plugin to display a gallery directly in a note.
Mousewheel Image zoom
4 years ago by Nico Jeske
An Obsidian plugin that enables you to increase/decrease the size of an image by holding down a configurable key (defaults to left alt), hovering over an image in preview mode and scrolling.
Obsidian Enhancing Export
4 years ago by YISH
This is an enhancing export plugin base on Pandoc for Obsidian (https://obsidian.md/ ). It's allow you to export to formats like Markdown、Markdown (Hugo https://gohugo.io/ )、Html、docx、Latex etc.
Obsidian markdown export
3 years ago by bingryan
This plugin allows to export directory/single markdown to a folder. support output format(html/markdown/text)
Paste as file link
8 months ago by Matthias Büge
This plugin is used to paste a text from the clipboard as a link to an existing obsidian note
Paste As Html
3 years ago by maotong06
Paste From History
2 years ago by Daniel Karakka
Obsidian plugin that adds the ability to paste text from Obsidian's clipboard history.
Paste Image Into Property
a year ago by Nito
Paste image rename
4 years ago by Reorx
Renames pasted images and all the other attachments added to the vault
Paste Image Rename and Convert
a year ago by iaos
An obsidian plugin that renames pasted images and covert formats
PDF2Image
2 years ago by RasmusAChr
Pixel Banner
2 years ago by Justin Parker
🚩 Enhance your Obsidian notes with customizable banner images, including AI-generated designs and a curated store of downloadable banners. Transform your workspace with visually stunning headers that add context, improve aesthetics, and take your note-taking beyond the ordinary.
Publish URL
2 years ago by Hananoshika Yomaru
copy the publish url to clipboard
Qiniu Image Uploader
3 years ago by Jade Zheng
Uploads images from your clipboard to qiniu.com and embeds uploaded image to your note.
Recursive Copy
2 years ago by datawitch
Relative Find
5 years ago by phibr0
Remove HTML Tag
2 years ago by ChenPengyuan
Show Current File Path
5 years ago by Ravi Mashru
Obsidian plugin to show the file path of the current file in the status bar
Smart Context
a year ago by 🌴 Brian
Smart HTML Select
2 years ago by Isaia Riva
An Obsidian plugin to insert a smart HTML select element into the editor
Sonkil
10 months ago by ohyoungpark
Tiff Viewer
2 years ago by Jan Ullmann
An obsidian plugin to easily convert tiff files to png so that they can be displayed in obsidian
Webpage HTML Export
3 years ago by Nathan George
Export html from single files, canvas pages, or whole vaults. Direct access to the exported HTML files allows you to publish your digital garden anywhere. Focuses on flexibility, features, and style parity.
复制图文 (Copy Image Text)
2 years ago by msgk
obsidian插件,复制笔记内容(包括文本和图片)到剪贴板