xref on image should support page ID with fragment identifier
Currently, the xref attribute image only supports a page ID if it has no fragment identifier (aka hash). It should also support the case that the page ID includes a fragment identifier.
The fix is the change refSpec.endsWith('.adoc')
to ~refSpec.indexOf('.adoc')
. The presence of .adoc
should be what triggers it being interpreted as a page ID.