# Module :: include_md
<!--{ generate.module_header.start() }-->
[](https://github.com/emersion/stability-badges#experimental) [](https://github.com/Wandalen/wTools/actions/workflows/workspace_push.yml) [](https://docs.rs/include_md) [](https://discord.gg/m3YfbXpUUY)
<!--{ generate.module_header.end }-->
Include markdown file or its section.
### To add to your project
```shell
cargo add include_md
```
## Quick Start
Include a complete markdown file as a compile-time string constant:
```rust
let content = include_md::include_md!( "../readme.md" );
println!( "{content}" );
```
Include only a named section from a markdown file:
```rust
let section = include_md::include_md_section!( "readme.md", "## Quick Start" );
println!( "{section}" );
```
Paths for `include_md!` resolve relative to the source file (same as `include_str!`).
Paths for `include_md_section!` resolve relative to `CARGO_MANIFEST_DIR` (crate root).
Both macros reject files larger than 10 MB at compile time.