barefootstache

While working on #pdf4anki integrated the feature of automatically adding opinionated #CSS with #cheerio to the initial #HTML file. This had the unknown side effect of destroying all the self-closing HTML tags, thus breaking the pattern matching.

The fun of taking apart the code to #debug this issue.

barefootstache

Just published the preliminary tool #pdf4anki on #codeberg

codeberg.org/barefootstache/pd

It mainly describes how to do it and is a semi-automation tool to get PDFs into #anki.

In the current version one will still need to modify the pattern constant in the clean-html.js file to align with the PDF in use.

#javascript #opensource #jq #pdftohtml #nodejs

pdf4anki

Export data from PDF and import for Anki.

Codeberg.org