]> zackmdavis.net Git - An_Algorithmic_Lucidity.git/commitdiff
standard solution for MathJax and Markdown to not fight
authorZack M. Davis <code@zackmdavis.net>
Wed, 15 Jul 2026 00:24:31 +0000 (17:24 -0700)
committerZack M. Davis <code@zackmdavis.net>
Wed, 15 Jul 2026 00:24:31 +0000 (17:24 -0700)
pelicanconf.py
requirements.txt [new file with mode: 0644]
theme/templates/base.html

index f795fc29b3c926c4d5dbb321dfaae08dd1a194be..8f6d42431d9c61edb2c59ab486bc1708a5554402 100644 (file)
@@ -9,6 +9,8 @@ SITEURL = ''
 PATH = 'content'
 THEME = 'theme'
 
+PLUGINS = ['render_math']
+
 TIMEZONE = 'America/Los_Angeles'
 
 DEFAULT_LANG = 'en'
diff --git a/requirements.txt b/requirements.txt
new file mode 100644 (file)
index 0000000..685f053
--- /dev/null
@@ -0,0 +1,5 @@
+pelican==4.12.0
+markdown==3.10.2
+pelican-render-math==1.0.5
+pygments==2.19.2
+typogrify==2.1.0
index c0509338fd19dc231ccb66dd463e92d4fa7fc9f4..872e5206bc15678171109580b1aebdd6da983f5a 100644 (file)
     <link rel="alternate" type="application/atom+xml" title="{{ SITENAME }} Full Atom Feed" href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}">
     {% endif %}
     {% block extra_head %}{% endblock %}
-    <script>
-    MathJax = { tex: { inlineMath: [['\\(', '\\)']], displayMath: [['$$', '$$']] } };
-    </script>
-    <script defer src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
 </head>
 <body>
     <header>