Today’s blog post explores how to convert math-heavy PDFs into accessible Canvas LMS pages using Mathpix and ChatGPT.
If you’ve ever tried moving mathematical equations from a PDF into Canvas, you know how quickly things can become frustrating, especially when you have to recreate every equation manually. Fortunately, Mathpix can recognize mathematical content, and ChatGPT can help prepare it for Canvas, making the process much easier.
This guide walks through the conversion process and shows how to preserve semantic structure while preparing mathematical content for students.
Video Guide
Why Is Math in PDFs So Difficult to Make Accessible?
Mathematical content presents some unique accessibility challenges. A PDF might contain fractions, exponents, and complex equations that look perfectly fine on the screen but create problems for students who use screen readers. Some PDFs store equations as images, while others contain text that loses its mathematical structure when copied into another application. Even a small formatting error can change the meaning of an equation, making accuracy especially important.
You could manually recreate every expression using the Canvas equation editor, but imagine doing that for an entire exam. Depending on the complexity of the document, that process could take hours. Mathpix offers a more efficient starting point by extracting mathematical expressions into editable content that ChatGPT can help prepare for Canvas.
Step 1: Upload Your PDF to Mathpix
Mathpix uses mathematical optical character recognition (OCR) to identify text and equations within documents. Unlike traditional OCR tools that primarily recognize standard text, Mathpix specializes in mathematical notation and can convert those expressions into editable Mathpix Markdown, which supports LaTeX equations.
To get started:
- Open Mathpix and upload your PDF.
- Select Convert to Note, as demonstrated in the companion video. Depending on the current interface, Mathpix may create the Note automatically.
- Allow Mathpix to process the document.
- Review the converted content before continuing.
Mathpix can process multiple pages at once, making it particularly useful for longer assignments and exams. You can also export content into different formats, including HTML, although this workflow uses ChatGPT to help prepare the markup for Canvas.
Understanding the Mathpix Editor
After Mathpix converts the PDF into a Note, the workspace provides areas for navigating your notes, editing the LaTeX/Markdown, and previewing the rendered document. This layout makes it easy to compare the extracted markup with the displayed mathematics before moving the content into Canvas.
Take a moment to review the equations, especially fractions and mathematical symbols. OCR technology can make mistakes when the original PDF contains scanned pages or unusual notation. Correcting those errors at this stage helps preserve mathematical accuracy throughout the conversion.
Step 2: Use ChatGPT to Prepare the Content for Canvas
Now that Mathpix has converted the PDF into Markdown, it’s time to prepare that content for Canvas. Select everything in the Mathpix Markdown editor and paste it into ChatGPT. Ask ChatGPT to convert the material into HTML that works in Canvas’s raw HTML editor, preserving the mathematical expressions and applying appropriate semantic structure.
This is where the workflow gets interesting. ChatGPT can help organize the extracted content into headings and lists that provide meaningful structure for students using assistive technology. The key is to provide clear instructions so that the conversion preserves the original questions and mathematical notation.
The ChatGPT Prompt
Here’s a prompt you can copy and adapt for your own documents:
I want to copy and paste this information into Canvas LMS so that the mathematics renders correctly and remains accessible.
Convert the following Mathpix LaTeX/Markdown into HTML that I can paste directly into the Canvas raw HTML editor.
Preserve all mathematical expressions, exam instructions, questions, and answer choices exactly as they appear in the original content.
Use Canvas-compatible mathematical markup and apply semantic HTML headings, paragraphs, and properly structured lists where appropriate.
Do not replace mathematical expressions with images or change their meaning. If an expression appears incorrect or ambiguous, identify it rather than guessing.
Return only the HTML so I can copy and paste it directly into Canvas.
Here is my Mathpix Markdown:
[Paste your Mathpix content here]
ChatGPT will generate HTML based on the Markdown you provide. Review the output before moving it into Canvas, particularly any mathematical markup that differs from the original.
Why Semantic HTML Matters
Semantic HTML gives a document meaningful structure. For example, an exam section titled “Exam Instructions” should use an actual heading element rather than simply displaying bold text. Similarly, bulleted instructions should use properly coded HTML lists instead of manually inserted bullet characters. These elements allow screen-reader users to navigate sections and understand how the content is organized.
Mathematical expressions require additional consideration because their accessibility depends on how the markup communicates mathematical relationships. Canvas supports mathematical notation through its equation-rendering capabilities, including MathML. The HTML generated by ChatGPT must use markup that Canvas supports, and the finished equations should be tested with assistive technology.
Step 3: Paste the HTML into Canvas
Now comes the fun part. Take the HTML that ChatGPT generated and paste it into your Canvas page. The process is straightforward:
- Open the destination page in Canvas.
- Select Edit and switch to the raw HTML editor.
- Paste the HTML generated by ChatGPT.
- Save the page and review the result.
In the companion video, the finished Canvas page displays the exam instructions, bulleted lists, questions, and mathematical expressions. The equations render correctly without requiring individual reconstruction in the Canvas equation editor.
Canvas may modify unsupported HTML when you save the page, so review the published content rather than relying only on what appears in the editor. If an equation fails to render correctly, inspect the markup and make the necessary adjustments.
Step 4: Verify the Math and Accessibility
Before sharing the finished page with students, compare it with the original PDF. Mathpix may misinterpret characters during OCR, and ChatGPT may introduce changes while converting the Markdown into HTML. Pay particular attention to negative signs, fractions, superscripts, subscripts, and square roots. A missing symbol can completely change the meaning of a mathematical problem.
Also, consider document privacy when uploading materials to external services. If you’re working with confidential exams or institutionally protected documents, check your organization’s data-handling requirements before processing them. Keep a copy of the original document so you can verify the converted content and correct any errors.
Test the Content with Assistive Technology
A mathematical expression can look correct while still presenting accessibility barriers for someone using a screen reader. Test the Canvas page with assistive technologies such as NVDA, JAWS, or VoiceOver to evaluate how students navigate the content and interpret the mathematical expressions.
For complex equations, investigate how the screen reader communicates fractions and nested mathematical relationships. Confirm that the heading structure follows a logical order and that students can navigate any interactive content using a keyboard. Testing helps establish whether the converted page supports accessible mathematical reading, beyond simply displaying the equations correctly.
Making Math Content More Accessible
Math doesn’t have to be one of the most frustrating parts of creating accessible course materials. By combining Mathpix with ChatGPT, you can extract mathematical expressions from PDFs and prepare them for use in Canvas without manually recreating every equation. The result is a more manageable process for converting existing course materials into structured Canvas pages.
Although the final content still requires accuracy checks and accessibility testing, this workflow can reduce repetitive work and make mathematical remediation more efficient. With the right tools and careful verification, you can spend less time rebuilding equations and more time making course materials accessible to your students.


Responses