```
% pandoc -f markdown_mmd
# Chapter 1: A long name of chapter [Chapter 1]

See [Chapter 1].
^D
<h1 id="chapter1">Chapter 1: A long name of chapter</h1>
<p>See <a href="#chapter1">Chapter 1</a>.</p>
```
