Open niosus opened 10 months ago
Look at new branch https://github.com/JakubAndrysek/MkDoxy/tree/details-tag
Thanks for doing this! I did try it already with the indent level but it still does not work for me. Does it work also with the class for you?
In my example, I am getting the code blocks rendered correctly but all the rest of the markdown is not rendered within the details tag:
<details>
<summary>MyClass</summary>
::: doxy.lidar.Class
name: MyClass
indent_level: 4
</details>
The result looks something like this.
Do you have any further ideas on what I might be missing here?
Ooooh, I found it. Maybe you'd like to also include it in the example that you provided in the branch that you linked above. I need to add the markdown
attribute to the details tag like so:
<details markdown>
<summary>MyClass</summary>
::: doxy.lidar.Class
name: MyClass
indent_level: 4
</details>
This renders correctly for me.
I will keep this issue open for now for visibility so that you can add this to the example if you wish, but feel free to close this as you see fit. Thanks again for your help and your work!
Thank you for your research. I will add this info to the docs.
I have tried your recommended option with "markdown" tag and it fixed it only partially. Everything is rendered successfully, but the header stays as MD tag. Have you found any result to fix that? Or is it just my problem?
## Add MkDoxy tag into the `<details>` tag
If you want to add MkDoxy tag into the `<details>` tag, you can use the `details` option.
In some cases, it might be tricky to configure indentation, so you can use the `indent_level` option to indent generated markdown block.
<details markdown="1">
<summary>my_class</summary>
::: doxy.animal.file.list
indent_level: 2
</details>
If you find something, I will be very appreciative if you finish the PR https://github.com/JakubAndrysek/MkDoxy/tree/details-tag.
Thanks, Jacob
Strange, in my case I can see a fully rendered markdown. 🤷
Hey there! Thanks for an amazing plugin!
I do have an issue with it though. I am trying to use the
<details>
tag with my generated docs and it fails on me.If I use the following in my md file:
This does not render in mkdocs generated page. It does generate without the details tag.
I do have all the needed extensions (I think) in my config:
Any ideas what I might be doing wrong?