Hi I want to convert the Pandoc Markdown to Pandoc Markdown from Inline to Reference Link for all Nested Links!

For example: 

# Input.md

```markdown
![Step 1 and 13: [Hasta Uttanasana](https://en.wikipedia.org/wiki/Hasta_Uttanasana)](https://upload.wikimedia.org/wikipedia/commons/e/ed/2Urdva_Hastasana.JPG)
```

# DesiredOutput.md

```markdown
![Step 1 and 13: [Hasta Uttanasana][]][]

[Hasta Uttanasana]: https://en.wikipedia.org/wiki/Hasta_Uttanasana
[Step 1 and 13: [Hasta Uttanasana][]]: https://upload.wikimedia.org/wikipedia/commons/e/ed/2Urdva_Hastasana.JPG
```

# Output

- I tried the following commands

```bash
$ PandocOption="-s --reference-links"
$ PandocExtension="-f markdown -t markdown-shortcut_reference_links"
$ pandoc ${PandocOption} ${PandocExtension} Input.md -o Output.md 
```

- And I got following output (Output.md) ! The image link has vanished! 

```markdown
\[Step 1 and 13: [Hasta Uttanasana][]\]\[\]

[Hasta Uttanasana]: https://en.wikipedia.org/wiki/Hasta_Uttanasana
```

-----------------------------------------------------

Is it possible to get the Desired Output  as shown above as the DesiredOutput.md?

Thanks!

Nikhil

--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/f06b22ca-2ce6-488d-a7b4-3c17323bc388%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.