Copy2Clipboard_html2text

AnkiWeb addon 703825446

Automatically copies a chosen field's content to the clipboard when the question or answer side is shown, converting HTML into Markdown-formatted text.
AI-generated summary; may contain mistakes.

exportreview-flowformattingfork-or-reupload

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2022-08-15
Anki versions
2.1.54~
Description language
en

Maintenance

abandoned

  • Last update or commit was 1507 days before the snapshot (2022-08-16).

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.162.1.54+2022-08-15
History across monthly snapshots

Loading…

Similar addons

Anki HTML Exporter

Exports Anki cards to a searchable, printable HTML page rendered exactly like the reviewer, plus live browsing, narrated slideshows, and rapid presentation modes.

aiexportreview-flowimage-occlusion

Rating 4 πŸ‘ 4 Β· πŸ‘Ž 0 ⭐ 1 Anki 26.08.1~ Updated 2026-09-16

README

<h2 align="center">Copy2Clipboard(html2text) Add-on for Anki</h2>

<p align="center"> <a title="License: GPL v3" href="https://www.gnu.org/licenses/gpl-3.0"><img src="https://img.shields.io/badge/License-GPLv3-blue.svg"></a> <a title="Rate on AnkiWeb" href="https://ankiweb.net/shared/info/703825446"><img src="https://glutanimate.com/logos/ankiweb-rate.svg"></a> <br> </p>

Copy2Clipboard(html2text) automatically copies a field's content to the clipboard when the question or answer side is shown (or both, if desired).

How is this add-on different from Copy2Clipboard?

This add-on is built on Copy2Clipboard. I simply bundled html2text to convert HTML to Markdown-formatted text.

The original Copy2Clipboard copies the underlying html, which is probably not what you want. For example, given the following front side:

anki

the following content is copied:

<pre style="display:flex; justify-content:center;"><code class="language-rust hljs"><span class="hljs-keyword">fn</span> <span class="hljs-title function_">main</span>() {
&nbsp;&nbsp;&nbsp; <span class="hljs-built_in">println!</span>(<span class="hljs-string">"Hello World!"</span>);
}</code></pre>

With this add-on, the following is copied:

    fn main() {
        println!("Hello World!");
    }

Default behavior

When the question side is shown: "Front" field will be copied to the clipboard (if one exists).

When the answer side is shown: nothing will be copied to the clipboard.

To modify the default behavior, go to Tools -> Add-ons -> Choose Copy2Clipboard(html2text) -> Click Config -> edit "questionField" and "answerField" according to your needs

Installation through AnkiWeb

The easiest way to install Copy2Clipboard(html2text) is through AnkiWeb.

License and Credits

This add-on would not have been possible without html2text and Copy2Clipboard. This program is distributed in the hope that it will be useful, but without any warranty.