Skip to content

Conversation

@3w36zj6
Copy link
Member

@3w36zj6 3w36zj6 commented Aug 1, 2025

No description provided.

@3w36zj6 3w36zj6 requested a review from Copilot August 1, 2025 22:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for math equation markup in Typst documents by converting Marked::Equation nodes to Code or CodeBlock AST nodes.

  • Converts inline math expressions (single-line) to Code nodes
  • Converts block math expressions (standalone lines or multi-line) to CodeBlock nodes
  • Updates the README to reflect that math markup is now supported

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/typstToTextlintAst.ts Adds conversion logic for Marked::Equation nodes to determine Code vs CodeBlock type
test/unit/textlintAstObject.json Updates test data to show equation nodes converted to Code/CodeBlock types
test/unit/paragraphizedTextlintAstObject.json Updates paragraphized test data with converted equation nodes
test/unit/fixtures/Equation/output.json Adds expected output for equation parsing test
test/unit/fixtures/Equation/input.typ Adds test input file with math equations
README.md Updates documentation to show math markup is supported

@3w36zj6 3w36zj6 merged commit 55891cd into main Aug 1, 2025
4 checks passed
@3w36zj6 3w36zj6 deleted the feature/add-math-equation-support branch August 1, 2025 22:05
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.

1 participant