Customize the markup of autocomplete items

I’m looking to do some advanced customization of the built-in autocomplete and I’m wondering if it’s possible or if I’ll need to write my own plugin. I have been looking through the docs to see if I could provide a custom element (sort of like the tooltips DOM function), but I haven’t been able to find anything like that for the autocomplete plugin.

I built a basic prototype in codepen of what I want to build into codemirror. Is this possible to build using the built in autocomplete? Or do I need to build my own plugin?

You might be able to use addToOptions to add additional element to the options and CSS to style the tooltip differently.