Should probably check if we loaded the toc extension in order
to make qurl fragments valid instead of looking for the toc
attribute.