shiny.ui.accordion_panel checks if the title parameter is an instance of str. It used to work with express.ui.HTML type input parameters, like ui.markdown. express.ui.HTML inherits from htmltools dependency. htmltools has undergone a change from version 0.6.0 wherein the HTML type no longer inherits from str. This breaks the isinstance(title, str) check that happens in the shiny.ui.accordion_panel.
With htmltools v0.5.3:

With htmltools v0.6.0:
