复制图文 (Copy Image Text)

by msgk
5
4
3
2
1
Score: 23/100

Description

Category: Note Enhancements

The Copy Image Text plugin for Obsidian simplifies the process of copying both text and images while preserving their formatting. With this tool, users can select and copy content from their notes, including text, images, and Markdown formatting such as headings, bold, italics, and code blocks. The plugin automatically converts images into base64 format, ensuring they remain embedded when pasted. It's optimized for use with rich text editors like Word and Markdown editors, making it especially useful for users who need to transfer formatted content across different platforms. Additionally, the plugin enhances compatibility with editors like WeChat's public account editor, streamlining content creation in those environments.

Reviews

No reviews yet.

Stats

15
stars
2,295
downloads
4
forks
547
days
336
days
336
days
1
total PRs
1
open PRs
0
closed PRs
0
merged PRs
5
total issues
4
open issues
1
closed issues
12
commits

Latest Version

a year ago

Changelog

优化代码块

README file from

Github

复制图文 (Copy Image Text)

复制图文 (Copy Image Text) 是一个 Obsidian 插件,允许用户将笔记内容(包括文本和图片)复制到剪贴板,同时保持格式。

功能

  • 支持两种复制模式:
    • 复制文本和图片(富文本格式):适合复制到 Word、微信公众号等富文本编辑器
    • 复制为 Markdown 格式:适合复制到其他 Markdown 编辑器
  • 自动将 Obsidian 内部图片(![[...]] 格式)转换为内联 base64 格式(富文本模式)或标准 Markdown 图片链接(Markdown 模式)
  • 新增: 在富文本模式下,支持处理 ![](https://raw.githubusercontent.com/msgk239/obsidian-copy-image-text/HEAD/file:///...) 格式的本地外部图片链接,并将其转换为内联 base64 格式。
  • 新增: 在富文本模式下,支持处理 ==高亮== 语法,并将其转换为带黄色背景的 HTML 文本。
  • 新增: 支持将笔记内容导出为 HTML 文件,方便在浏览器中查看或分享。
  • 保持 Markdown 格式,包括标题、粗体、斜体、代码块等
  • 特别优化了在微信公众号编辑器中的显示

安装

  1. 打开 Obsidian 设置
  2. 进入"第三方插件"设置页面
  3. 确保"安全模式"已关闭
  4. 点击"浏览社区插件"
  5. 搜索"复制图文"
  6. 点击"安装"
  7. 安装完成后,启用该插件

使用方法

  1. 在 Obsidian 中打开一个笔记
  2. 选择要复制的文本(如果没有选择,将复制整个文档)
  3. 使用命令面板执行以下命令之一:
    • "复制文本和图片(富文本)":复制为富文本格式
    • "复制为 Markdown 格式":复制为标准 Markdown 格式
  4. 在目标应用程序中粘贴内容

提示:你可以在 Obsidian 设置的"快捷键"中为这两个命令设置快捷键,使用起来会更方便。

开发说明

本插件使用 TypeScript 开发。如果您想贡献代码:

  1. 克隆仓库后,运行 npm install 安装依赖。
  2. 修改 TypeScript 源代码后,运行 npm run build 来编译。
  3. 编译后的 main.js 文件不包含在版本控制中,但需要手动包含在发行版中。

注意:发布新版本时,请确保先运行 npm run build,然后将生成的 main.js 文件添加到发行包中。

注意事项

  • 图片大小限制为 10MB,超过此大小的图片将不会被复制
  • 某些特殊格式可能在某些目标应用程序中无法完全保留
  • 请确保您有权复制和分享笔记中包含的图片
  • 使用 Markdown 格式复制时的小贴士:
    • 如果你想把文档发布到 GitHub 或博客等平台,建议按以下步骤操作:
      1. 使用支持图床上传的编辑器(比如 Typora + PicList)
      2. 先将文档中的图片上传到图床(在 Typora 中已测试可用)
      3. 这样图片就变成了在线链接
      4. 然后直接复制整篇文档即可,因为此时文档中的图片都是在线链接了
    • Obsidian 可能也有类似的图床上传插件可以实现此功能(未经测试)

反馈和支持

如果您遇到任何问题或有改进建议,请在 GitHub 仓库中提出 issue。

许可证

本插件采用 MIT 许可证。详情请参阅 LICENSE 文件。

作者

由 msgk 开发和维护。

版本

当前版本: 1.1.8

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Advanced Tables
6 years ago by Tony Grosinger
Improved table navigation, formatting, and manipulation in Obsidian.md
Admonition
5 years ago by Jeremy Valentine
Adds admonition block-styled content to Obsidian.md
Text Generator
4 years ago by Noureddine Haouari
Text Generator is a versatile plugin for Obsidian that allows you to generate text content using various AI providers, including OpenAI, Anthropic, Google and local models.
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.
Banners
5 years ago by Danny Hernandez
An Obsidian plugin that adds banners to your notes
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.
Text Extractor
3 years ago by Simon Cambier
A (companion) plugin to facilitate the extraction of text from images (OCR) and PDFs.
Colored Text
3 years ago by Erinc Ayaz
cMenu
5 years ago by Chetachi
An Obsidian.md plugin that adds a minimal text editor modal for a smoother writing/editing experience ✍🏽.
Text Format
5 years ago by Benature
Format seleted text in Obsdidian.md
Colored Tags
3 years ago by Pavel Frankov
Colorizes tags in different colors.
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.
Smart Typography
5 years ago by mgmeyers
Converts quotes to curly quotes, dashes to em dashes, and periods to ellipses
Clear Unused Images
5 years ago by Ozan Tellioglu
Obsidian plugin to clear the images that are not used in note files anymore
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.
Paste image rename
4 years ago by Reorx
Renames pasted images and all the other attachments added to the vault
Image auto upload
5 years ago by renmu123
auto upload image with picgo
Markdown Formatting Assistant
5 years ago by Reocin
This Plugin provides a simple WYSIWYG Editor for Markdown and in addition a command line interface. The command line interface facilitate a faster workflow.
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.
Image Toolkit
5 years ago by sissilab
An Obsidian plugin for viewing an image.
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.
Table Extended
5 years ago by AidenLx
Extend basic table in Obsidian with MultiMarkdown table syntax
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.
Copy as HTML
4 years ago by Bailey Jennings
A simple plugin that copies the selected text to your clipboard as HTML
Text Snippets
5 years ago by Ariana Khitrova
Snippets plugin for obsidian
Local images
5 years ago by catalysm, aleksey-rezvov
Copy document as HTML
3 years ago by mvdkwast
Obsidian plugin: copy document as HTML, including images
Text Transporter
5 years ago by TfTHacker
Text Transporter - advanced text management for Obsidian.
Text expand
6 years ago by MrJackphil
A simple text expand plugin for Obsidian.md
Image Window
4 years ago by Jeremy Valentine
Adds the ability to open images in new Obsidian windows
Image Gallery
4 years ago by Luca Orio
A zero setup masonry image gallery for Obsidian
Featured Image
a year 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.
Image Layouts
3 years ago by Luke Chadwick
Heading Level Indent
3 years ago by svonjoi
obsidian plugin for hierarchical structuration of document content based on heading levels
Change Case
3 years ago by David Brockman
Plugin to let you change the case (camelCase, snake_case, etc) of the current selection.
Paste Mode
5 years ago by Jacob Levernier
Obsidian Notes plugin for pasting text and blockquotes to the cursor's current level of indentation.
Translator
4 years ago by Haifeng Lu
A plugin for Obsidian to translate selected text.
Awesome Image
3 years ago by AwesomeDog
One-stop solution for image management.
SupSub
3 years ago by Wjgoarxiv
::SupSub enables wrapping selected text with `<sup>` or `<sub>` tags::
Code block from selection
5 years ago by Dmitry Savosh
Obsidian plugin. Adds code block for the selected text.
Callout Integrator
3 years ago by
A plugin for Obsidian to allow the integration of long blocks of text into callouts.
Wrap with shortcuts
4 years ago by Manic Chuang
Wrap selected text in custom tags with shortcuts.
Avatar
3 years ago by froehlichA
An obsidian plugin for displaying an avatar image in front of your notes.
Auto pair chinese symbol
5 years ago by renmu123
中文符号自动补齐
Inline spoilers
2 years ago by logonoff
Adds Discord-like syntax for inline spoilers.
Ordered List Style
4 years ago by erykwalder
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.
Writing
3 years ago by johackim
Write and format your next book directly from Obsidian
Image Inline
2 years ago by Zackary W
convert images into base64 encoded strings and embed them directly within your notes
Multi-line Formatting
5 years ago by nmady
Format Obsidian text over an entire selection, even if that selection has paragraph breaks in the middle!
Regex Mark
2 years ago by Mara-Li
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.
Extended Markdown Syntax
a year ago by Kotaindah55
Extend your Markdown syntax using delimiters instead of HTML tags, such as underlining, superscript, subscript, highlighting, and spoiler.
Enhance Copy Note
5 years ago by kzhovn
Plugin which enhances the copy command for Obsidian.
Format Hotkeys
5 years ago by Ansel Santosa
Google Docs style formatting hotkeys for Obsidian
Remove Newlines
2 years ago by Elias Jaffe
A plugin for Obsidian.md which removes newlines and blank lines from selected or pasted text.
Formatto
2 years ago by Deca
Simple, fast, and easy-to-use Obsidian Markdown formatter.
Image Tools
a year ago by Andrey Serov
Text Finder
a year ago by hafuhafu
Provides a find/replace window in edit mode similar to VSCode (supports regular expressions and case sensitivity).
Autocorrect Formatter
2 years ago by b-yp
A plugin running on Obsidian that utilizes autocorrect to format Markdown content.
Toggle Case
3 years ago by automattech
Obsidian plugin to toggle between `lowercase` `UPPERCASE` and `Title Case`
Media Sync
3 years ago by fnya
Media Sync is Plugin for 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.
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
Jelly Snippets
3 years ago by Spencer Gouw
A simple text snippets plugin for Obsidian.md. BACKUP SNIPPETS BEFORE UPDATING.
ObsidianTweaks
4 years ago by Jeppe Klitgaard
A plugin that implements a number of tweaks that should've been native to Obsidian.
Emo
3 years ago by yaleiyale
Use image/file hosting in Obsidian by clipboard or draging file. Obsidian 图床聚合 & Github上传器
Interlinear Glossing
3 years ago by Mijyuoon
An Obsidian plugin for interlinear glosses used in linguistics texts.
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.
Blockquote Levels
4 years ago by Carlo Zottmann
A plugin for Obsidian (https://obsidian.md) that adds commands for increasing/decreasing the blockquote level of the current line or selection(s).
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.
Lite Gallery
2 years ago by Jordan Poles
LaTeX to unicode converter
3 years ago by fjdu
Convert LaTeX commands into unicode sequences
Paste Reformatter
a year ago by Keath Milligan
A plugin for Obsidian that reformats pasted HTML and plain text content, giving you precise control over how content is transformed when pasted into your notes.
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 To Lskypro
3 years ago by NekouTarou
支持直接上传图片到图床Lsky,基于https://github.com/renmu123/obsidian-image-auto-upload-plugin.git改造。
Callout Toggles
2 years ago by Aly Thobani
An Obsidian plugin to quickly add, change, or remove callout wrappers in your notes.
Auto-\displaystyle Inline Math
2 years ago by Ryota Ushio
An Obsidian.md plugin to automatically make all inline maths \displaystyle.
Cloudinary
3 years ago by Uday Samsani, Jordan Handy
Cloudinary plugin for content uploading and transformation.
Text Transform
3 years ago by ipshing
Text Dataset Aid Plugin
3 years ago by Conner Ohnesorge
This is a obsidian plugin to help with the creation of personal jsonl datasets for text generation models.
Fill in the Blank (FITB)
3 years ago by Shawn McGee
Chevereto Image Uploader for Obsidian
4 years ago by kkzzhizhou
obsidian plugins: chevereto image uploader
Text Conversions
3 years ago by Juan D Frias
Text conversions for Obsidian
Qiniu Image Uploader
3 years ago by Jade Zheng
Uploads images from your clipboard to qiniu.com and embeds uploaded image to your note.
Markdown Image Caption
3 years ago by Hananoshika Yomaru
Generate image caption easily. Completely markdown-based.
heti
2 years ago by Moeyua
Callout Copy Buttons
a year ago by Aly Thobani
An Obsidian plugin that adds copy buttons to callout blocks in your notes.
Colorizelt
2 years ago by Artsem Holub (WiNE-iNEFF)
Easy color and clear selected text
Image Picker
a year ago by ari.the.elk
Canvas Format Brush
a year ago by wenlzhang
An Obsidian plugin that allows you to copy and paste formatting attributes (size and color) between canvas elements, similar to the format painter in Word.
Image Size
a year ago by Jie Zhang
Set the default size for pasted images.
Image Collector
2 years ago by tdaykin
Jisage -Japanese Indentation-
2 years ago by Telehakke
Obsidian plugin.
Alt-Click to Copy
2 years ago by Veer Sheth
Line Commands
2 years ago by charliecm
Adds commands to quickly select, copy, cut, and paste lines under the selection or cursor.
Copy Section
2 years ago by skztr
Obsidian.md plugin adding a Copy button to the top of Headed sections
Image Helper
2 years ago by Chongmyung Park
Context menu to convert a image to another format in reading view in Obsidian.md
Better Order List
2 years ago by Boninall
Display Relative Path Img
2 years ago by Dyc
Display the relative path image referenced by <img> in Obsidian without altering the original document
Image Metadata
2 years ago by alexeiskachykhin
Adds image metadata editing capabilities to Obsidian
PDF2Image
2 years ago by RasmusAChr
Dynamic Text Concealer
2 years ago by Matt Cole Anderson
Obsidian.md Plugin to conceal or replace user configured text patterns in Live Preview and Read Mode.
Copy as source
2 years ago by @gapmiss
Select and copy source HTML in reading view in Obsidian.md
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
Textgrams
a year ago by Akop Kesheshyan
Create and store ASCII graphics in your Obsidian
Text Focus
2 years ago by usysrc
Focus the text area when opening a new note.
Paste Image Into Property
a year ago by Nito
BackItUp
2 years ago by Hammad Javed
🟣 Quickly make a copy or snapshot of a note in Obsidian.
Memories
3 months ago by DIMFLIX
Plugin to display a gallery directly in a note.
Enhanced Image
2 years ago by situ2001
Enhance the experience of image in Obsidian, seamlessly.
Snippetsaurus
a year ago by Christian Humbert
Discord Timestamps
a year ago by Erika Gozar
Displays discord timestamps in read mode as they would appear in Discord.
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
Heading Toggler
2 years ago by Lord Turmoil
Toggle heading levels in Obsidian
Inline Code Copy
a year ago by Hongchen Lin
Arcane Obfuscate
2 years ago by Shusako
Obfuscate text in Obsidian.md with an arcane runic effect.
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.
Fast Image Auto Uploader
2 years ago by Longtao Wu
upload images from your clipboard by gopic
Chat clips
a year ago by sleepingraven
Record chat in ordinary markdown list.
Keyboard Formatter
8 months ago by Lauloque
Formats keyboard text (kbd) in your Obsidian notes quickly and consistently.
Vim Marker Sharpener
a year ago by Artem Dvoryadkin
Text formatting commands in Vim mode. Supports applying styles (bold, italic, etc.). Works correctly in visual mode with selected text.
Note Placeholder
a year ago by XZSt4nce
Replaces text of note link to placeholder in view mode.
Bottom to Top
a year ago by Henry Gustafson
Fix Line Endings on Copy
7 months ago by KiwiJanus
Arweave Uploader
2 years ago by makesimple