markdown2pdf
A markdown to pdf transpiler in pure Rust
File Explorer
- ci.yml
- release.yml
- OFL.txt
- STIXTwoMath.otf
- commonmark_spec.json
- entities.json
- cli.md
- config.toml
- configuration.md
- library.md
- main.rs
- font.rs
- layout.rs
- mod.rs
- parse.rs
- symbols.rs
- font.rs
- hyphenate.rs
- image_policy.rs
- ir.rs
- layout.rs
- lower.rs
- mod.rs
- net_guard.rs
- net_read.rs
- postprocess.rs
- preprocess.rs
- academic.toml
- compact.toml
- default.toml
- github.toml
- minimal.toml
- modern.toml
- error.rs
- merge.rs
- mod.rs
- resolved.rs
- schema.rs
- themes.rs
- config.rs
- debug.rs
- fonts.rs
- frontmatter.rs
- lib.rs
- markdown.rs
- validation.rs
- admonition_tests.rs
- autolink_extended_tests.rs
- backslash_escape_tests.rs
- blockquote_block_constructs_tests.rs
- blockquote_inline_tests.rs
- blockquote_lazy_continuation_tests.rs
- code_span_space_strip_tests.rs
- collect_all_text_tests.rs
- common.rs
- definition_list_tests.rs
- emphasis_flanking_tests.rs
- entity_reference_tests.rs
- eof_unterminated_tests.rs
- error_position_tests.rs
- fenced_code_extended_tests.rs
- fenced_code_info_string_tests.rs
- footnote_tests.rs
- gfm_trio_tests.rs
- hard_break_extended_tests.rs
- hard_line_break_tests.rs
- heading_hash_in_paragraph_tests.rs
- heading_strictness_tests.rs
- highlight_tests.rs
- html_block_element_tests.rs
- html_cdata_tests.rs
- html_comment_block_tests.rs
- html_declaration_tests.rs
- html_inline_edge_tests.rs
- html_processing_instruction_tests.rs
- html_raw_content_block_tests.rs
- html_standalone_tag_block_tests.rs
- image_reference_tests.rs
- indented_code_block_tests.rs
- inline_footnote_tests.rs
- intra_word_underscore_tests.rs
- line_ending_normalization_tests.rs
- link_destination_edge_tests.rs
- link_entity_decoding_tests.rs
- link_escape_tests.rs
- link_inline_content_tests.rs
- link_title_tests.rs
- link_url_paren_and_autolink_tests.rs
- list_lazy_continuation_tests.rs
- loose_tight_list_tests.rs
- math_tests.rs
- multi_backtick_inline_code_tests.rs
- multi_paragraph_list_item_tests.rs
- normalize_label_tests.rs
- ordered_list_marker_tests.rs
- parse_html_comment_tests.rs
- parse_image_tests.rs
- propagate_loose_tight_tests.rs
- raw_inline_html_tests.rs
- reference_link_advanced_tests.rs
- reference_link_tests.rs
- resolve_emphasis_unit_tests.rs
- setext_and_thematic_tests.rs
- spec_atx_heading_corners.rs
- spec_blockquote_corners.rs
- spec_list_item_corners.rs
- spec_paragraph_corners.rs
- spec_setext_corners.rs
- spec_tabs_corners.rs
- spec_thematic_break_corners.rs
- strikethrough_tests.rs
- strip_code_span_outer_space_tests.rs
- tab_expansion_tests.rs
- tab_indentation_tests.rs
- table_tests.rs
- tests.rs
- try_decode_entity_tests.rs
- try_parse_definition_tests.rs
- unmatched_emphasis_fallback_tests.rs
- wikilink_tests.rs
- _admonition_showcase.rs
- _pdf_size_audit.rs
- _showcase_inspect.rs
- admonition.rs
- adversarial.rs
- columns.rs
- common.rs
- config_fidelity.rs
- config_validation.rs
- fonts.rs
- golden.rs
- highlight.rs
- html_blocks_and_links.rs
- image_pipeline.rs
- math.rs
- net_guard.rs
- structure.rs
- styling.rs
- whitespace.rs
- widow_orphan.rs
- wikilink.rs
- html_render.rs
- known_failures.txt
- mod.rs
- normalize.rs
- runner.rs
- commonmark_spec.rs
- markdown.rs
- net_remote_image_gate.rs
- net_size_cap.rs
- net_uppercase_scheme_gate.rs
- render.rs
- stress.rs
- styling_schema.rs
- .gitignore
- build.rs
- Cargo.lock
- Cargo.toml
- CHANGELOG.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- dist-workspace.toml
- LICENSE
- README.md
- rust-toolchain.toml
- rustfmt.toml
- SECURITY.md
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
brew install
View Details ▼
brew install
Install a Homebrew formula or cask.
brew install {{formula|cask}}
Install a formula/cask:
brew install {{[-s|--build-from-source]}} {{formula}}
Build and install a formula from source (dependencies will still be installed from bottles):
brew install {{[-n|--dry-run]}} {{formula|cask}}
Download the manifest, print what would be installed but don't actually install anything:
cargo add
View Details ▼
cargo add
Add dependencies to a Rust project's `Cargo.toml` manifest.
cargo add {{dependency}}
Add the latest version of a dependency to the current project:
cargo add {{dependency}}@{{version}}
Add a specific version of a dependency:
cargo add {{dependency}} {{[-F|--features]}} {{feature_1,feature_2,...}}
Add a dependency and enable one or more specific features:
cargo install
View Details ▼
cargo install
Build and install a Rust binary.
cargo install {{package}}@{{version}}
Install a package from <https://crates.io> (the version is optional - latest by default):
cargo install --git {{repo_url}}
Install a package from the specified Git repository:
cargo install --git {{repo_url}} --{{branch|tag|rev}} {{branch_name|tag|commit_hash}}
Build from the specified branch/tag/commit when installing from a Git repository:
markdown2pdf
View Details ▼
markdown2pdf
Convert markdown to PDF.
markdown2pdf {{[-p|--path]}} {{path/to/input_file.md}}
Convert a Markdown file to a PDF:
markdown2pdf {{[-p|--path]}} {{path/to/input_file.md}} {{[-o|--output]}} {{path/to/output_file.pdf}}
Convert a Markdown file to a PDF with a specific path:
markdown2pdf {{[-s|--string]}} {{markdown_text}} {{[-o|--output]}} {{path/to/output_file.pdf}}
Convert Markdown content provided as a string:
compact
View Details ▼
compact
Display or change the compression state of files and directories on NTFS partitions.
compact
Display the compression status of files in the current directory:
compact /c {{path\to\file}}
Compress a specific file:
compact /u {{path\to\file}}
Uncompress a specific file:
