I found the page Documenting Kotlin Code in the official Kotlin Reference.
Yet, I could not find out how to highlight certain parts of the documentation, e.g., marking it as italic or bold.
I am new to Kotlin, coming from Java, and have previously only been using JavaDoc, where we used <i>
and <b>
HTML tags to highlight parts in the documentation.
As I wrote this question, I found the answer to it. Silly me, the link I was looking for even was on the page I referenced in the question.
So, I will write an answer to my own question, probably someone else can profit from it in the future.
The documentation states:
So, to highlight a few points of Markdown:
*
) and underscores (_
) as indicators of emphasis. Text wrapped with one*
or_
will be wrapped with an HTML<em>
tag; double*
’s or_
’s will be wrapped with an HTML<strong>
tag. Typically, a single asterik results in italic, while double asterik results in bold.#
(h1),##
(h2), or###
(h3). For example:# This is an H1
>
)