MITB Banner

GitHub now offers math support in markdown

GitHub's math rendering capability uses MathJax; an open-source, JavaScript-based display engine.

Share

Listen to this story

Software hosting and version control platform GitHub now supports LaTeX formatted math within Markdown. For more information, see LaTeX/Mathematics in Wikibooks.

Support for displaying math expressions has been a highly requested feature. Now users can utilise the $ and $$ delimiters natively to insert math expressions in TeX and LaTeX style syntax.

GitHub’s math rendering capability uses MathJax; an open-source, JavaScript-based display engine. MathJax supports a wide range of LaTeX macros and several useful accessibility extensions.

To know more, see the MathJax documentation and the MathJax Accessibility Extensions Documentation.

How to add math expressions?

Users can add mathematical expressions in two ways:

  1. Inline expressions 

This sentence uses `$` delimiters to show math inline

Math expression: 3x-1 + (1+x)2

Code:  $\sqrt{3x-1}+(1+x)^2$

  1. Block expressions 

To add a math expression as a block, start a new line and delimit the expression with two dollar symbols $$.

Math expression:

Code:  $$\left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)$$

GitHub’s move has sparked a flurry of comments on social media. 

https://twitter.com/omarsar0/status/1527387562666500096

But not all are impressed.  “I have seen this feature in gitlab since a very long time ago. It’s always good to see progress, but it seems that github is years behind gitlab,” said Jordi Garra Tico, a Senior security engineer at METACO.

Meanwhile, Emad Elsaid, a software engineer at Twitter, said:

“Why is the syntax $$ instead of regular code blocks like “`mathml for example? the chosen format extends markdown syntax with a special syntax that won’t render properly in other markdown editors.”

Share
Picture of Kartik Wali

Kartik Wali

A writer by passion, Kartik strives to get a deep understanding of AI, Data analytics and its implementation on all walks of life. As a Senior Technology Journalist, Kartik looks forward to writing about the latest technological trends that transform the way of life!
Related Posts

CORPORATE TRAINING PROGRAMS ON GENERATIVE AI

Generative AI Skilling for Enterprises

Our customized corporate training program on Generative AI provides a unique opportunity to empower, retain, and advance your talent.

Upcoming Large format Conference

May 30 and 31, 2024 | 📍 Bangalore, India

Download the easiest way to
stay informed

Subscribe to The Belamy: Our Weekly Newsletter

Biggest AI stories, delivered to your inbox every week.

AI Courses & Careers

Become a Certified Generative AI Engineer

AI Forum for India

Our Discord Community for AI Ecosystem, In collaboration with NVIDIA. 

Flagship Events

Rising 2024 | DE&I in Tech Summit

April 4 and 5, 2024 | 📍 Hilton Convention Center, Manyata Tech Park, Bangalore

MachineCon GCC Summit 2024

June 28 2024 | 📍Bangalore, India

MachineCon USA 2024

26 July 2024 | 583 Park Avenue, New York

Cypher India 2024

September 25-27, 2024 | 📍Bangalore, India

Cypher USA 2024

Nov 21-22 2024 | 📍Santa Clara Convention Center, California, USA

Data Engineering Summit 2024

May 30 and 31, 2024 | 📍 Bangalore, India

Subscribe to Our Newsletter

The Belamy, our weekly Newsletter is a rage. Just enter your email below.