diff options
Diffstat (limited to 'nuldoc-src/docbook/to_html.ts')
| -rw-r--r-- | nuldoc-src/docbook/to_html.ts | 9 |
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, |
