php /* Plugin Name: LaTeX Shortcode Description: A simple shortcode to display LaTeX formatted math expressions. Version: 1.0 Author: Your Name */ function latex_shortcode($atts, $content = null) { // Enqueue MathJax for rendering LaTeX wp_enqueue_script('mathjax', 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS_HTML', array(), null, true); // Check if the content is for block math if (strpos($content, '\$\$') !== false) {return '