require "spec_helper"
RSpec.describe IsoDoc do
it "cases xrefs" do
expect(xmlpp(IsoDoc::PresentationXMLConvert.new({i18nyaml: "spec/assets/i18n.yaml"}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
This is and .
This is and .
is clause initial.
is too.
is also.
INPUT
1.
2.
This is
klaŭzo 1
and
Tabelo 1
. This is
Klaŭzo 1
and
tabelo 1
.
Klaŭzo 1
is clause
initial.
Klaŭzo 1
is too.
Klaŭzo 1
is also.
OUTPUT
end
it "processes inline formatting" do
expect(xmlpp(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true))).to be_equivalent_to xmlpp(<<~"OUTPUT")
A B C D E
F G I
INPUT
#{HTML_HDR}