From 9cfb6c3ea70de51e22059c8ad313a054d7a1ea7e Mon Sep 17 00:00:00 2001 From: "Keith A. Lewis" Date: Wed, 29 Jun 2022 09:43:16 -0400 Subject: [PATCH] Multiple inline math expressions. --- .../writing-mathematical-expressions.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/get-started/writing-on-github/working-with-advanced-formatting/writing-mathematical-expressions.md b/content/get-started/writing-on-github/working-with-advanced-formatting/writing-mathematical-expressions.md index 443ac8052809..b0336ea1c8e6 100644 --- a/content/get-started/writing-on-github/working-with-advanced-formatting/writing-mathematical-expressions.md +++ b/content/get-started/writing-on-github/working-with-advanced-formatting/writing-mathematical-expressions.md @@ -18,6 +18,9 @@ To include a math expression inline with your text, delimit the expression with This sentence uses `$` delimiters to show math inline: $\sqrt{3x-1}+(1+x)^2$ ``` +Do not put more than one inline math expression in a line. We do a greedy match on each line to +get the matching `$`. One day we will figure out how to use https://perldoc.perl.org/perlre. Don't even think about writing an inline expression involing more than one line. + ![Inline math markdown rendering](/assets/images/help/writing/inline-math-markdown-rendering.png) ## Writing expressions as blocks