Avoid using a non-greedy match and just avoid $ in {{< latex >}}
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
parent
5ab0d0d40e
commit
40007c427e
|
@ -147,9 +147,9 @@ the lattice, we have \(\bot \le b\).
|
||||||
|
|
||||||
{{< latex >}}
|
{{< latex >}}
|
||||||
\begin{array}{ccccccccr}
|
\begin{array}{ccccccccr}
|
||||||
& & \bot & \le & & & b \quad \implies & \text{(monotonicity of $f$)}\\
|
& & \bot & \le & & & b \quad \implies & \text{(monotonicity of}\ f \text{)}\\
|
||||||
& & f(\bot) & \le & f(b) & = & b \quad \implies & \text{($b$ is a fixed point, monotonicity of $f$)}\\
|
& & f(\bot) & \le & f(b) & = & b \quad \implies & \text{(} b\ \text{is a fixed point, monotonicity of}\ f \text{)}\\
|
||||||
& & f^2(\bot) & \le & f(b) & = & b \quad \implies & \text{($b$ is a fixed point, monotonicity of $f$)}\\
|
& & f^2(\bot) & \le & f(b) & = & b \quad \implies & \text{(} b\ \text{is a fixed point, monotonicity of}\ f \text{)}\\
|
||||||
\\
|
\\
|
||||||
& & \vdots & & \vdots & & \vdots & \\
|
& & \vdots & & \vdots & & \vdots & \\
|
||||||
\\
|
\\
|
||||||
|
|
|
@ -28,7 +28,7 @@ class KatexRenderer
|
||||||
rendered = content.gsub /\\\(((?:[^\\]|\\[^\)])*)\\\)/ do |match|
|
rendered = content.gsub /\\\(((?:[^\\]|\\[^\)])*)\\\)/ do |match|
|
||||||
render(false, $~[1])
|
render(false, $~[1])
|
||||||
end
|
end
|
||||||
rendered = rendered.gsub /\$\$(.*?)\$\$/ do |match|
|
rendered = rendered.gsub /\$\$((?:[^\$]|$[^\$])*)\$\$/ do |match|
|
||||||
render(true, $~[1])
|
render(true, $~[1])
|
||||||
end
|
end
|
||||||
return rendered
|
return rendered
|
||||||
|
|
Loading…
Reference in New Issue
Block a user