``` % pandoc -t rst # My Great Section {#mysection} # Other section ^D .. _mysection: My Great Section ================ Other section ============= ```