Skip to content

Conversation

tizot
Copy link

@tizot tizot commented Nov 19, 2022

  • refactor: Make card templates more easily editable
  • feature: Align code snippet on the left instead of center

@tizot tizot changed the title refactor/templates feature: Align code snippet on the left instead of center Nov 19, 2022
@tizot
Copy link
Author

tizot commented Nov 19, 2022

Hi @reuseman ! 👋
This is a small PR mainly to fix how snippets of code are displayed in Anki.
By default, card content is centered, including text in HTML <pre> tags. I just added a CSS rule to align code on the left.

I also took the liberty to extract the card templates in a separate file so that it is easier to change them (also reduced a bit the code duplication).

@tizot
Copy link
Author

tizot commented Nov 19, 2022

CleanShot 2022-11-19 at 20 30 41@2x

becknik pushed a commit to becknik/flashcards-obsidian that referenced this pull request Apr 24, 2025
becknik pushed a commit to becknik/flashcards-obsidian that referenced this pull request Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant