87 lines
4.5 KiB
HTML
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/ "Title"</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]: <<a href="http://example.com/">http://example.com/</a>> "Angle Brackets"</span>
|
|
<span class="NonText">[without]: <a href="http://example.com/">http://example.com/</a> "Without angle brackets."</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> "Yes this works"</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> "No more hanging empty bracket!"</span>
|
|
|
|
[a ref]
|
|
|
|
<span class="NonText">[a ref]: <a href="http://example.com">http://example.com</a></span>
|
|
<span class="NonText"> "Title on next line."</span>
|
|
</pre>
|
|
</body>
|
|
</html>
|
|
<!-- vim: set foldmethod=manual : -->
|