Following the update of Pandoc from v1.19 to 2.9, I find myself in need of making changes to some of my specifications.
In the past, the following assertion was valid:
expect(page).to have_css('.figure img[src="decorative-image"][alt=""])'
Now it fails because the HTML output no longer includes
<img alt=""></code>, but rather <code><img alt>
.
I am unsure how to adjust the CSS selector to target <img alt>
, without matching
<img alt=""></code> or <code><img alt="x">
.
Any guidance would be greatly appreciated.