Skip to content

Allow rendering of Q&A on a single continuous HTML page for increased readability #190

Description

I don't think this is a bug. Perhaps this is more an improvement suggestion.

Description

When using hashcards drill on cards with a lot of text, after revealing
the answer to a card, two scrollable boxes exist rather than a single continuous HTML page.
Below is an example where Q: and A: has a lot of text, but equal amounts of text:
Image

.md file used for aforementioned picture:
testequaltext.md


Furthermore, if A: contains more text than Q:,
the revealed A: box becomes disproportionately large.
Below is an example where the card contains a lot of text, yet A: has more text than Q:

Image

.md file used for aforementioned picture:
testamoretext.md


This doesn't initially seem like a problem, but if one creates image occlusion cards, it becomes
hard to navigate the images.
Example (before reveal)

Image

And after reveal:

Image

.md file used for above 2 pictures

testpicture.md

The aforementioned example with the image occlusion cards becomes quite a lot worse if
A: has significantly more text than Q:- I haven't had the time to document this, but I can do so if
needed.

Suggestion for solution

Add an option to make the Q: and A:
part of the flashcards to span a single continuous HTML page,
and let the bar at the bottom(the one with "Undo" and "End")
float while being able to scroll the single HTML page.

In this way, one can utilize the entirety of the HTML page for the flashcards,
while not breaking flow because the bottom-bar floats
with one, allowing one to click "Reveal", "Good", etc. at
any time.

The option could be implemented in the hashcards drill command,
perhaps as --single-html

Furthermore, the option for two separate boxes for the question
and answer will still be available if this is what one prefers.

Environment

  • OS: Arch Linux
  • Kernel: Linux 7.1.3-arch1-2
  • Browser/Version: Mozilla Firefox 152.0.5

Additional Information

The cards were drilled in a private firefox browser with no addons enabled to ensure
that the addons did not affect the displaying of the cards

A thank you note

I would like to thank @eudoxia0 for creating and maintaining this software.
I am incredibly grateful for it- it has helped me immensely in my studies.
hashcards suits my workflow infinitely more than Anki does. 😄

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions