术语被呈现到定义列表中(或
description lists),
<dl>
,参见例如8.7.4.1
Pandoc Guide
因此,在您的示例中
HTML
看起来像这样:
<dl>
<dt>Noun</dt>
<dd>
A person, place, or thing.
</dd>
<dt>Verb</dt>
<dd>
An action word.
</dd>
</dl>
因此,您可以添加
dl
,
dt
或
dd
到你的
css
,这取决于你需要什么。例如,如果你想为整个列表应用样式,你可以使用:
styles_def.css
p, span:not(.math.inline), dl {
font-size: 11pt;
font-family: 'Aktiv Grotesk';
color:black
}
span:not(.math.inline), dl {
font-family: 'Aktiv Grotesk', Times, serif ;
}
文档.qmd
---
title: Term Font
format:
html:
css: styles_def.css
---
## Definitions
Definitions can be inserted in the document by using a colon, space, then the definition. Each definition needs to be separated by a line feed.
Noun
: A person, place, or thing.
Verb
: An action word.