gtk4cmark

Crates.iogtk4cmark
lib.rsgtk4cmark
version0.0.3
created_at2025-12-24 08:16:18.598108+00
updated_at2025-12-26 12:55:17.962309+00
descriptionA GTK4 widget for rendering CommonMark content.
homepagehttps://inpr.sn
repositoryhttps://github.com/Inparsian/gtk4cmark-rs
max_upload_size
id2002878
size50,608
(Inparsian)

documentation

README

gtk4cmark-rs

License Crates.io Top language

A GTK4 widget for rendering CommonMark content.

  • Written in Rust
  • Native GTK4 widget
  • Currently supports rendering of basic CommonMark elements
  • Does not re-render unchanged content

Example

let bx = gtk4::Box::new(gtk4::Orientation::Vertical, 0);

// Create a MarkdownView and set some markdown content
let markdown_view = MarkdownView::new();
markdown_view.set_markdown("# Hello, GTK4Cmark!\nThis is a *CommonMark* example.");

// MarkdownView inherits from gtk4::Widget, so you can add it to containers
bx.append(&markdown_view);
Commit count: 0

cargo fmt