← Back to team overview

zim-wiki team mailing list archive

Re: markdown export template

 

OK, thanks for the feedback. I had a look at the code, but with my (very) limited Python skills, I can't really see where the export is handled. I'll see if I can do some post-processing of export output instead.

Cheers,

Paulo


On 1/8/18 8:53 AM, Jaap Karssenberg wrote:
Afraid there is no easy way to do that other than modifying the behavior in the code block plugin.

-- Jaap

On Fri, Dec 29, 2017 at 3:04 PM Paulo van Breugel <p.vanbreugel@xxxxxxxxx <mailto:p.vanbreugel@xxxxxxxxx>> wrote:

    Hi,

    How can I adapt (in the markdown export template) how code blocks 
    are exported to markdown. I am looking for a way to have R code
    blocks exported as Rmarkdown code blocks, e.g.,

    From:


    {{{code: lang="r" linenumbers="True"

    code here

    }}}


    To:


    ```{r}

    code here

    ```

    Cheers


    Paulo


References