frenya / vscode-recall

MIT License
24 stars 7 forks source link

Recall's Markdown Preview != VS Code's Markdown Preview #14

Closed sam-6174 closed 2 years ago

sam-6174 commented 2 years ago

Thanks for making this extension =) It's been a life saver for managing my flashcard studies!

Recall seems to be using Markdown settings that are vastly different than VS Code's builtin Markdown: Open Preview.

Is it possible to configure this behavior? Perhaps this issue is related to issue https://github.com/frenya/vscode-recall/issues/12?

Below is an example markdown.

---
recall: header
---

### Generate all Permutations using Backtracking

```python
def func(args):
  for arg in args:
    print(arg)

answer

frenya commented 2 years ago

Hi Sam. This is probably related to other extensions' CSS styles being applied in the Markdown preview.

I was considering automatically applying all the styles added by the other extensions but the experience wasn't ideal. Some of the styles really messed up the cards.

After some experimentation I have decided to add the option to selectively choose the additional styles to apply. This is now deployed in v0.12. New command called 'Recall: Enable CSS styles from other markdown preview extensions' was added which lets you pick and choose.

Let me know if it works for you. It might take some experimentation to get the selection right.

sam-6174 commented 2 years ago

Hi frenya, thanks for the update 🚀

The flashcard styling now perfectly aligns with the styling in the rest of VS Code, and this solution hits the sweet spot of ease and configure-ability!