Skip to content

Markdown code spans no longer render as <code> blocks starting with Doxygen v1.14.0 #187

@parmi93

Description

@parmi93

Starting with Doxygen v1.14.0 there has been a change regarding markdown code spans

/**
 * My piece of code: `printf("hello");`
 */

Starting with Doxygen v1.14.0 the output became:

<span class="tt">printf("hello");</span>

which is rendered as:
Image

with previous versions of Doxygen the output was:

<code>printf("hello");</code>

which was rendered as:
Image

Temporarily waiting for an official release I fixed the problem by adding the following custom.css:

code, .tt {
	white-space: nowrap;
}

.tt, .tt a {
	font-family: var(--font-family-monospace);
	font-size: var(--code-font-size) !important;
}

.tt {
	display: inline;
	background: var(--code-background);
	color: var(--code-foreground);
	padding: 2px 6px;
}

.tt {
	border-radius: var(--border-radius-small);
	border: 1px solid var(--separator-color);
	overflow: hidden;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions