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

Code blocks not rendering properly on back of cards #1451

Open
cjappl opened this issue Mar 24, 2024 · 2 comments
Open

Code blocks not rendering properly on back of cards #1451

cjappl opened this issue Mar 24, 2024 · 2 comments

Comments

@cjappl
Copy link

cjappl commented Mar 24, 2024

Describe the bug
When using the code block feature in notion, by putting code in block with triple tick marks, this code is poorly formatted on the Anki cards

To Reproduce
Steps to reproduce the behavior:

  1. Write a page with a code block, or a link to a code block
Screenshot 2024-03-24 at 10 57 43 AM 2. Export page as HTML 3. Use 2Anki with default settings

Expected behavior
Code blocks are formatted as they are on the page (bonus points if syntax is highlighted

Observed behavior
Code is lacking any newlines, spaces, tabs, leaves all code in one line "blob"
Screenshot 2024-03-24 at 10 59 08 AM
Screenshot 2024-03-24 at 10 58 57 AM

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Firefox
  • Version 124
@aalemayhu
Copy link
Contributor

Have you changed any settings? Did you try with and without Preserve Newlines in the Toggle Header and Body?
Screenshot 2024-04-03 at 6 40 04 PM

@cjappl
Copy link
Author

cjappl commented Apr 3, 2024

The only settings I tweak are the "ignore the 🥑" and the deck name.

Here are the settings I've been using:

Screenshot 2024-04-03 at 9 44 59 AM Screenshot 2024-04-03 at 9 44 54 AM Screenshot 2024-04-03 at 9 45 03 AM Screenshot 2024-04-03 at 9 45 06 AM

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

No branches or pull requests

2 participants