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

💬 Support quote environments in latex #922

Merged
merged 2 commits into from
Feb 20, 2024
Merged

💬 Support quote environments in latex #922

merged 2 commits into from
Feb 20, 2024

Conversation

rowanc1
Copy link
Collaborator

@rowanc1 rowanc1 commented Feb 20, 2024

Support quote, displayquote and epigraph

Copy link
Collaborator

@fwkoch fwkoch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice! Just a minor nitpick-y comment.

state.openNode('container', { kind: 'quote' });
}
state.openNode('blockquote');
state.openParagraph();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These openParagraph/closeParagraph calls aren't in the other handlers - maybe unnecessary? I think the behaviour is the same in each case (looking at test cases), so the differences in the code are a little misleading.

Copy link
Collaborator Author

@rowanc1 rowanc1 Feb 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are actually necessary - and the close node is looking to the paragraph not the blockquote above, which is a bug. Adding the other ones in!

@rowanc1
Copy link
Collaborator Author

rowanc1 commented Feb 20, 2024

Tests were a timeout on SPDX. Merging!

@rowanc1 rowanc1 merged commit 9f359e2 into main Feb 20, 2024
2 of 4 checks passed
@rowanc1 rowanc1 deleted the tex/quote branch February 20, 2024 20:39
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