Skip to content

primer cannot render scientific and mathematical notations #88

Description

@sanam2405

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions