{"id":95567,"date":"2018-12-13T10:42:34","date_gmt":"2018-12-13T10:42:34","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/katex\/"},"modified":"2025-07-21T11:07:14","modified_gmt":"2025-07-21T11:07:14","slug":"katex","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/katex\/","author":14462432,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.2.5","stable_tag":"2.2.5","tested":"6.8.5","requires":"5.0","requires_php":"5.3","requires_plugins":null,"header_name":"KaTeX","header_author":"Tom Churchman","header_description":"Use the fastest math typesetting library on your website.","assets_banners_color":"cccccc","last_updated":"2025-07-21 11:07:14","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/katex","header_author_uri":"https:\/\/churchman.nl","rating":5,"author_block_rating":0,"active_installs":2000,"downloads":40009,"num_ratings":16,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"Beskhue","date":"2018-12-13 10:44:17"},"1.0.1":{"tag":"1.0.1","author":"Beskhue","date":"2019-02-22 09:55:21"},"1.0.2":{"tag":"1.0.2","author":"Beskhue","date":"2019-02-22 10:51:29"},"1.0.3":{"tag":"1.0.3","author":"Beskhue","date":"2019-05-28 10:52:48"},"1.0.4":{"tag":"1.0.4","author":"Beskhue","date":"2019-05-28 10:38:36"},"1.0.5":{"tag":"1.0.5","author":"Beskhue","date":"2019-05-28 11:59:34"},"2.0.0":{"tag":"2.0.0","author":"Beskhue","date":"2020-04-02 12:07:22"},"2.0.1":{"tag":"2.0.1","author":"Beskhue","date":"2020-04-10 13:33:18"},"2.0.2":{"tag":"2.0.2","author":"Beskhue","date":"2020-04-16 13:02:54"},"2.1.0":{"tag":"2.1.0","author":"Beskhue","date":"2020-11-14 09:41:39"},"2.1.1":{"tag":"2.1.1","author":"Beskhue","date":"2020-11-14 09:45:49"},"2.1.2":{"tag":"2.1.2","author":"Beskhue","date":"2021-03-17 12:00:45"},"2.2.0":{"tag":"2.2.0","author":"Beskhue","date":"2021-08-17 15:56:36"},"2.2.1":{"tag":"2.2.1","author":"Beskhue","date":"2021-08-18 16:07:37"},"2.2.2":{"tag":"2.2.2","author":"Beskhue","date":"2021-09-11 17:57:26"},"2.2.3":{"tag":"2.2.3","author":"Beskhue","date":"2023-03-14 15:21:38"},"2.2.4":{"tag":"2.2.4","author":"Beskhue","date":"2025-07-16 15:00:47"},"2.2.5":{"tag":"2.2.5","author":"Beskhue","date":"2025-07-21 11:07:14"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":16},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1993573,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":1993573,"resolution":"256x256","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":1993573,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":1993573,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":1993573,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":{"katex\/display-block":{"name":"katex\/display-block","title":"KaTeX"}},"tagged_versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","2.0.0","2.0.1","2.0.2","2.1.0","2.1.1","2.1.2","2.2.0","2.2.1","2.2.2","2.2.3","2.2.4","2.2.5"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":1993573,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":1993573,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"Preview your TeX right inside the editor.","2":"TeX is rendered inside your visitors' browsers."},"jetpack_post_was_ever_published":false},"plugin_section":[163309],"plugin_tags":[69482,6566,10503,39756,6567],"plugin_category":[],"plugin_contributors":[245005],"plugin_business_model":[],"class_list":["post-95567","plugin","type-plugin","status-publish","hentry","plugin_section-blocks","plugin_tags-katex","plugin_tags-latex","plugin_tags-math","plugin_tags-mathjax","plugin_tags-tex","plugin_contributors-beskhue","plugin_committers-beskhue"],"banners":{"banner":"https:\/\/ps.w.org\/katex\/assets\/banner-772x250.png?rev=1993573","banner_2x":"https:\/\/ps.w.org\/katex\/assets\/banner-1544x500.png?rev=1993573","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/katex\/assets\/icon.svg?rev=1993573","icon":"https:\/\/ps.w.org\/katex\/assets\/icon.svg?rev=1993573","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/katex\/assets\/screenshot-1.png?rev=1993573","caption":"Preview your TeX right inside the editor."},{"src":"https:\/\/ps.w.org\/katex\/assets\/screenshot-2.png?rev=1993573","caption":"TeX is rendered inside your visitors' browsers."}],"raw_content":"<!--section=description-->\n<p>The KaTeX WordPress plugin enables you to use the fastest <a href=\"https:\/\/github.com\/Khan\/KaTeX\">TeX math typesetting engine<\/a> on your WordPress website. You can include TeX inside a <code>[katex]...[\/katex]<\/code> shortcode or in a Gutenberg block. Either way the math will render beautifully on your website. When using Gutenberg blocks, the equations will render immediately inside your editor!<\/p>\n\n<p>Equations in blocks or using the <code>[katex display=true]...[\/katex]<\/code> shortcode will render on page in display mode--with bigger symbols--centered on their own line.<\/p>\n\n<p>For compatibility with other LaTeX plugins, this plugin optionally supports <code>[latex]...[\/latex]<\/code> shortcodes.<\/p>\n\n<p><a href=\"https:\/\/wordpress.org\/plugins\/katex\">Plugin Website<\/a><\/p>\n\n<h3>Assets<\/h3>\n\n<p>This plugin includes minified assets provided by the KaTeX project.\nThe source code is available in <a href=\"https:\/\/github.com\/KaTeX\/KaTeX\/tree\/v0.16.22\">the KaTeX git repository on GitHub<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>katex<\/code> folder to your <code>\/wp-content\/plugins\/<\/code> directory or automatically download and install the plugin through WordPress's plugin manager;<\/li>\n<li>Activate the plugin in WordPress; and<\/li>\n<li>Use the <code>[latex]<\/code> shortcode or KaTeX Gutenberg blocks in your posts and pages.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='can%20i%20move%20from%20latex%20plugin%20x%20to%20this%20plugin%3F'><h3>Can I move from LaTeX plugin X to this plugin?<\/h3><\/dt>\n<dd><p>You should be able to replace any other LaTeX plugin using <code>[latex]<\/code> shortcodes without having to make changes to existing posts. Other plugins might handle display-mode latex other than <code>[latex display=true]...[\/latex]<\/code>, in which case old posts unfortunately have to be changed.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.2.5<\/h4>\n\n<ul>\n<li>As per WordPress's guidelines, remove the ability to fetch KaTeX resources through jsDelivr's CDN.<\/li>\n<li>Various internal improvements based on <a href=\"https:\/\/wordpress.org\/plugins\/plugin-check\/\">WordPress's Plugin Check<\/a>.<\/li>\n<\/ul>\n\n<h4>2.2.4<\/h4>\n\n<ul>\n<li>Upgrade KaTeX resources to v0.16.22.<\/li>\n<\/ul>\n\n<h4>2.2.3<\/h4>\n\n<ul>\n<li>More robustly render shortcodes (even more robustly than 2.2.2).<\/li>\n<\/ul>\n\n<h4>2.2.2<\/h4>\n\n<ul>\n<li>More robustly render shortcodes.<\/li>\n<li>Fix undefined variable notice.<\/li>\n<\/ul>\n\n<h4>2.2.1<\/h4>\n\n<ul>\n<li>Trigger rendering of KaTeX in more cases when the DOM is mutated (in 2.2.0, accidentally only a limited set of cases was checked).<\/li>\n<\/ul>\n\n<h4>2.2.0<\/h4>\n\n<ul>\n<li>Trigger rendering of KaTeX when the DOM is mutated by inserting a <code>.katex-eq<\/code> node. This allows rendering KaTeX markup that is not present when the page is loaded.<\/li>\n<li>Upgrade KaTeX resources to v0.13.13.<\/li>\n<\/ul>\n\n<h4>2.1.2<\/h4>\n\n<ul>\n<li>Always load JavaScript and CSS assets by default. An option is introduced to switch to the old behavior of loading only when KaTeX is used on the page.<\/li>\n<li>Make it easier for other code to manually trigger rendering of KaTeX.<\/li>\n<li>Upgrade KaTeX resources to v0.13.0.<\/li>\n<\/ul>\n\n<h4>2.1.1<\/h4>\n\n<ul>\n<li>Remove <code>&lt;br&gt;<\/code> tags added by WordPress to shortcode output.<\/li>\n<\/ul>\n\n<h4>2.1.0<\/h4>\n\n<ul>\n<li>Prevent WordPress from texturizing KaTeX (prior to this change, WordPress would sometimes change e.g. apostrophes to quotation marks).<\/li>\n<li>Fix issue where custom class names on the KaTeX block sometimes broke editor rendering.<\/li>\n<li>Add some keywords to allow searching for the KaTeX block in the editor's block list.<\/li>\n<li>Update KaTeX resources to v0.12.0.<\/li>\n<\/ul>\n\n<h4>2.0.2<\/h4>\n\n<ul>\n<li>Fix block editor variable scoping.<\/li>\n<\/ul>\n\n<h4>2.0.1<\/h4>\n\n<ul>\n<li>Upgrade KaTeX resources to v0.11.1.<\/li>\n<\/ul>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Support adding CSS classes to KaTeX Gutenberg Blocks to help with styling. Backwards compatibility note: KaTeX Gutenberg Blocks are now rendered wrapped in a <code>div<\/code> element on which classes <code>wp-block-katex-display-block<\/code> and <code>katex-eq<\/code> are set. You can add more classes to this <code>div<\/code> through WordPress's post editor. Previously, KaTeX Gutenberg Blocks were rendered wrapped in an unclassed <code>span<\/code>. KaTeX shortcodes are still wrapped inside a <code>span<\/code> with only the class <code>katex-eq<\/code> set. If you depend on old behavior for styling, you might need to update your styling rules.<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Fix 1.0.4 release issue: KaTeX resources were not committed correctly.<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Upgrade KaTeX resources to v0.10.2.<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Fix warnings related to plugin options that occurred on PHP 5.<\/li>\n<li>Clean up the plugin's options on plugin deletion.<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Upgrade KaTeX resources to v0.10.1.<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fix issue where KaTeX resources would not be loaded on the admin pages.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Use the fastest math typesetting library on your website.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/95567","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=95567"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/beskhue"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=95567"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=95567"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=95567"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=95567"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=95567"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=95567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}