-
Notifications
You must be signed in to change notification settings - Fork 32
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
Remove '<h2>' when passing to Anki #81
Comments
I think you're right, we can probably just map it to nothing which may be better than a H2. Looks like we already do this for cloze cards so could probably just do it across the board.
You shouldn't need to do anything special with esbuild, just:
This should give you access to a debug view, you may need to disable the production version of the extension while you do this. Once the above works you can start off by breakpointing here https://github.com/jasonwilliams/anki/blob/main/src/markdown/parsers/cardParser.ts#L61 |
Thank you for your time, @jasonwilliams, and for guiding me in compiling my first VSCode extension. The Anki cards now follow the standard format. |
@rubisco57 you don't want to offer a PR to have it fixed upstream? |
This is now in https://github.com/jasonwilliams/anki/releases/tag/v1.3.0 |
Thank you for sharing this plugin!
I would like to remove the h2 tag resulting from the usage of markdown level 2 headings as card separator. It is nice for visual display in vscode, but ugly on the flashcards. Mapping ## to another tag in the conversion or just nothing, would be a good solution.
Could you provide some build instructions? I could not get it to work, as it is the first time I am using esbuild.
The text was updated successfully, but these errors were encountered: