-
Notifications
You must be signed in to change notification settings - Fork 18
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
Using $$-style escapes for math #74
Comments
Thanks, I'm glad to hear that!
Cool! For completeness, could you outline how your workflow with
I'm not 100% sure. It seems like a very specific use case, and I don't immediately recognize this as a "natural" part of |
Thanks for the reply.
Usually i write long notes with a lot of math equations in vim with Markdown-Preview. I import some of these into Obsidian, where the $$-style is used. I then add flash cards by just copying the relevant parts over into apy. I think the benefit of adding this feature is that it would allow more users to create flashcards from existing notes easily. Obsidian is quite popular and this would make apy a lot more useful for Obsidian users. |
Ok, so, something like this?
The point of asking for the details here is first to ensure we are not in a x-y problem setting. Also, I would want to know how the feature should be incorporated. E.g., should it be an option or only a configuration parameter in the config file? How does it actually look? If this feature existed, do I understand that your preferred integration would be to have this as an option in the
You may be right, but at the same time, this is the first time someone make this type of request. I want to properly understand the idea before I add it, as that makes it easier to properly maintain things. |
I'm closing this due to inactivity. |
Hey :) Could this be reopened? I'm also interested in this. My use case is similar to that of @JohannesHatke. Also it's really useful to preview MathJax before creating the cards, to ensure that the formulas etc. get rendered correctly. The
I would argue that it is related to apy, since apy introduces the markdown format for writing Anki notes, which AFAIK Anki does not use (it uses HTML). Anki introduces
That is a good question. Personally, I'd like to enable it globally, so a config option in It would be nice to convert from |
Another thought: I think it would be good to do the conversion on a per-field basis instead of per-note or even per-file, as a safety measure. Because, with |
I'm sorry for the delay - yes, I'll reopen and reconsider this. |
TLDR: My understanding is that the following feature and the specified behaviour will resolve this issue:
@camoz Please confirm that this is what you want. The following is a longer reply to explain the reasoning that reaches the above conclusion.
That is true.
Ok, yes - but only "partly". That is, given this note input: # A note
## Field 1
Contents of field 1.
…
## Field n
Contents of field n. We see it uses the Markdown headings to delimit the fields. However, the field content can be parsed both as Markdown and as plain text/html. The markdown type is the default, but it can be disabled by using the
So, your concrete feature request is for
I think we don't really need an option here. Or, perhaps we could have an option to say that the translation should apply to E.g. an option named
I don't think this will be a problem. And if it is, let's fix it after I've added the feature. |
I really enjoy using this program because it speeds up adding flashcards for my preexisting notes. :)
Unfortunately my note taking programs all use the $$ style to start and end mathjax blocks. So I can't copy the notes over. I figured out that you can't change this setting in anki.
I have written a function to convert from the $$-notation to the other one in my fork: https://github.com/JohannesHatke/apy
If youre interested in including this feature, I would open up a pull request and finish implementing it by adding a configuration key for it.
I have implemented it so that _parse_file calls the function for each line. If you have any suggestions and are interested I'd love to know.
The text was updated successfully, but these errors were encountered: