aboutsummaryrefslogtreecommitdiffhomepage
path: root/nuldoc-src/docbook
diff options
context:
space:
mode:
Diffstat (limited to 'nuldoc-src/docbook')
-rw-r--r--nuldoc-src/docbook/to_html.ts9
1 files changed, 5 insertions, 4 deletions
diff --git a/nuldoc-src/docbook/to_html.ts b/nuldoc-src/docbook/to_html.ts
index 9f176d4..f347f05 100644
--- a/nuldoc-src/docbook/to_html.ts
+++ b/nuldoc-src/docbook/to_html.ts
@@ -236,20 +236,21 @@ function transformNoteElement(doc: Document) {
const labelElement: Element = {
kind: "element",
name: "div",
- attributes: new Map(),
+ attributes: new Map([["class", "admonition-label"]]),
children: [{
kind: "text",
- content: "Note",
- raw: true,
+ content: "NOTE",
+ raw: false,
}],
};
const contentElement: Element = {
kind: "element",
name: "div",
- attributes: new Map(),
+ attributes: new Map([["class", "admonition-content"]]),
children: n.children,
};
n.name = "div";
+ addClass(n, "admonition");
n.children = [
labelElement,
contentElement,