This is an mdview extension.
An auto-code is a word that is rendered as code even though it isn't surrounded by grave accents. The word does not include white space, and starts and ends on a word boundary, that is, a printable character that is not a space or a letter or a digit.
absolute path β any word that starts with / and is at least four-bytes long.
Thus:
/123 /naΓ―ve /π/dir/fileβ β/dir/fileβ /file.. β/file,β β/file:β /file; /file! /file?/dir/ β/dir/β (a terminating slash is included)special file names
file names ending with extensions β.patchβ or β.diffβ:
file.patch f.diff βf.diffβf.diff, f.diff.f.diff.βURI
http:// https:// ftp://http://www https://www.example ftp://www.example.comhttp://example.comβ, (https://www.example.com)http://a.com/ http://a.com? http://a.com?v= http://a.com?v=.Note that angle brackets are used to surround auto-links not auto-codes. For example, <https://www.example.com> turns into https://www.example.com.
issue id (bugzilla, gh) β β#β followed by an ASCII word
#123 #abcfunction name β ASCII identifier that ends with β()β
foo() foo(); foo_bar() f9()_foo() - without: _foo()uppercase identifier β uppercase ASCII identifier that includes at least one underscore
XDG_CONFIG_HOME and _Z_DATA$XDG_CONFIG_HOME also if it starts with β$β_ _A _B__C_email address β ASCII word, must not start with β@β or β.β, must include one β@β and at least one interior β.β
a@b.comExterior formatting - italics, bold, strike-through - is applied to auto-codes.
/root/italics /bold /strikethrough/3/star/bold-italics / / / / /3/under/bold-italics#123 #abc #123 #abchttp:// https:// ftp:// http:// https:// ftp://file.patch file.diff file.patch file.difffoo() foo()XDG_CONFIG_HOME _Z_DATA $XDG_CONFIG_HOME XDG_CONFIG_HOME _Z_DATA $XDG_CONFIG_HOMEXDG_CONFIG_HOME _Z_DATA $XDG_CONFIG_HOME XDG_CONFIG_HOME _Z_DATA $XDG_CONFIG_HOMEa@b.com a@b.comThe text below includes backticks to explicitly format code chunks. Therefore no auto-code should be applied.
cp /tmp/a /tmp/b#1 and #2_A_ and *_Z*Exterior formatting is applied to explicit code chunks:
foo() user@email.com https://mdview.comMixing code chunks, auto-codes and formatting works:
cp /code /auto-codeln -s /auto-code