This repository has been archived by the owner on Jan 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from distler/master
Fix Uninitialized eq2eqid Hash
- Loading branch information
Showing
4 changed files
with
65 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Fixes Uninitialized eq2eqid hash | ||
*** Parameters: *** | ||
require 'maruku/ext/math';{:html_math_engine => 'itex2mml'} | ||
*** Markdown input: *** | ||
This is an unresolved equation reference (eq:xyz). | ||
|
||
*** Output of inspect *** | ||
md_el(:document, md_par([ | ||
"This is an unresolved equation reference ", | ||
md_el(:eqref, [], {:eqid=>"xyz"}), | ||
"." | ||
])) | ||
*** Output of to_html *** | ||
<p>This is an unresolved equation reference (eq:xyz).</p> | ||
|
||
*** Output of to_latex *** | ||
This is an unresolved equation reference \eqref{xyz}. | ||
*** Output of to_md *** | ||
|
||
*** Output of to_s *** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Fixes Uninitialized eq2eqid hash | ||
*** Parameters: *** | ||
require 'maruku/ext/math';{:html_math_engine => 'itex2mml'} | ||
*** Markdown input: *** | ||
Here is an equation | ||
\[\label{xxx} | ||
\sin(\theta) | ||
\] | ||
Here we refer back to it (eq:xxx). Or \eqref{xxx}. | ||
*** Output of inspect *** | ||
md_el(:document, [ | ||
md_par("Here is an equation"), | ||
md_el(:equation, [], {:math=>"\n\\sin(\\theta)\n\n", :label=>"xxx", :num=>1}), | ||
md_par([ | ||
"Here we refer back to it ", | ||
md_el(:eqref, [], {:eqid=>"xxx"}), | ||
". Or ", | ||
md_el(:eqref, [], {:eqid=>"xxx"}), | ||
"." | ||
]) | ||
]) | ||
*** Output of to_html *** | ||
<p>Here is an equation</p> | ||
<div class='maruku-equation' id='eq:xxx'><span class='maruku-eq-number'>(1)</span><math class='maruku-mathml' display='block' xmlns='http://www.w3.org/1998/Math/MathML'><semantics><mrow><mi>sin</mi><mo stretchy='false'>(</mo><mi>θ</mi><mo stretchy='false'>)</mo></mrow><annotation encoding='application/x-tex'> | ||
\sin(\theta) | ||
|
||
</annotation></semantics></math></div> | ||
<p>Here we refer back to it <a class='maruku-eqref' href='#eq:xxx'>(1)</a>. Or <a class='maruku-eqref' href='#eq:xxx'>(1)</a>.</p> | ||
|
||
*** Output of to_latex *** | ||
Here is an equation | ||
|
||
\begin{equation} | ||
\sin(\theta) | ||
\label{xxx}\end{equation} | ||
Here we refer back to it \eqref{xxx}. Or \eqref{xxx}. | ||
*** Output of to_md *** | ||
|
||
*** Output of to_s *** | ||
|