diff --git a/functions.php b/functions.php index 395a041..8825324 100644 --- a/functions.php +++ b/functions.php @@ -821,7 +821,12 @@ function handle_pdf_download() $pdf->setTextColor(0); $pdf->Ln(10); $pdf->SetFont('helvetica', '', 12); + $content = apply_filters('the_content', $post->post_content); + + $mathjax_css = file_get_contents(get_template_directory() . '/assets/dist/css/mathjax.css'); + $content = "$content"; + $pdf->writeHTML($content); // Output PDF document