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:
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>() {
<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!");
}
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
The easiest way to install Copy2Clipboard(html2text) is through AnkiWeb.
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.