Crate pulldown_cmark_mdcat
source ·Expand description
Write markdown to TTYs.
See push_tty
for the main entry point.
§MSRV
This library generally supports only the latest stable Rust version.
§Features
-
default
enablessvg
,regex-fancy
, andimage-processing
. -
svg
includes support for rendering SVG images to PNG for terminals which do not support SVG images natively. This feature adds a dependency onresvg
. -
image-processing
enables processing of pixel images before rendering. This feature adds a dependency onimage
. If disabled mdcat will not be able to render inline images on some terminals, or render images incorrectly or at wrong sizes on other terminals.Do not disable this feature unless you are sure that you won’t use inline images, or accept incomplete rendering of images. Please do not report issues with inline images with this feature disabled.
This feature only exists to allow building with minimal dependencies for use cases where inline image support is not used or required. Do not disable this feature unless you know you won’t use inline images, or can accept buggy inline image rendering.
Please do not report bugs about inline image rendering with this feature disabled, unless the issue can also be reproduced if the feature is enabled.
-
regex-fancy
andregex-onig
enable the corresponding features of thesyntect
crate, i.e. determine whether syntect uses the regex-fancy Rust crate or the Oniguruma C library as its regex engine. The former is slower, but does not imply a native dependency, the latter is faster, but you need to compile and link a C library.
Re-exports§
pub use crate::resources::ResourceUrlHandler;
pub use crate::terminal::capabilities::TerminalCapabilities;
pub use crate::terminal::TerminalProgram;
pub use crate::terminal::TerminalSize;
Modules§
- Access to resources referenced from markdown documents.
- Terminal utilities.
Structs§
- The environment to render markdown in.
- Settings for markdown rendering.
- A colour theme for mdcat.
Functions§
- Write markdown to a TTY.