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
4 changes: 4 additions & 0 deletions apps/website/content/docs/chat/guides/markdown.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ The most common mistake is providing `'code'` as an override key — it does not
| `'table-row'` | Table row (`<tr>`) |
| `'table-cell'` | Table header or data cell (`<th>` / `<td>`) |

<Callout type="info" title="Table row and cell overrides">
The built-in `'table'` renderer emits native `<tr>`, `<th>`, and `<td>` elements directly so streamed rows stay attached to the same browser table. Override the `'table'` key when you need to change the built-in table structure. The `'table-row'` and `'table-cell'` keys remain available for custom renderers or direct row/cell rendering, but the default table renderer does not dispatch its child rows through those registry entries.
</Callout>

## Theming Markdown Components

All built-in markdown view components consume the same `--tplane-chat-*` and `--a2ui-*` CSS custom properties as the rest of the chat UI. No extra tokens are needed — changing the active theme automatically re-styles markdown output. See the [chat theming guide](/docs/chat/guides/theming) for the full token reference.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import { Component, signal } from '@angular/core';
import { views } from '@threadplane/render';
import type { MarkdownTableCellNode, MarkdownTableNode, MarkdownTableRowNode } from '@cacheplane/partial-markdown';
import { MarkdownTableComponent } from './markdown-table.component';
import { MarkdownTableRowComponent } from './markdown-table-row.component';
import { MarkdownTableCellComponent } from './markdown-table-cell.component';
import { MARKDOWN_VIEW_REGISTRY } from '../markdown-view-registry';

function makeTableNode(overrides: Partial<MarkdownTableNode> = {}): MarkdownTableNode {
Expand Down Expand Up @@ -55,13 +53,7 @@ describe('MarkdownTableComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [HostComponent],
providers: [{
provide: MARKDOWN_VIEW_REGISTRY,
useValue: views({
'table-row': MarkdownTableRowComponent,
'table-cell': MarkdownTableCellComponent,
}),
}],
providers: [{ provide: MARKDOWN_VIEW_REGISTRY, useValue: views({}) }],
});
});

Expand Down
Loading