Hello, I m struggling with the code indentation in...
# dokka
k
Hello, I m struggling with the code indentation in a module documentation: It looks OK in the markdown preview, but in the html docs generated by dokka, it is broken - there is some extra indentation if the code block has multiple lines. Also, I am not able to use relative links: [link](http://example.com/sth/) works fine, but [link](/some/relative/path) just renders "/some/relative/path" as plain text .. or how can I link to another module or a specific package?
v
1. Unfortunately, it happens in code blocks that is inside a list. I have created the issue https://github.com/Kotlin/dokka/issues/2232 on GitHub. It will be fixed in the nearest Dokka versions. 2. Dokka intentionally does not support relative links.
linking to relative html paths creates a lot of issues when it comes to dokka model (pages can be relocated by plugins, you are limiting yourself to only one forma)
Now you can use absolute links. But we are thinking about the other way to refer to сlass/package from a module documentation: https://github.com/Kotlin/dokka/issues/1863
👍 1