I had a sandbox version of a text to work in and recently imported each chapter from the sandbox into the final book that will be published using the Import from Pressbooks Webbook URL option. Almost everything carried over fine, except for the anchors.
In the sandbox, when I have an anchor tag of <a id="fig_1">
, I can link to that anchor with <a href="#fig_1">
. When I preview the chapter, the link jumps to the anchor and the source code in the page shows the correct ID information for the anchor. However, in the imported chapters, the code still has the correct anchor tag in the editing view, but when I preview and look at the source, the anchor tag is now empty, all of the anchors are just <a>
and of course the internal link doesn’t work since there’s suddenly no ID to point to.
I’ve looked through all of the settings I can find, and for everything that I can edit, the settings are the same for the two books. What am I missing? How is the anchor tag present in the editor but missing from the published book page?