diff --git a/functions.php b/functions.php index bc1c03a..2523e55 100644 --- a/functions.php +++ b/functions.php @@ -820,7 +820,8 @@ function handle_pdf_download() $pdf->setTextColor(0); $pdf->Ln(10); $pdf->SetFont('helvetica', '', 12); - $pdf->writeHTML(preprocess_mathjax_content($post->post_content)); + $content = apply_filters('the_content', $post->post_content); + $pdf->writeHTML(preprocess_mathjax_content($content)); // Output PDF document $pdf->Output(sanitize_title($post->post_title) . '.pdf', 'D');