Skip to content

Commit 269e042

Browse files
committed
Merge commit '832d0679c4d1f7ecef1e74386f17b6e67a219b89'
2 parents b42467d + 832d067 commit 269e042

File tree

2 files changed

+30
-6
lines changed

2 files changed

+30
-6
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
html_favicon = "img/es-logo.ico"
139139

140140
mathjax_path="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
141-
mathjax_path = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"
141+
mathjax_path = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"
142142
suppress_warnings = ["myst.header","image.not_readable"]
143143

144144
#def setup(app):

docs/learning/notebooks/markdown_example.ipynb

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,23 @@
55
"id": "028448b2",
66
"metadata": {},
77
"source": [
8-
"# How to use Markdown in Jupyter notebook"
8+
"# How to use Markdown in Jupyter notebook\n",
9+
"<!-- code below is just to render mathjax on the doc-pages-->\n",
10+
"<script type=\"text/javascript\" id=\"MathJax-script\" async\n",
11+
" src=\"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js\">\n",
12+
"</script>\n",
13+
"<script type=\"text/x-mathjax-config\">\n",
14+
" MathJax.Hub.Config({\n",
15+
" tex2jax: {\n",
16+
" inlineMath: [ ['$','$'], [\"\\\\(\",\"\\\\)\"] ],\n",
17+
" processEscapes: true\n",
18+
" }\n",
19+
" });\n",
20+
"</script>\n",
21+
" \n",
22+
"<script type=\"text/javascript\"\n",
23+
" src=\"https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML\">\n",
24+
"</script>"
925
]
1026
},
1127
{
@@ -44,7 +60,9 @@
4460
"id": "1b122974",
4561
"metadata": {},
4662
"source": [
47-
"We herby define a function $f(x)$ the following way:\n",
63+
"## Equations:\n",
64+
"\n",
65+
"We herby define a function $f(x)$ `(in-line math is done by $f(x)$)`the following way:\n",
4866
"```md\n",
4967
"$$f(x)=\\frac{x-1}{x^2}$$\n",
5068
"```\n",
@@ -57,12 +75,12 @@
5775
"id": "c8b9bfac",
5876
"metadata": {},
5977
"source": [
60-
"Now let's define the integrted number concentration $N_{\\rm tot}$:\n",
78+
"Now let's define the integrted number concentration $N_{\\rm tot}$ `(in-line math is done by $N_{\\rm tot}$)`:\n",
6179
"```md\n",
6280
"$$N_{\\rm tot}=\\int_{D_{min}}^{D_{max}}\\frac{dN}{d\\log D} d\\log D \\quad\\quad\\quad(1)$$\n",
6381
"```\n",
6482
"\n",
65-
"$N_{\\rm tot}=\\int_{D_{min}}^{D_{max}}\\frac{dN}{d\\log D} d\\log D \\quad\\quad\\quad(1)$"
83+
"$$N_{\\rm tot}=\\int_{D_{min}}^{D_{max}}\\frac{dN}{d\\log D} d\\log D \\quad\\quad\\quad(1)$$"
6684
]
6785
},
6886
{
@@ -82,7 +100,13 @@
82100
"id": "9867454d",
83101
"metadata": {},
84102
"source": [
85-
"<img src=\"Zeppelin.jpg\" alt=\"Alt text that describes the graphic\" title=\"Title text\" />"
103+
"To add a local image:\n",
104+
"\n",
105+
"```md\n",
106+
"![Zeppelin](./Zeppelin.jpg) \n",
107+
"```\n",
108+
"![Zeppelin](../../../_build/_images/Zeppelin.jpg)\n",
109+
"\n"
86110
]
87111
},
88112
{

0 commit comments

Comments
 (0)