dotfiles/.vim/pack/plugins/start/vim-markdown/spec/features/inline_references.md.html
2026-01-25 09:38:17 +01:00

87 lines
4.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>~/code/vim-markdown/spec/features/inline_references.md.html</title>
<meta name="Generator" content="Vim/7.4">
<meta name="plugin-version" content="vim7.4_v1">
<meta name="syntax" content="markdown">
<meta name="settings" content="use_css,pre_wrap,no_foldcolumn,expand_tabs,prevent_copy=">
<meta name="colorscheme" content="none">
<style type="text/css">
<!--
pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #ffffff; }
body { font-family: monospace; color: #000000; background-color: #ffffff; }
* { font-size: 1em; }
.NonText { color: #8080ff; }
.Underlined { color: #c000c0; text-decoration: underline; }
.Special { color: #c000c0; }
.Identifier { color: #008080; }
-->
</style>
<script type='text/javascript'>
<!--
-->
</script>
</head>
<body>
<pre id='vimCodeElement'>
Reference <span class="Special">[</span><span class="Underlined">bar</span><span class="Special">]</span> <span class="Special">[</span><span class="Underlined">1</span><span class="Special">]</span>
Reference <span class="Special">[</span><span class="Underlined">bar</span><span class="Special">][</span><span class="Underlined">1</span><span class="Special">]</span>
Reference <span class="Special">[</span><span class="Underlined">bar</span><span class="Special">]</span>
<span class="Special">[</span><span class="Underlined">1</span><span class="Special">]</span>
<span class="NonText">[1]: /url/ &quot;Title&quot;</span>
With <span class="Special">[</span><span class="Underlined">embedded [brackets]</span><span class="Special">][</span><span class="Underlined">b</span><span class="Special">]</span>
With quoted <span class="Special">[</span><span class="Underlined">embedded \[brackets\]</span><span class="Special">][</span><span class="Underlined">b</span><span class="Special">]</span>
With quoted <span class="Special">[</span><span class="Underlined">embedded \[ brackets</span><span class="Special">][</span><span class="Underlined">b</span><span class="Special">]</span>
With quoted <span class="Special">[</span><span class="Underlined">embedded \] brackets</span><span class="Special">][</span><span class="Underlined">b</span><span class="Special">]</span>
<span class="NonText">[b]: /url/</span>
Indented <span class="Special">[</span><span class="Underlined">once</span><span class="Special">][]</span> times
Indented <span class="Special">[</span><span class="Underlined">twice</span><span class="Special">][]</span> times
Indented <span class="Special">[</span><span class="Underlined">thrice</span><span class="Special">][]</span> times
Indented <span class="Special">[</span><span class="Underlined">four</span><span class="Special">][]</span> times must not a reference, must be a code block
<span class="NonText"> [once]: /url</span>
<span class="NonText"> [twice]: /url</span>
<span class="NonText"> [thrice]: /url</span>
<span class="NonText"> [four]: /url</span>
With <span class="Special">[</span><span class="Underlined">angle brackets</span><span class="Special">][]</span>
And <span class="Special">[</span><span class="Underlined">without</span><span class="Special">][]</span>
<span class="NonText">[angle brackets]: &lt;<a href="http://example.com/">http://example.com/</a>&gt; &quot;Angle Brackets&quot;</span>
<span class="NonText">[without]: <a href="http://example.com/">http://example.com/</a> &quot;Without angle brackets.&quot;</span>
With <span class="Special">[</span><span class="Underlined">line</span>
<span class="Underlined">breaks</span><span class="Special">][]</span>
<span class="NonText">[line breaks]: <a href="http://example.com">http://example.com</a> &quot;Yes this works&quot;</span>
<span class="Identifier">---</span>
The following should be supported but they are not... In GFM and Kramdown link references could omit the second pair of square brackets, with a programming language is possible to check if something between square brackets has a related link definition an so to be interpreted as link reference but here it would be impossible
[short ref]
[short
ref]
<span class="NonText">[short ref]: <a href="http://example.com">http://example.com</a> &quot;No more hanging empty bracket!&quot;</span>
[a ref]
<span class="NonText">[a ref]: <a href="http://example.com">http://example.com</a></span>
<span class="NonText"> &quot;Title on next line.&quot;</span>
</pre>
</body>
</html>
<!-- vim: set foldmethod=manual : -->