Summary
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
TeX: {
Macros: {
endow: ["{\\require{enclose} {{#1}:\\enclose{actuarial}{#2}}}", 2],
endowxn: ["{\\require{enclose} {x:\\enclose{actuarial}{n}}}"],
pureendow: ["{\\require{enclose} {{#1}:\\overset{1}{\\enclose{actuarial}{#2}}}}", 2],
pureendowxn: ["{\\require{enclose} {x:\\overset{1}{\\enclose{actuarial}{n}}}}"],
term : ["{\\require{enclose} {\\overset{1}{#1}:\\enclose{actuarial}{#2}}}", 2],
termxn : ["{\\require{enclose} {\\overset{1}{x}:\\enclose{actuarial}{n}}}"],
angl: ["{\\require{enclose} \\enclose{actuarial}{#1}}", 1],
angln: ["{\\require{enclose} \\enclose{actuarial}{n}}"],
nthtop : ["\\overset{#1}{#2}", 2],
joint : ["\\overline{#1}", 1],
itop : ["\\overset{1}{#1}", 1],
iitop : ["\\overset{2}{#1}", 1],
iiitop : ["\\overset{3}{#1}", 1],
ibottom : ["\\underset{1}{#1}", 1],
iibottom : ["\\underset{2}{#1}", 1],
iiibottom : ["\\underset{3}{#1}", 1],
Ax: [ "{A^{#1}_{#2}}", 2, ""],
bAx: [ "{\\bar{A}^{#1}_{#2}}", 2, ""],
dAx: [ "{{\\ddot A}^{#1}_{#2}}", 2, ""],
tAx: [ "{{\\tilde A}^{#1}_{#2}}", 2, ""],
ax: [ "{a^{#1}_{#2}}", 2, ""],
bax: [ "{\\bar{a}^{#1}_{#2}}", 2, ""],
dax: [ "{\\ddot{a}^{#1}_{#2}}", 2, ""],
tax: [ "{\\tilde{a}^{#1}_{#2}}", 2, ""],
Aringx: [ "{\\mathring{A}^{#1}_{#2}}", 2, ""],
aringx: [ "{\\mathring{a}^{#1}_{#2}}", 2, ""],
Eringx: [ "{\\mathring{E}^{#1}_{#2}}", 2, ""],
eringx: [ "{\\mathring{e}^{#1}_{#2}}", 2, ""],
Sringx: [ "{\\mathring{S}^{#1}_{#2}}", 2, ""],
sringx: [ "{\\mathring{s}^{#1}_{#2}}", 2, ""],
dx : [ "{d^{#1}_{#2}}", 2, ""],
Dx : ["{\\mathscr{D}^{#1}_{#2}}", 2, ""],
IA : [ "(IA)"],
IbA : [ "(I\\bar A)"],
bIbA : [ "(\\bar I\\bar A)"],
ImA : [ "(I^{(m)}A)"],
ImbA : [ "(I^{(m)}\\bar A)"],
bImbA : [ "(\\bar I^{(m)}\\bar A)"],
Is : [ "(Is)"],
Ibs : [ "(I \\bar s)"],
Ids : [ "(I \\ddot s)"],
Ex : ["{E^{#1}_{#2}}", 2, ""],
DA : [ "(DA)"],
DbA : [ "(D\\bar A)"],
bDbA : [ "(\\bar D\\bar A)"],
DmA : [ "(D^{(m)}A)"],
DmbA : [ "(D^{(m)}\\bar A)"],
bDmbA : [ "(\\bar D^{(m)}\\bar A)"],
Ds : [ "(Ds)"],
Dbs : [ "(D \\bar s)"],
Dds : [ "(D \\ddot s)"],
lx : [ "{\\ell^{#1}_{#2}}", 2, ""],
Lx : ["{\\mathscr{L}^{#1}_{#2}}", 2, ""],
px : [ "{p^{#1}_{#2}}", 2, ""],
Px : [ "{P^{#1}_{#2}}", 2, ""],
premium : [ "{P^{#1}\ \\left({#2}\\right)}", 2, ""],
bpremium : [ "{\\bar{P}^{#1}\\left({#2}\\right)}", 2, ""],
tpremium : [ "{\\tilde{P}^{#1}\\left({#2}\\right)}", 2, ""],
paidup : [ "{W^{#1}\ \\left({#2}\\right)}", 2, ""],
bpaidup : [ "{\\bar{W}^{#1}\\left({#2}\\right)}", 2, ""],
tpaidup : [ "{\\tilde{W}^{#1}\\left({#2}\\right)}", 2, ""],
reserve : [ "{V^{#1}\ \\left({#2}\\right)}", 2, ""],
breserve : [ "{\\bar{V}^{#1}\\left({#2}\\right)}", 2, ""],
treserve : [ "{\\tilde{V}^{#1}\\left({#2}\\right)}", 2, ""],
qx : [ "{q^{#1}_{#2}}", 2, ""],
Qx : [ "{Q^{#1}_{#2}}", 2, ""],
sx: [ "{s^{#1}_{#2}}", 2, ""],
bsx: [ "{\\bar{s}^{#1}_{#2}}", 2, ""],
dsx: [ "{\\ddot{s}^{#1}_{#2}}", 2, ""],
Vx : [ "{V^{#1}_{#2}}", 2, ""],
Wx : [ "{W^{#1}_{#2}}", 2, ""],
actsymb : ["{_{#1}^{#2}{#3}_{#4}^{#5}}", 5]
}
}
});
</script>
which you could copy paste in your layout next to the inclusion of the mathjax lib.
Note that it’s just a set of definitions as far as I can see; all of the base definitions would work just fine in KaTeX (maybe with the exception of the enclose stuff, not sure) so you could also define these commands in Franklin and use KaTeX and benefit from the faster rendering. E.g. putting in your config.md: