. tests/functions.sh title "pseudo-protocols" rc=0 MARKDOWN_FLAGS= try '[](id:) links' '[foo](id:bar)' '

foo

' try -fnoext '[](id:) links with -fnoext' '[foo](id:bar)' '

[foo](id:bar)

' try '[](class:) links' '[foo](class:bar)' '

foo

' try -fnoext '[](class:) links with -fnoext' '[foo](class:bar)' '

[foo](class:bar)

' try '[](lang:) links' '[foo](lang:en)' '

foo

' try -fnoext '[](lang:) links with -fnoext' '[foo](lang:en)' '

[foo](lang:en)

' try '[](raw:) links' '[foo](raw:bar)' '

bar

' try -fnoext '[](raw:) links with -fnoext' '[foo](raw:bar)' '

[foo](raw:bar)

' # try '[](id:) wrapping a href' '[[foo](bar)](id:baz)' '

foo

' summary $0 exit $rc