Using knitr/rmarkdown I'm creating a document with sections. When viewed in the browser I can successfully navigate to a section (let's call it Section Name) by adding
#section-name to the end of the url.
But after publishing the document on Rpubs, adding
#section-nameto the end of the url for the published document no longer works. I've tried also specifying the anchor directly with html:
<a id="section"></a> and adding #section` to the end of the url, but that doesn't work either.
I know there are some finicky issues with urls in Rpubs (see Using external links in RPubs – RStudio Support).
Is this a known issue? Is there a workaround?