Awesome
<p align="center"><img src="screenshots/screenshot.png"></p> <h2 align="center">HTML Cleaner for Anki</h2> <p align="center"> <a title="Latest (pre-)release" href="https://github.com/glutanimate/html-cleaner/releases"><img src ="https://img.shields.io/github/release-pre/glutanimate/html-cleaner.svg?colorB=brightgreen"></a> <a title="License: GNU AGPLv3" href="https://github.com/glutanimate/html-cleaner/blob/master/LICENSE"><img src="https://img.shields.io/badge/license-GNU AGPLv3-green.svg"></a> <!--<a title="Rate on AnkiWeb" href="https://ankiweb.net/shared/info/ANKIWEB_ID"><img src="https://glutanimate.com/logos/ankiweb-rate.svg"></a>--> <br> <a title="Buy me a coffee :)" href="https://ko-fi.com/X8X0L4YV"><img src="https://img.shields.io/badge/ko--fi-contribute-%23579ebd.svg"></a> <a title="Support me on Patreon :D" href="https://www.patreon.com/bePatron?u=7522179"><img src="https://img.shields.io/badge/patreon-support-%23f96854.svg"></a> <a title="Follow me on Twitter" href="https://twitter.com/intent/user?screen_name=glutanimate"><img src="https://img.shields.io/twitter/follow/glutanimate.svg"></a> </p>Annoying formatting be gone!
This is an add-on for the spaced-repetition flashcard app Anki that cleans and minifies the HTML content of the current field, removing extraneous tags and attributes copied over from apps like Word, Chrome, etc.
Table of Contents <!-- omit in toc -->
<!-- MarkdownTOC levels="1,2,3" --> <!-- /MarkdownTOC --> <!-- ### Screenshots ![](screenshots/screenshot.png) -->Installation
AnkiWeb <!-- omit in toc -->
This section will be updated once the add-on is available on AnkiWeb.
<!-- The easiest way to install HTML Cleaner is through [AnkiWeb](https://ankiweb.net/shared/info/ANKIWEB_ID). -->Manual installation <!-- omit in toc -->
Please click on the entry corresponding to your Anki version:
<details> <summary><i>Recent Anki 2.1 versions</i></summary> <br>Note: These instructions only work on Anki 2.1.17 and up. For older Anki releases please see the next section.
<br>- Download the latest
.ankiaddon
file from the releases tab (you might need to click on Assets below the description to reveal the download links) - Open the folder where your downloads are located and double-click on the downloaded
.ankiaddon
file. - Follow the installation prompt and restart Anki if it asks you to
- Make sure you are using at least Anki 2.1.10. Earlier releases (e.g. found in various Linux distros) do not support
.ankiaddon
packages. - Download the latest
.ankiaddon
package from the releases tab (you might need to click on Assets below the description to reveal the download links) - From Anki's main window, head to Tools → Add-ons
- Drag-and-drop the
.ankiaddon
package onto the add-ons list - Restart Anki
Video summary:
<img src="https://raw.githubusercontent.com/glutanimate/docs/master/anki/add-ons/media/ankiaddon-installation-macos.gif" width=640> </details>Documentation
For further information on the use of this add-on please check out the description text for AnkiWeb.
Building
With Anki add-on builder installed:
git clone https://github.com/glutanimate/html-cleaner.git
cd html-cleaner
aab build
For more information on the build process please refer to aab
's documentation.
Contributing
Contributions are welcome! Please review the contribution guidelines on how to:
- Report issues
- File pull requests
- Support the project as a non-developer
License and Credits
HTML Cleaner is
Copyright © 2016-2020 Aristotelis P. (Glutanimate)
Copyright © 2020 Arthur Milchior
Copyright © 2020 ijgnd
This add-on was developed on a commission by a fellow Anki user. All credit for the original idea goes to them.
My heartfelt thanks goes out to Arthur and ijgnd for their major contributions in bringing this add-on to Anki 2.1 and extending it with a plethora of new features. For a list of all significant contributors to this project and their contributions please also see CONTRIBUTORS.
This add-on would not not have been possible without the following open-source libraries:
- Bleach 2.0.0. Copyright (c) 2014-2017 Mozilla Foundation. Licensed under the Apache License 2.0
- html5lib 0.999999999. Copyright (c) 2006-2013 James Graham and other contributors. Licensed under the MIT license.
- htmllaundry 2.1. Copyright (c) 2010-2016 Wichert Akkerman. Licensed under the BSD license.
- lxml 3.7.3. Copyright (c) Infrae. Licensed under the BSD license.
- webencodings 0.5.1. Copyright (c) 2012-2017 Geoffrey Sneddon. Licensed under the BSD license.
- six 1.10.0. Copyright (c) 2010-2015 Benjamin Peterson. Licensed under the MIT license
HTML Cleaner is free and open-source software. The add-on code that runs within Anki is released under the GNU AGPLv3 license, extended by a number of additional terms. For more information please see the LICENSE file that accompanied this program.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.
<b> <div align="center">The continued development of this add-on is made possible <br>thanks to my <a href="https://www.patreon.com/glutanimate">Patreon</a> and <a href="https://ko-fi.com/X8X0L4YV">Ko-Fi</a> supporters. <br>You guys rock ❤️ !</div> </b>