Skip to content

Commit

Permalink
allow links to be followed by the character \ and still be ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
madacol committed Jul 18, 2024
1 parent c0968c2 commit c9a6c81
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/parseImport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@
# Inspired by https://stackoverflow.com/a/18517316/3163120

perl -ne 's#^!\[\[(.+?)\]\]#`'$0' "$1.md"`#e;print' "$@" | \
sed -E 's#(^|\s|[^\]\()(https?://[^ )]+)#\1<\2>#g' "$@"
# sed command to parse raw URLs in markdown files and then wrap them in `<...>` tags
sed -E 's#(^|\s|[^\]\()(https?://[^ )\\]+)#\1<\2>#g' "$@" # sed command to parse raw URLs in markdown files and then wrap them in `<...>` tags

0 comments on commit c9a6c81

Please sign in to comment.