r - Change the behaviour of the markdown renderer? -
By default, the markdown
package provides an image like this
& gt; Library (Markdown) & gt; Txt & lt; - "! [My caption] (/ img / my_image.png)" & gt; Res & lt; - Render Markdown (text = TSTT); Res [1] "<< img src = \" / img / my_image.png \ "alt = \" my caption \ "/>
& lt; / n "
Now I was wondering if it is possible to change this default behavior and put it in my own renderer for some tags / elements. For example, I used to say" my caption " I would rather not use the same as the "code> alt attribute, but in the form of the text below the image.
Is this possible, and is this an example? Study for
I would recommend using Multi Markdown
$ Cat test.txt! [My caption] (/ img / my_image.png) $ multimarkdown test.txt & lt; shape & gt; img src = "/ img / my_image.png" alt = "my caption" /> my caption
It goes outside of R, but it It should be easy to type any cover. Besides it supports fast and many other things. Personally I prefer Pandok better, it also supports the reference data:
Comments
Post a Comment