-
Notifications
You must be signed in to change notification settings - Fork 199
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
Blank lines in codeblocks #148
Comments
Kinda related to #122. |
There's a similar issue when the question is a code block with an empty line:
The flashcard will only show "print(x)" (as regular text - not code). |
Fix should be available in the next release once I'm done with testing. |
Awesome, thanks for doing this! I've just noticed a subtle bug with this new behaviour though:
What happens is pretty predictable: the comment is added on the same line as the three backticks: However, then the three backticks don't close the code block and everything afterwards including other SRS cards is included, giving some very funky behaviour. Disabling the same line setting is a good temp fix but I think the same line setting should simply not apply to code blocks |
@OliverBalfour, this should be fixed in the next release. |
One other issue I've just noticed: if I have a note like
then it gets changed to
Perhaps the multiline notes should ignore blank lines if they're in the middle of a code block? This isn't a huge problem as I can add some spaces to the blank line to make the plugin skip that line
Originally posted by @OliverBalfour in #76 (comment)
The text was updated successfully, but these errors were encountered: