require "spec_helper"
RSpec.describe IsoDoc do
it "processes section names" do
expect(IsoDoc::HtmlConvert.new({}).convert("test", <<~"INPUT", true)).to be_equivalent_to <<~"OUTPUT"
This is a preamble Text
This is a preamble
Text
There are no normative references in this document.
For the purposes of this document, the following terms and definitions apply.
ISO and IEC maintain terminological databases for use in standardization at the following addresses:
ISO Online browsing platform: available at http://www.iso.org/obp
IEC Electropedia: available at http://www.electropedia.org
3.1.1
Term2
Symbol
Symbol