Rendering MathJax in printable form

Created on 23 August 2024, 4 months ago

Problem/Motivation

I've been struggling to find a way to create a printable version of pages that use MathJax in Drupal 10. Printjs solved my problem brilliantly. The only issue was that it tended to put a hashtag in front of equations, but I figured I would deal with that problem later.

Now, it does not put a hashtag before Mathjax equations, but it renders each equation twice (in slightly different fonts).

I thought I had found the code change that led to this performance change (lines13-19 changed to lines 13-35 in printjs.js in the change from version 1.0.8 to 1.0.9). However, reverting the code did not seem to revert the behavior.

My coding skills are minimal so it's not surprising that I can't figure this out.

This module really is amazing for rendering a clean version of a page with MathJax. Any idea of how to eliminate the double rendering?

Thank you in advance.
-edboost

πŸ’¬ Support request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States edboost

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024