hi,
I am trying to add support for rendered documentation in reader mode for a custom language plugin I am working on, but it seems to me like the reader mode is rendering things differently compared to normal documentation rendering.
i have compared the HTML generated, and except for a small div tag with the definition as a link that i add to the documentation pop up the HTML is identical. my issue with the reader mode rendering is that images and text end up overlapping. This is not the case for the normal documentation display where images are scaled to fit.
Any suggestions on how to fix this?
Does the Reader mode using a different Stylesheet?
I would also like to utilize more of the screen if possible, is there any way to set the width for reader mode content?
i am running this in
IntelliJ IDEA 2024.3.3 (Ultimate Edition)
WIndows 10
Edit: after some debugging i found out that the inline doc rendering has ha hardcoded max width, so using more of the screen seems impossible.
com.intellij.codeInsight.documentation.render.DocRenderer#MAX_WIDTH (680)
Replacing the values while debugging shows that it can render wider docs just fine.
It does not solve the image and text over lapping issue though, so as far as i can the there is something different when rendering inline docs.