question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Usage of math expressions in Markdown text is quite common. I’ve found this PR chjj/marked#180 in marked which brings this feature. Main issue with current implementation occurs in cases like this:

$ A_{i} + B_{i} $

That inner part of $s must not be rendered as a normal piece of Markdown text. Actually, mentioned PR is not merged yet but I think supporting this expressions only needs exclusion of $s content. For example, output of this simple case:

$ A_{i} $

Is completely compatible with MathJax which renders that as its equivalent expression.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nourniacommented, Apr 27, 2014

Using $ for inline expressions and $$ for expression blocks, is quite conventional. Because, these symbols are supported in LaTeX writing. There is a discussion about those symbols in mentioned PR.

In that PR, math expressions are treated as first class ones which use their special renderer. I think this is the correct way of math expression support, and I want it to be merged. But I think introducing a simple option for preventing lexer from analyzing inner text of $ and $$ symbols, would do.

0reactions
martinosorbcommented, Feb 23, 2021

I believe this issue is again there in mistune v2. Is there a way to avoid parsing markdown within $ and $$ equation blocks?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Math Expressions | Pre-K-6 Common Core Math Curriculum
Math Expressions is a proven HMH Pre-K–6 common core curriculum that helps make sense of math by exploring and demonstrating understanding of key......
Read more >
Expressions in Math - Definition, Types, Examples
Expressions in math are mathematical statements that have a minimum of two terms containing numbers or variables, or both, connected by an operator...
Read more >
Expression in Maths – Definition with Examples - SplashLearn
An algebraic expression consists of unknown variables, numbers and arithmetic operators. It does not contain any equality or inequality symbols. Examples:.
Read more >
Houghton Mifflin Harcourt: Math Expressions - Amazon.com
Math Expressions is rooted in inquiry-based instruction emphasizing concepts, fluency, and understanding through activities and discovery.
Read more >
MATH EXPRESSions on Steam
About This Game. Can you guess the Math Expression in 6 tries? After each try you get notified if the digit is correct,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found