Skip to content

feat: support smart quote#37

Merged
3w36zj6 merged 1 commit into
mainfrom
feature/support-smart-quote
Mar 4, 2026
Merged

feat: support smart quote#37
3w36zj6 merged 1 commit into
mainfrom
feature/support-smart-quote

Conversation

@3w36zj6

@3w36zj6 3w36zj6 commented Mar 4, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 proper handling for Typst smart quote nodes by converting them into standard textlint Str nodes, aligning emitted AST with other inline text content and updating documentation/fixtures accordingly.

Changes:

  • Convert Marked::SmartQuote nodes to Str (with value derived from the raw source).
  • Remove Marked::SmartQuote from the “inline marked” paragraphization classification (no longer needed once converted to Str).
  • Update the smart-quote fixture output and the README syntax support table.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/typstToTextlintAst.ts Converts Marked::SmartQuote to Str during AST conversion and adjusts inline-marked classification.
test/unit/fixtures/inline-escape-shorthand-smartquote/output.json Updates expected AST output to reflect Str nodes for smart quotes.
README.md Marks smart quotes as supported and documents their mapping to Str.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@3w36zj6 3w36zj6 merged commit fb29139 into main Mar 4, 2026
11 checks passed
@3w36zj6 3w36zj6 deleted the feature/support-smart-quote branch March 4, 2026 16:28
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