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

String interpolation conflicts with markdown inline LaTeX syntax #36946

Open
jowch opened this issue Aug 6, 2020 · 0 comments
Open

String interpolation conflicts with markdown inline LaTeX syntax #36946

jowch opened this issue Aug 6, 2020 · 0 comments
Labels
markdown stdlib Julia's standard library

Comments

@jowch
Copy link

jowch commented Aug 6, 2020

Writing an interpolated expression followed by second one in parentheses cause the content between the $s to be parsed as LaTeX.

julia> md"$(1) ($(2))"
  (1) (

  (2))

Screenshot from 2020-08-06 10-10-59
Text parsed as LaTeX is displayed in purple.

Adding a space between the ( and $ triggers the second interpolation, but obviously leaves an unwanted space in the string.

julia> md"$(1) ( $(2))"
  (1) (

  (2))

Screenshot from 2020-08-06 10-11-11

The insertion of a newline after an interpolation if it is the first thing in a markdown string is probably also a bug. This doesn't happen for a regular string.

My system information:

Julia Version 1.5.0
Commit 96786e22cc (2020-08-01 23:44 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: AMD Ryzen 5 3600 6-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, znver1)
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

2 participants