-
Notifications
You must be signed in to change notification settings - Fork 139
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
'
character replaced with &;
unexpectedly in display math block
#536
Comments
'
character escaped unexpectedly in display math block'
character replaced with &;
unexpectedly in display math block
addresses ObsidianToAnki#536 This regex matches obsidian tag style `#my-tag` only if it's not part of an HTML expression, e.g. from ObsidianToAnki#536, `&ObsidianToAnki#39;` will be matched and skipped over.
Just ran into the same issue after activating tags, with the following example, using : > [!anki]+ Q
> $id'$ Giving the following backside: <blockquote>
<p><anki-mathjax>id&;</anki-mathjax></p>
</blockquote> All using a similar regex for the cards: |
I have the same issue(but with code block).
the codeblock show in anki app: print("Hello world!")
a = &;test&; |
The problem still continues. |
A simplified example as follows:
Markdown:
Notes added to Anki using this regex:
Which matches some types of callouts.
In Anki, I get:
Front:
Open Addressing with Quadratic Probing
Back:
h(k, i) = (h&;(k) + c_1 \cdot i + c_2 \cdot i^2) \mod m
Tags:
039
,obsidian
I read through the source code and from what I understand, inside Math blocks, the mathjax/latex is masked. When it's unmasked,
'
char is masked and then replaced with'
. TheRegexNote.parse
method removes the#039
if the option to make obsidian tags to anki tags is on.The text was updated successfully, but these errors were encountered: