Skip to content

Instantly share code, notes, and snippets.

@skyzh
Last active April 11, 2019 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skyzh/d8f51fdced49487b73d51648ee8d1309 to your computer and use it in GitHub Desktop.
Save skyzh/d8f51fdced49487b73d51648ee8d1309 to your computer and use it in GitHub Desktop.
Review Anki cards on Kindle
tr:not(.fble_htr) {
counter-increment: rowNumber;
}
tr:not(.fble_htr) td:first-child::before {
content: counter(rowNumber);
min-width: 1em;
margin-right: 0.5em;
}
table { page-break-inside:auto !important }
tr { display: block; page-break-inside:avoid !important; page-break-after:always !important }
  1. Use Basic Print Support Anki addon.
  2. Print to HTML
  3. Apply CSS
  4. Print to PDF

This CSS adds card number and forces page break after each card.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment