This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit bff1abe
1 parent b56427f commit bff1abe Copy full SHA for bff1abe
File tree 6 files changed +114
-0
lines changed
bootstrap-jinja/templates
bootstrap3-jinja/templates
6 files changed +114
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,23 @@ lang="{{ lang }}">
64
64
{{ social_buttons_code }}
65
65
<script>
66
66
renderMathInElement(document.body);
67
+ (function(){
68
+ $(".math").each(function() {
69
+ var texTxt = $(this).text();
70
+ el = $(this).get(0);
71
+ if(el.tagName == "DIV"){
72
+ addDisp = "\\displaystyle";
73
+ } else {
74
+ addDisp = "";
75
+ }
76
+ try {
77
+ katex.render(addDisp+texTxt, el);
78
+ }
79
+ catch(err) {
80
+ $(this).html("<span class='err'>"+err);
81
+ }
82
+ });
83
+ })();
67
84
</script>
68
85
{% endmacro %}
69
86
Original file line number Diff line number Diff line change @@ -64,6 +64,23 @@ lang="${lang}">
64
64
${social_buttons_code}
65
65
<script>
66
66
renderMathInElement(document.body);
67
+ (function(){
68
+ $(".math").each(function() {
69
+ var texTxt = $(this).text();
70
+ el = $(this).get(0);
71
+ if(el.tagName == "DIV"){
72
+ addDisp = "\\displaystyle";
73
+ } else {
74
+ addDisp = "";
75
+ }
76
+ try {
77
+ katex.render(addDisp+texTxt, el);
78
+ }
79
+ catch(err) {
80
+ $(this).html("<span class='err'>"+err);
81
+ }
82
+ });
83
+ })();
67
84
</script>
68
85
</%def>
69
86
Original file line number Diff line number Diff line change @@ -93,6 +93,26 @@ lang="{{ lang }}">
93
93
{{ social_buttons_code }}
94
94
<script>
95
95
renderMathInElement(document.body);
96
+ <script>
97
+ renderMathInElement(document.body);
98
+ (function(){
99
+ $(".math").each(function() {
100
+ var texTxt = $(this).text();
101
+ el = $(this).get(0);
102
+ if(el.tagName == "DIV"){
103
+ addDisp = "\\displaystyle";
104
+ } else {
105
+ addDisp = "";
106
+ }
107
+ try {
108
+ katex.render(addDisp+texTxt, el);
109
+ }
110
+ catch(err) {
111
+ $(this).html("<span class='err'>"+err);
112
+ }
113
+ });
114
+ })();
115
+ </script>
96
116
</script>
97
117
{% endmacro %}
98
118
Original file line number Diff line number Diff line change @@ -93,6 +93,26 @@ lang="${lang}">
93
93
${social_buttons_code}
94
94
<script>
95
95
renderMathInElement(document.body);
96
+ <script>
97
+ renderMathInElement(document.body);
98
+ (function(){
99
+ $(".math").each(function() {
100
+ var texTxt = $(this).text();
101
+ el = $(this).get(0);
102
+ if(el.tagName == "DIV"){
103
+ addDisp = "\\displaystyle";
104
+ } else {
105
+ addDisp = "";
106
+ }
107
+ try {
108
+ katex.render(addDisp+texTxt, el);
109
+ }
110
+ catch(err) {
111
+ $(this).html("<span class='err'>"+err);
112
+ }
113
+ });
114
+ })();
115
+ </script>
96
116
</script>
97
117
</%def>
98
118
Original file line number Diff line number Diff line change @@ -92,6 +92,26 @@ lang="{{ lang }}">
92
92
{{ social_buttons_code }}
93
93
<script>
94
94
renderMathInElement(document.body);
95
+ <script>
96
+ renderMathInElement(document.body);
97
+ (function(){
98
+ $(".math").each(function() {
99
+ var texTxt = $(this).text();
100
+ el = $(this).get(0);
101
+ if(el.tagName == "DIV"){
102
+ addDisp = "\\displaystyle";
103
+ } else {
104
+ addDisp = "";
105
+ }
106
+ try {
107
+ katex.render(addDisp+texTxt, el);
108
+ }
109
+ catch(err) {
110
+ $(this).html("<span class='err'>"+err);
111
+ }
112
+ });
113
+ })();
114
+ </script>
95
115
</script>
96
116
{% endmacro %}
97
117
Original file line number Diff line number Diff line change @@ -92,6 +92,26 @@ lang="${lang}">
92
92
${social_buttons_code}
93
93
<script>
94
94
renderMathInElement(document.body);
95
+ <script>
96
+ renderMathInElement(document.body);
97
+ (function(){
98
+ $(".math").each(function() {
99
+ var texTxt = $(this).text();
100
+ el = $(this).get(0);
101
+ if(el.tagName == "DIV"){
102
+ addDisp = "\\displaystyle";
103
+ } else {
104
+ addDisp = "";
105
+ }
106
+ try {
107
+ katex.render(addDisp+texTxt, el);
108
+ }
109
+ catch(err) {
110
+ $(this).html("<span class='err'>"+err);
111
+ }
112
+ });
113
+ })();
114
+ </script>
95
115
</script>
96
116
</%def>
97
117
You can’t perform that action at this time.
0 commit comments