No reviewers
Labels
No labels
module:M0-setup
module:M1-stt
module:M1-stt
module:M2-ai
module:M2-ai
module:M3-rich
module:M3-rich
module:M4-bridge
module:M4-bridge
module:M5-bonus
module:M5-bonus
module:setup
priority:high
priority:high
priority:low
priority:low
priority:medium
priority:medium
type:chore
type:chore
type:feature
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/my-fractal!131
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/29-36-rich-parser"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
RichBlockenum covering all 13 block types: Chart, Quiz, PollRich, CodeRun, Card, Carousel, Timeline, TableSort, Accordion, Progress, Math, Mermaid, Canvas (crates/fractal-rich/src/block.rs)RichMessageParser::parse(html) -> Vec<MessageFragment>withHtml(String)/Rich { block, fallback }variants, plusRenderLevel(full/static/text) (crates/fractal-rich/src/parser.rs)MessageFragment::Htmlon unknowndata-fx-typeor invaliddata-fx-configJSONscraper = "0.20",serde,serde_jsontofractal-rich/Cargo.tomllib.rsTest plan
cargo test -p fractal-rich— all unit tests pass (block deserialization, unknown type, invalid JSON, text render level, plain HTML passthrough)<div data-fx-type="unknown-widget">and confirmMessageFragment::Htmlis returnedRenderLevel::Textstrips all rich blocks and returns plain textCloses #29, closes #36
Pull request closed