compose icon indicating copy to clipboard operation
compose copied to clipboard

[Bug] Page content breaks toggle mode

Open chipzoller opened this issue 2 years ago • 1 comments

I have checked all the prerequisites below and I'm yet experiencing a problem

  • [x] Read the README.md
  • [x] Have the extended version of Hugo installed
  • [x] Used the exampleSite's config.toml as a reference

Describe the bug On this page, you can toggle the light/dark mode and navigate around with that mode staying in effect. But upon navigating to Equinix Metal page under the "Usage" category, something in the JS breaks and the page is forced into dark mode (if it was previously in light). The toggle button flips and can't be clicked. So it "broke" somehow.

Desktop (please complete the following information):

  • OS: Mac 10.14.6
  • Browser: Firefox 93

chipzoller avatar Nov 25 '21 02:11 chipzoller

I tracked down the cause and it was due to there being a Markdown heading (third level in this case) which was hyperlinked.

### Expose with [Equinix Metal CCM](https://github.com/equinix/cloud-provider-equinix-metal)

Removing this hyperlink solved the problem. Compose needs to be able to deal with these and allow them if present.

chipzoller avatar Nov 28 '21 23:11 chipzoller