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

Ignore the "::" pattern due to programming language syntax #45

Open
cervera-queiroz opened this issue Nov 11, 2024 · 2 comments
Open

Ignore the "::" pattern due to programming language syntax #45

cervera-queiroz opened this issue Nov 11, 2024 · 2 comments

Comments

@cervera-queiroz
Copy link

Hi there,

Is there any way to ignore the "Question::Answer" pattern or change it to a different pattern?

Aosr is currently getting some notes that have Rust code and creating flashcards due to the language syntax.

Ex:

use std::{iter, mem} // Not a flashcard, just loading objects/functions from the crate "std"

Thanks!

@linanwx
Copy link
Owner

linanwx commented Nov 13, 2024

Thanks for reporting this issue.

A viable solution would be to filter out text within code block formatting (marked by ``` or indentation). This should prevent false recognition of :: syntax in code segments.

Let me know if you think this approach makes sense.

@cervera-queiroz
Copy link
Author

Hi @linanwx,

Yes, ignoring the text within (```) makes sense. Can't think of any limitation of this approach.

Thanks!

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