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

Math doesn't render properly when text in equation #67

Open
narayankj opened this issue Aug 23, 2018 · 10 comments
Open

Math doesn't render properly when text in equation #67

narayankj opened this issue Aug 23, 2018 · 10 comments
Assignees

Comments

@narayankj
Copy link

image

@edeustace

@edeustace
Copy link
Contributor

@narayankj can you include a link or source code for any bugs raised so that we can quickly reproduce the issue? thanks

narayankj added a commit to paritoshcardinal/pie_elements_demo that referenced this issue Aug 27, 2018
@edeustace
Copy link
Contributor

@elodszopos can you take a first look at this? ping if you need me to look too

@narayankj
Copy link
Author

@edeustace @elodszopos Math rendering in Categorize has issues in different scenarios. Even regular math equations end up displaying latex. Ex: when drop some choice in category, click check answer then show correct answer, equations in choices dropped in category turn latex.

image

@lakatosandrei lakatosandrei self-assigned this Dec 5, 2018
@lakatosandrei
Copy link
Contributor

lakatosandrei commented Dec 5, 2018

@narayankj
This is another case of writing the content of an editable-html component wrong.
This is how the first choice is written:

"<span mathjax=\"\" data-latex=\"\">420\\text{ cm}=4.2\\text{ meters}</span>"

Ad this is how it should be written:

"<span mathjax=\"\" data-latex=\"\">\\(420\\ cm\\ =\\ 4.2\\ meters\\)</span>"

This seems to be wrong:

420\\text{ cm}=4.2\\text{ meters}

This is working:

\\(420\\ cm\\ =\\ 4.2\\ meters\\)

The result:
screenshot 2018-12-05 13 49 09

Will investigate why plain latex is not working and how to make it work.

@narayankj
Copy link
Author

@lakatosandrei These are questions imported from CoreSpring and works in their system.

@PowerMyLearningConnect
Copy link

@lakatosandrei any update on this?

@lakatosandrei
Copy link
Contributor

lakatosandrei commented Jan 18, 2019

Hey @PowerMyLearningConnect I think this issue is fixed, please get the latest version of the editor.
The fixing of these issues took a back seat but I'm going to work on them shortly.

@edeustace
Copy link
Contributor

do we have the version in which the fix went in @lakatosandrei ? I guess if @PowerMyLearningConnect are happy we can then close this issue?

@lakatosandrei
Copy link
Contributor

@edeustace @PowerMyLearningConnect
The latest version of editable-html is good to go. So if the elements (multiple-choice, categorize etc.) that use the editable-html package have the latest version of it (I see they do) this should no longer be an issue. And the latest versions of the elements should work fine.

@elodszopos elodszopos removed their assignment May 2, 2022
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

5 participants