Skip to main content

encode_markdown_link_path

Function encode_markdown_link_path 

Source
pub fn encode_markdown_link_path(path: &str) -> String
Expand description

Percent-encode a relative path for use inside Markdown ](...) link targets.

mdBook and CommonMark treat spaces as end-of-URL; encode every segment so paths like operations/GET -board.md resolve correctly.