mirror of
https://github.com/kevinmcaleer/obsidian-dashboards.git
synced 2026-07-22 06:06:04 +00:00
- Rows and columns layout in a 12-column responsive grid - Six widget types: markdown, chart, embed, stat, link, heading - Read/edit mode toggle with pencil icon in top-right - Widget editor modal with type-specific fields - Chart widgets delegate to bases-chart via MarkdownRenderer - Inline chart config OR link to note containing a chart block - Stats, link cards, heading widgets for KPI dashboards - Mobile responsive (columns stack below 768px) - GitHub Actions release workflow matching bases-chart
13 lines
401 B
TypeScript
13 lines
401 B
TypeScript
import { App, Component, MarkdownRenderer } from 'obsidian';
|
|
import { MarkdownWidget } from '../types';
|
|
|
|
export async function renderMarkdownWidget(
|
|
container: HTMLElement,
|
|
widget: MarkdownWidget,
|
|
app: App,
|
|
sourcePath: string,
|
|
component: Component,
|
|
): Promise<void> {
|
|
const content = widget.content || '';
|
|
await MarkdownRenderer.render(app, content, container, sourcePath, component);
|
|
}
|