Markdown core

Build-lean Markdown rendering that highlights fenced code only from a compile-time supplied grammar map.

Chat composer, messages, streaming text, and transcript threads.

lr-markdown-core

import '@aceshooting/lyra-ui/components/lr-markdown-core.js';

Optional dependency: marked, dompurify

Read guide (English)

Related components

  • Message actions — Per-message action toolbar for a chat message with copy, regenerate, edit, and feedback built-ins.
  • Message feedback — Thumbs up/down rating for one assistant message with an optional reason-and-comment detail panel.
  • Model select — Provider and model picker with a fixed catalog or free-text custom entry.
  • Model settings panel — Paired model picker and temperature slider for configuring an agent.
  • Push to talk — Mic capture button that owns the full permission-request, recording, and teardown lifecycle for press-and-hold or toggle use.
  • Stream status — Shows a single streaming connection's phase with heartbeat-aware stall detection.