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

Markdown: Interpolating $ inside **bold** can become LaTeX #37336

Closed
fonsp opened this issue Sep 1, 2020 · 6 comments
Closed

Markdown: Interpolating $ inside **bold** can become LaTeX #37336

fonsp opened this issue Sep 1, 2020 · 6 comments
Labels
markdown stdlib Julia's standard library

Comments

@fonsp
Copy link
Member

fonsp commented Sep 1, 2020

image

The code that failed is:

md"Hi, $planet **$planet**"

My guesswork: detecting the LaTeX sequence $planet **$ is wrongly prioritized over the bold sequence **$planet**.

@simeonschaub
Copy link
Member

simeonschaub commented Sep 1, 2020

Should have been fixed by #37130?
Edit: Sorry, can reproduce this on master.

@fonsp
Copy link
Member Author

fonsp commented Sep 1, 2020

Thanks for checking 👍

@fredrikekre
Copy link
Member

detecting the LaTeX sequence $planet **$ is wrongly prioritized over the bold sequence $planet

Isn't it ambiguous since the two environments interlapping?

@fredrikekre fredrikekre added stdlib Julia's standard library markdown labels Sep 1, 2020
@fonsp
Copy link
Member Author

fonsp commented Sep 1, 2020

It is - I guess my request is to implement a priority system to disambiguate? I have time in a couple of weeks to look at this myself

@fredrikekre
Copy link
Member

Since we support ``for inline math, and since $ is used for interpolation, maybe we should just deprecate $ and $$ for math environments.

@fredrikekre
Copy link
Member

#36946

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
markdown stdlib Julia's standard library
Projects
None yet
Development

No branches or pull requests

3 participants