Code blocks not rendering properly on back of cards
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:
- Write a page with a code block, or a link to a code block
- Export page as HTML
- 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"
Desktop (please complete the following information):
- OS: MacOS
- Browser Firefox
- Version 124
Have you changed any settings? Did you try with and without Preserve Newlines in the Toggle Header and Body?
The only settings I tweak are the "ignore the 🥑" and the deck name.
Here are the settings I've been using: