-
Notifications
You must be signed in to change notification settings - Fork 25
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
convertDeltaToHtml wont work when there is a formula #1
Comments
Hi @haojia321 . Thank you for submitting this. I'll take a look at this later today. |
@haojia321 Thank you for your patience. Background Issue Possible solution(s) |
@joelcolucci Thank you for your response. You are right, this is exactly the issue we are facing now. Just wondering when will this be fixed? |
@haojia321 I will take a look today/tomorrow at extending the API to import KaTex. I'll keep you updated. |
@haojia321 Can you provide an example of correct input and expected output? Below is the current test case I'm using. The output includes a KaTeX error. I'm working to confirm if this is due to a bad Delta, code, or test framework. Inputlet deltaWithKatex = { ops: [{ insert: { formula: "$$\small{4 \div 0.25 \ =}$$ _____ $$\small{\times 4}$$" } }] }; Output<p>
<span class=\"ql-formula\" data-value=\"$$small{4 div 0.25 =}$$ _____ $$small{ imes 4}$$\">
<span contenteditable=\"false\">
<span class=\"katex-error\" title=\"ParseError: KaTeX parse error: Can't use function '$' in math mode at position 1: $̲$small{4 div 0.…\" style=\"color:#f00\">$$small{4 div 0.25 =}$$ _____ $$small{ imes 4}$$</span>
</span>
</span>
</p> |
Hi @joelcolucci ,
let deltaWithKatex = { ops: [{ insert: { formula: "e=mc^2" } }] };
|
@haojia321 Thanks. I'm continuing to work on this. There are inconsistencies in the output at the moment. I'll keep you updated. |
Hi
If the delta has a formula, the convertDeltaToHtml wont work.
var deltaWithFormulaExample = { "ops": [{ "insert": { formula: "$$\small{4 \div 0.25 \ =}$$ _____$$\small{\times 4}$$ " } }] };
The text was updated successfully, but these errors were encountered: