@htmlbricks/hb-markdown-viewer
v0.71.9
Published
Renders Markdown from a data object (typically with a content string) using marked with GFM and line breaks, and normalizes compact single-line Markdown for clearer lists and headings.
Downloads
6,407
Readme
hb-markdown-viewer
Description
Renders Markdown from a data object (typically with a content string) using marked with GFM and line breaks, and normalizes compact single-line Markdown for clearer lists and headings.
Styling (Bulma)
Uses Bulma container is-fluid, columns, and column for layout; prose styles live in styles/webcomponent.scss (.markdown-body). Theme tokens: --bulma-* on :host (see extra/docs.ts).
Types
export type Component = {
id?: string;
style?: string;
data: {
content: string;
};
};
export type Events = {
// event: { test: boolean };
};