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

parsing latex strings inside parentheses #34

Closed
AlbertLei opened this issue Oct 10, 2024 · 1 comment
Closed

parsing latex strings inside parentheses #34

AlbertLei opened this issue Oct 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@AlbertLei
Copy link

litedown seems not parse latex strings inside parentheses. eg:

The force ($F$) equals to mass ($m$) multiplied by the acceleration ($a$).

litedown output:

image

Would you consider changing the latex parsing rule to allow this? The previosu example is parsed "correctly" by pandoc and github (see below)

  • The force ($F$) equals to mass ($m$) multiplied by the acceleration ($a$).
@yihui yihui added the bug Something isn't working label Oct 10, 2024
@yihui
Copy link
Owner

yihui commented Oct 10, 2024

Fixed in xfun. Thanks for the report! You can install the development version via

remotes::install_github('yihui/xfun')

Or wait for an hour and

install.packages('xfun', repos = 'https://yihui.r-universe.dev')

Make sure packageVersion('') >= '0.48.5') after installation.

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

No branches or pull requests

2 participants