pages-themes / primer

Primer is a Jekyll theme for GitHub Pages

Home Page:https://pages-themes.github.io/primer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

primer cannot render scientific and mathematical notations

sanam2405 opened this issue · comments

The current version of jekyll-theme-primer cannot render scientific and mathematical notations properly.

Example 1 :

Markdown code:

Summarizing the results

$Mode$ $CO_{2} Emission$ ($CO_{2}$ $Eqv\ in\ Kg$) $Energy\ Consumed$ ($kWh$)
Train $6.25$ $15.35$
Compress $0.024$ $0.075$
Decompress $0.022$ $0.063$

The rendered output by primer:
Screenshot 2024-02-13 at 3 44 24 AM

Example 2:

Markdown code:

Note - Scaling factor was introduced simply because the numbers generated were small in magnitude and were difficult to plot. Hence, each values were scaled up by a factor of $10^6$. So, apart from the time axis, if a particular value on any axis is read as $V_{plot}$ from the plot, the value should be scaled down as : $$V_{actual} = V_{plot} * 10^{-6}$$

The rendered output by primer:
Screenshot 2024-02-13 at 3 45 50 AM

In particular, I have this repository's readme which is rendered properly by the GitHub markdown parser. However, the rendered GitHub page using the primer theme is erroneous.

My _config.yml file is as follows:

theme: jekyll-theme-primer