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

Unnecessary backtick characters in the code block #159

Open
maksim77 opened this issue Oct 26, 2022 · 2 comments · Fixed by #160
Open

Unnecessary backtick characters in the code block #159

maksim77 opened this issue Oct 26, 2022 · 2 comments · Fixed by #160
Labels
bug Something isn't working

Comments

@maksim77
Copy link
Contributor

Describe the bug
If there are two $ characters on the same line in the code block, then the ` character is added before each of them

Samples to Reproduce

  1. Create new obsidian vault
  2. Install Advanced Slides
  3. Create туц note with this content and enable slide preview:
```
db.books.find({$or:[{year:{$gte: 2020}},{author: "Stephen Edwin King"}]})
$some text here$
```

4 On the slide it will be presented as:

db.books.find({`$or:[{year:{$`gte: 2020}},{author: "Stephen Edwin King"}]})
`$some text here$`

It's strange that in reveal itself.js as in highlight.js there is no such problem. I don't use them directly, but I checked them with minimal examples.

@maksim77 maksim77 added the bug Something isn't working label Oct 26, 2022
@maksim77 maksim77 changed the title Unnecessary backtic characters in the code block Unnecessary backtick characters in the code block Oct 26, 2022
MSzturc added a commit that referenced this issue Nov 3, 2022
bugfix: Removed escaping "$" symbol for code block in latexProcessor (#159)
@MSzturc MSzturc reopened this Nov 3, 2022
@MSzturc
Copy link
Owner

MSzturc commented Nov 3, 2022

Had to reopen it. The change causes issues with inline latex like:

You can also do inline math like $s^{-2}_{n}\sum_{i=1}^{n}$

@maksim77
Copy link
Contributor Author

maksim77 commented Nov 3, 2022

Yeah, I figured out the problem. I would be happy to help you with it, but unfortunately I don't understand well enough how plugins work yet...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants