C2DH / journal-of-digital-history

frontend app for our Digital Journal
GNU General Public License v3.0
20 stars 4 forks source link

Be able to mix markdown and markdown latex in the same cell #540

Open eliselavy opened 1 year ago

eliselavy commented 1 year ago

Syntax from here

Screenshot 2023-04-18 at 17 43 48

Example raw code:

from here: https://ashki23.github.io/markdown-latex.html

{
   "cell_type": "markdown",
   "id": "a3daea41",
   "metadata": {
    "ExecuteTime": {
     "end_time": "2023-04-18T16:34:53.996173Z",
     "start_time": "2023-04-18T16:34:53.990746Z"
    }
   },
   "source": [
    "$$B(\\alpha,\\beta) = \\dfrac{\\Gamma(\\alpha)\\Gamma(\\beta)}{\\Gamma(\\alpha + \\beta)}$$"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "fa3de634",
   "metadata": {},
   "source": [
    "and"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "055dae78",
   "metadata": {
    "ExecuteTime": {
     "end_time": "2023-04-18T15:55:21.167087Z",
     "start_time": "2023-04-18T15:55:21.160818Z"
    },
    "execution": {
     "iopub.execute_input": "2023-04-18T15:10:06.645146Z",
     "iopub.status.busy": "2023-04-18T15:10:06.644242Z",
     "iopub.status.idle": "2023-04-18T15:10:06.648609Z",
     "shell.execute_reply": "2023-04-18T15:10:06.649229Z"
    }
   },
   "source": [
    "$$\\Gamma$$"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "a5957eab",
   "metadata": {},
   "source": [
    "is the Gamma function."
   ]
  },
eliselavy commented 1 year ago

@biumiamy can be added in the guideline to use Markdown Latex for the formula in order to use image. https://ashki23.github.io/markdown-latex.html

Ex here NOT GOOD PRACTICE

Screenshot 2023-04-18 at 17 31 30

GOOD PRACTICE

Screenshot 2023-04-18 at 17 31 38