Cargo Features

[dependencies]
egui_commonmark = { version = "0.15.0", default-features = false, features = ["pulldown_cmark", "comrak", "better_syntax_highlighting", "load-images", "svg", "fetch", "document-features"] }
default = load-images, pulldown_cmark

These default features are set whenever egui_commonmark is added without default-features = false somewhere in the dependency tree.

pulldown_cmark default

Enables pulldown-cmark

Affects parsers::pulldown

comrak

Enables comrak ^0.20.0

Affects parsers::comrak

better_syntax_highlighting = syntect

Syntax highlighting for code blocks using syntect

load-images default

Enable loading of images. Make sure to also opt in to what image format you need through the image crate.

Enables file and image of egui_extras

svg

Support loading svg images

Enables svg of egui_extras

fetch

Images with urls will be downloaded and displayed

Enables http of egui_extras

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

syntect better_syntax_highlighting?
document-features implicit feature

Enables document-features

document-features:

Extract documentation for the feature flags from comments in Cargo.toml