From fbb81f04d65e52ad01158d2a1d494e49cfc73f0a Mon Sep 17 00:00:00 2001 From: Frederick Giasson Date: Thu, 18 Dec 2014 13:33:48 -0500 Subject: [PATCH] Update documentation such that we make clear that the MathJax CDN can be the value of the :javascript key. That way, users don't have to download, install, deploy and carry arround MathJax. --- src/marginalia/html.clj | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/marginalia/html.clj b/src/marginalia/html.clj index 746bbd0..4275c5e 100644 --- a/src/marginalia/html.clj +++ b/src/marginalia/html.clj @@ -131,6 +131,15 @@ ;; to project.clj. Below is a simple example of both inline and block ;; formatted equations. ;; +;; Optionally, you can put the MathJax CDN URL directly as a value of `:javascript` +;; like this: +;; +;; :marginalia { +;; :javascript +;; ["http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"]} +;; +;; That way you won't have to download and carry around the MathJax library. +;; ;; When \\(a \ne 0\\), there are two solutions to \\(ax^2 + bx + c = 0\\) and they are ;; $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$