Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Align code snippet on the left instead of center #168

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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

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.

None yet

1 participant