Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions _extensions/quarto-openapi/lib/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export function gridTable(headers: string[], rows: TableRow[]): string[] {
}
};

lines.push("::: {.quarto-openapi-table}");
lines.push(separator("-"));
emitRow(headerLines);
lines.push(separator("="));
Expand All @@ -64,6 +65,8 @@ export function gridTable(headers: string[], rows: TableRow[]): string[] {
lines.push(separator("-"));
}

lines.push(":::");

return lines;
}

Expand Down
12 changes: 12 additions & 0 deletions _extensions/quarto-openapi/quarto-openapi-styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/* Prevent schema tables from overflowing into the sidebar */
.quarto-openapi-table table {
table-layout: fixed;
width: 100%;
}

.quarto-openapi-table td,
.quarto-openapi-table th {
overflow-wrap: break-word;
word-break: break-word;
}

/* Nesting indentation for schema property tables */
.schema-nest-1 { padding-left: 1em; }
.schema-nest-2 { padding-left: 2em; }
Expand Down