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

can't write $ in code block due to math interpretation #16290

Closed
grinapo opened this issue Jan 27, 2021 · 3 comments
Closed

can't write $ in code block due to math interpretation #16290

grinapo opened this issue Jan 27, 2021 · 3 comments
Labels

Comments

@grinapo
Copy link

grinapo commented Jan 27, 2021

Description

This does not work (with math enabled):

```bash
#!/bin/bash
problem="$1"
echo "$problem is $problem"
```

$1 gets interpreted as math, but since it can't work within code block we get a html tag salad. Also cannot be tricked by $$ or $$$ either.

It seems futile to interpret math, and any other advanced commonmark within code blocks.

Version information

  • Platform: web, v1.7.18, Chromium
@SimonBrandner
Copy link
Contributor

I believe this is a duplicate of #15846

@grinapo
Copy link
Author

grinapo commented Jan 27, 2021

I believe this is a duplicate of #15846

I don't think that LaTeX parsing would (or should) be involved in ``` code blocks.
Yet it seems that that issue is about at least three different problems at once. ☹️

@turt2live
Copy link
Member

Duplicate of #15846

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants