BoostIO/Boostnote

Do you want to work on this issue?

You can request for a bounty in order to promote it!

[bug] KaTeX parse error: $ within math mode #2252

modmod24 posted onGitHub

Current behavior

1st time I am using Latex with Boostnote, I hope I am doing it right.

I simply copy & paste example from the wiki: TeX-support and got the following error: KaTeX parse error: $ within math mode

katex parse error

Steps to reproduce

  1. create a new note, copy paste the example provided in the wiki
  2. observe the result

Environment

  • Version : 0.11.8
  • OS Version and name : 16.04 Ubuntu

<!-- Love Boostnote? Please consider supporting us on IssueHunt: šŸ‘‰ https://issuehunt.io/repos/53266139 -->


I think the provided example is at fault? If I use $$ instead of $$$ the 1st example works. The second doesn't, though: tex support


Edit: Ok, the 2nd example works if I use $ instead of $$

posted by modmod24 over 6 years ago

I can confirm this issue. It seems that using \[ \] for display math and \( \) for inline math works, which is in accordance with LaTeX.

posted by taohonker over 6 years ago

@taohonker what is the correct way to do it? Is \[ \] a workaround? How to use it? Sorry I am new to this.

posted by modmod24 over 6 years ago

In LaTeX, \[...\] is equivalent to $$...$$. But in anywhere else you cannot find an always-correct way. At least in Boostnote \[...\] works.

posted by taohonker over 6 years ago

This isn't a bug the problem is that "$$...$$" is being used for inline Katex code

Edit: I meant to say "text can't be on the same line as the katex code block" github

posted by OnlineVagrant over 6 years ago

@boostio funded this issue with $30. Visit this issue on Issuehunt

posted by IssueHuntBot over 6 years ago

then Boostnote is working fine. It's only the examples on the wiki are both incorrect / possibly outdated.

posted by modmod24 over 6 years ago

It is outdated. That was the way it used to work before. now it is customisable. with the defaults being $...$ for inline and $$...$$ for block

You can change them to work the way they did before if you like, but i prefer the way they work now. capture

posted by OnlineVagrant over 6 years ago

@OnlineVagrant ok , thank you for clarifying. šŸ‘Œ I'll close the issue.

posted by modmod24 over 6 years ago

Fund this Issue

$30.00
Funded
Only logged in users can fund an issue

Pull requests

Recent activities

boostio funded 30.00 for BoostIo/Boostnote# 2252
over 6 years ago