Skip to content
Snippets Groups Projects
Forked from Documentation / Docs / Developer Documentation
Source project has a limited visibility.
  • Sean Madsen's avatar
    f01992b8
    Add .md to internal hyperlinks · f01992b8
    Sean Madsen authored
    This way MkDocs will be able to report errors for broken links
    
    Done with:
    
    perl -0777 -i -pe \
    's@(?<!!)\[([^\]]*)\]\((?!https?://)(?!mailto:)(/(?:(?:(?:/(?![\)#]))|[^/)#])(?!.md))+)/?(#[^)]*)?\)@[$1]($2.md$3)@gm' \
    `find . -name '*.md'`
    f01992b8
    History
    Add .md to internal hyperlinks
    Sean Madsen authored
    This way MkDocs will be able to report errors for broken links
    
    Done with:
    
    perl -0777 -i -pe \
    's@(?<!!)\[([^\]]*)\]\((?!https?://)(?!mailto:)(/(?:(?:(?:/(?![\)#]))|[^/)#])(?!.md))+)/?(#[^)]*)?\)@[$1]($2.md$3)@gm' \
    `find . -name '*.md'`