# frozen_string_literal: true require 'asciidoctor/foodogsquared/converters/html5-extended' describe Asciidoctor::Foodogsquared::Converters::HTML5Modified do it 'should have a more semantic paragraph output' do input = <<~INPUT Hello there, fanciful! INPUT expected = <<~HTML

Hello there, fanciful!

HTML actual = (Asciidoctor.convert input).chomp (expect actual).to eq expected.chomp end it 'should still have a more semantic paragraph output with a title' do input = <<~INPUT .Whoa there! Hello there, fanciful! INPUT expected = <<~HTML

Whoa there!Hello there, fanciful!

HTML actual = (Asciidoctor.convert input).chomp (expect actual).to eq expected.chomp end it 'should have a more semantic version of the admonitions' do input = <<~INPUT [WARNING] ==== Hello there ==== INPUT expected = <<~HTML HTML actual = (Asciidoctor.convert input).chomp (expect actual).to eq expected.chomp end it 'should have a more semantic version of the admonitions even with typical Asciidoc elements' do input = <<~INPUT [#warning-id.big.reversed] .A warning [WARNING] ==== Hello there ==== INPUT expected = <<~HTML HTML actual = (Asciidoctor.convert input).chomp (expect actual).to eq expected.chomp end it 'should have an audio block with multiple ' do input = <<~INPUT audio::hello.mp3[sources="hello.mp3,hello.webm"] INPUT expected = <<~HTML
HTML actual = (Asciidoctor.convert input).chomp (expect actual).to eq expected.chomp end it 'should have an audio block with multiple and a caption' do input = <<~INPUT .Making up stuff right now audio::./hello.mp3[sources="hello.mp3,hello.webm"] INPUT expected = <<~HTML
Making up stuff right now
HTML actual = (Asciidoctor.convert input).chomp (expect actual).to eq expected.chomp end it 'should have an audio element with a caption, ID, and classes' do input = <<~INPUT [#audio-sample.reverse] .Making up stuff right now audio::./hello.mp3[sources="hello.mp3,hello.webm"] INPUT expected = <<~HTML
Making up stuff right now
HTML actual = (Asciidoctor.convert input).chomp (expect actual).to eq expected.chomp end end