[dependencies.pulldown-cmark]
optional = true
version = "0.13"
[[example]]
name = "borrowed_updates"
path = "examples/borrowed_updates.rs"
[[example]]
name = "footnotes_reset"
path = "examples/footnotes_reset.rs"
[[example]]
name = "minimal"
path = "examples/minimal.rs"
[[example]]
name = "pulldown_incremental"
path = "examples/pulldown_incremental.rs"
[[example]]
name = "stateful_transformer"
path = "examples/stateful_transformer.rs"
[[example]]
name = "tui_like"
path = "examples/tui_like.rs"
[features]
default = []
pulldown = ["dep:pulldown-cmark"]
sync = []
[lib]
name = "mdstream"
path = "src/lib.rs"
[package]
authors = ["Mingzhen Zhuang <superfrankie621@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["text-processing", "parsing"]
description = "Streaming-first Markdown middleware for LLM output (committed + pending blocks, render-agnostic)."
documentation = "https://docs.rs/mdstream"
edition = "2024"
exclude = ["repo-ref/**"]
homepage = "https://github.com/Latias94/mdstream"
keywords = ["markdown", "streaming", "llm", "incremental", "parser"]
license = "MIT OR Apache-2.0"
name = "mdstream"
readme = "README.md"
repository = "https://github.com/Latias94/mdstream"
resolver = "2"
rust-version = "1.85"
version = "0.2.0"
[package.metadata.docs.rs]
all-features = true
[[test]]
name = "analyzed_stream_code_fence"
path = "tests/analyzed_stream_code_fence.rs"
[[test]]
name = "analyzed_stream_hints"
path = "tests/analyzed_stream_hints.rs"
[[test]]
name = "analyzed_stream_math"
path = "tests/analyzed_stream_math.rs"
[[test]]
name = "analyzed_stream_tagged_blocks"
path = "tests/analyzed_stream_tagged_blocks.rs"
[[test]]
name = "boundary_plugin"
path = "tests/boundary_plugin.rs"
[[test]]
name = "boundary_tag_plugin"
path = "tests/boundary_tag_plugin.rs"
[[test]]
name = "buffer_compaction"
path = "tests/buffer_compaction.rs"
[[test]]
name = "chunking_invariance_suite"
path = "tests/chunking_invariance_suite.rs"
[[test]]
name = "code_fence_closure"
path = "tests/code_fence_closure.rs"
[[test]]
name = "code_fence_metadata"
path = "tests/code_fence_metadata.rs"
[[test]]
name = "container_boundary_plugin"
path = "tests/container_boundary_plugin.rs"
[[test]]
name = "document_state"
path = "tests/document_state.rs"
[[test]]
name = "fn_boundary_plugin"
path = "tests/fn_boundary_plugin.rs"
[[test]]
name = "incremark_footnote_invalidation_mode"
path = "tests/incremark_footnote_invalidation_mode.rs"
[[test]]
name = "incremark_robustness_extremes"
path = "tests/incremark_robustness_extremes.rs"
[[test]]
name = "incremark_robustness_invariants"
path = "tests/incremark_robustness_invariants.rs"
[[test]]
name = "pending_transformers"
path = "tests/pending_transformers.rs"
[[test]]
name = "pulldown_adapter"
path = "tests/pulldown_adapter.rs"
[[test]]
name = "pulldown_reference_definitions"
path = "tests/pulldown_reference_definitions.rs"
[[test]]
name = "reference_definitions_invalidation"
path = "tests/reference_definitions_invalidation.rs"
[[test]]
name = "stream_block_splitting"
path = "tests/stream_block_splitting.rs"
[[test]]
name = "stream_incremark_inspired"
path = "tests/stream_incremark_inspired.rs"
[[test]]
name = "stream_incremark_regressions"
path = "tests/stream_incremark_regressions.rs"
[[test]]
name = "stream_list_blockquote_edges"
path = "tests/stream_list_blockquote_edges.rs"
[[test]]
name = "stream_streamdown_basic_parsing"
path = "tests/stream_streamdown_basic_parsing.rs"
[[test]]
name = "stream_streamdown_code_blocks"
path = "tests/stream_streamdown_code_blocks.rs"
[[test]]
name = "stream_streamdown_html_blocks"
path = "tests/stream_streamdown_html_blocks.rs"
[[test]]
name = "stream_streamdown_mixed_content"
path = "tests/stream_streamdown_mixed_content.rs"
[[test]]
name = "stream_streamdown_simulation"
path = "tests/stream_streamdown_simulation.rs"
[[test]]
name = "stream_streamdown_streaming_simulation_parity"
path = "tests/stream_streamdown_streaming_simulation_parity.rs"
[[test]]
name = "stream_streamdown_tables"
path = "tests/stream_streamdown_tables.rs"
[[test]]
name = "terminator_remend_parity"
path = "tests/terminator_remend_parity.rs"
[[test]]
name = "terminator_streamdown_cases"
path = "tests/terminator_streamdown_cases.rs"
[[test]]
name = "update_ref"
path = "tests/update_ref.rs"