How do I make a reference to a figure in markdown using pandoc?

前端 未结 6 615
天涯浪人
天涯浪人 2020-12-12 11:08

I\'m currently writing a document in markdown and I\'d like to make a reference to an image from my text.

this is my text, I want a reference to my image1 [h         


        
6条回答
  •  [愿得一人]
    2020-12-12 11:43

    I've had a chat with Ryan Gray after reading his answer in a similar post. Actually his solution of using :

    [image]: image.png "Image Title" 
    ![Alt text][image] 
    A reference to the [image](#image).
    

    is only adapted when using multimarkdown.

    When it comes to pandoc, the only solution to make cross references is using directly latex keywords:

    [image]: image.png "Image Title"
    ![Alt text \label{mylabel}][image]
    See figure \ref{mylabel}.
    

提交回复
热议问题