Crate pulldown_cmark_to_cmark
source ·Structs§
- Configuration for the
cmark_with_options()andcmark_resume_with_options()functions. The defaults should provide decent spacing and most importantly, will provide a faithful rendering of your markdown document particularly when rendering it to HTML. - The state of the
cmark_resume()andcmark_resume_with_options()functions. This does not only allow introspection, but enables the user to halt the serialization at any time, and resume it later.
Enums§
- Similar to Pulldown-Cmark-Alignment, but with required traits for comparison to allow testing.
Constants§
- Thea mount of code-block tokens one needs to produce a valid fenced code-block.
Functions§
- Return the
<seen amount of consecutive fenced code-block tokens> + 1that occur within a fenced code-blockevents. - As
cmark_with_options(), but with defaultOptions. - As
cmark_resume_with_options(), but with defaultOptions. - Serialize a stream of pulldown-cmark-Events into a string-backed buffer.
- As
cmark_resume_with_source_range_and_options, but with defaultOptions. - Serialize a stream of pulldown-cmark-Events while preserving the escape characters in
source. Each input Event is accompanied by an optional Range that maps it back to thesourcestring. - As
cmark_resume_with_options(), but with theStatefinalized. - As
cmark_with_source_range_and_options, but with defaultOptions. - As
cmark_resume_with_source_range_and_options, but with theStatefinalized.