Skip to content

feat: add LaTeX converter support#1799

Open
chaobo8484 wants to merge 1 commit intomicrosoft:mainfrom
chaobo8484:feature/add-latex-support
Open

feat: add LaTeX converter support#1799
chaobo8484 wants to merge 1 commit intomicrosoft:mainfrom
chaobo8484:feature/add-latex-support

Conversation

@chaobo8484
Copy link
Copy Markdown

@chaobo8484 chaobo8484 commented Apr 19, 2026

Description

This PR adds support for converting LaTeX (.tex) files to Markdown.

Changes

  • Added new converter: packages/markitdown/src/markitdown/converters/_latex_converter.py
  • Registered the LaTeX converter in converters/__init__.py
  • Added a sample test file: packages/markitdown/tests/test_files/test.tex

Testing

  • I have run hatch test locally (please confirm if you ran it).
  • Basic conversion from .tex to Markdown works.

Related Issues

Checklist

  • Code follows project style (ran pre-commit run --all-files)
  • Tests pass (hatch test)
  • I have signed the CLA

- Add new _latex_converter.py for converting .tex / LaTeX files to markdown
- Add test file test.tex
- Update converters/__init__.py to register the new LaTeX converter
@chaobo8484
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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.

Feature Request: Add LaTeX to Markdown Conversion Support

1 participant