pandoc-crossref 0.2.4.1
Closes #7226. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
b1def9882c
commit
bb45f13e3f
1 changed files with 3 additions and 4 deletions
|
@ -5,9 +5,8 @@ class PandocCrossref < Formula
|
|||
|
||||
desc "Pandoc filter for numbering and cross-referencing."
|
||||
homepage "https://github.com/lierdakil/pandoc-crossref"
|
||||
url "https://hackage.haskell.org/package/pandoc-crossref-0.2.3.0/pandoc-crossref-0.2.3.0.tar.gz"
|
||||
sha256 "b6b4200023da4835cf50a2c9a247a837282ccf16e1684336b5a15d17b9ad085e"
|
||||
revision 1
|
||||
url "https://hackage.haskell.org/package/pandoc-crossref-0.2.4.1/pandoc-crossref-0.2.4.1.tar.gz"
|
||||
sha256 "2aa2266ac3916677c18bd9a88b99f32622c22c983abaed3598020913ca3912ed"
|
||||
|
||||
bottle do
|
||||
cellar :any_skip_relocation
|
||||
|
@ -37,7 +36,7 @@ class PandocCrossref < Formula
|
|||
EOS
|
||||
(testpath/"expected.txt").write <<-EOS.undent
|
||||
<p>Demo for pandoc-crossref. See equation eq.M-BM- 1 for cross-referencing. Display equations are labelled and numbered</p>$
|
||||
<p><br /><span class="math display"><em>P</em><sub><em>i</em></sub>(<em>x</em>)=<em>u</em><em>m</em><sub><em>i</em></sub><em>a</em><sub><em>i</em></sub><em>x</em><sup><em>i</em></sup>M-bM-^@M-^AM-bM-^@M-^A(1)</span><br /></p>$
|
||||
<p><span id="eq:eqn1"><br /><span class="math display"><em>P</em><sub><em>i</em></sub>(<em>x</em>)=<em>u</em><em>m</em><sub><em>i</em></sub><em>a</em><sub><em>i</em></sub><em>x</em><sup><em>i</em></sup>M-bM-^@M-^AM-bM-^@M-^A(1)</span><br /></span></p>$
|
||||
EOS
|
||||
system Formula["pandoc"].bin/"pandoc", "-F", bin/"pandoc-crossref", "-o", "out.html", "hello.md"
|
||||
assert_equal File.read("expected.txt"), pipe_output("/bin/cat -et", File.read("out.html"))
|
||||
|
|
Loading…
Reference in a new issue