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

fix: stop double-processing tex in spans #102

Merged
merged 1 commit into from
Sep 25, 2024
Merged

fix: stop double-processing tex in spans #102

merged 1 commit into from
Sep 25, 2024

Conversation

joshuahhh
Copy link
Collaborator

Previously, something like [*emph in span*]{.smallcaps} would result in "\emph{emph in span}" in small caps (with the LaTeX code visible in the PDF).

Cause: this.fragment returns a string, but this.command expects an AST as its first argument (cuz it calls this.fragment on it itself). So we're transforming to LaTeX and then transforming that to LaTeX again, which treats it as a string of content.

@jheer
Copy link
Member

jheer commented Sep 5, 2024

The change looks good, thanks! Just need to investigate why the tests are failing…

@jheer jheer merged commit 79b2d2b into main Sep 25, 2024
0 of 2 checks passed
@jheer jheer deleted the joshuahhh-patch-1 branch September 25, 2024 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants