--filter/-F is for JSON filters. Lua filters need --lua-filter/-L Den tors 17 juni 2021 08:27'juh' via pandoc-discuss < pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> skrev: > > Thanks Bastien, > > Am 16.06.21 um 23:59 schrieb Bastien DUMONT: > > Maybe it's only part of the solution, but backslashes should be escaped: > > > > return { latex('\\begin{solution}'), el.content, > latex('\\end{solution}') } > > while this sounds familiar, it does not change the error message. > > I guess that I miss something fundamental with applying filters. > > The filter is called with --filter filter.lua. > > I also tried the filter cited in the original thread with the same error: > > https://github.com/rstudio/rmarkdown/blob/master/inst/rmarkdown/lua/latex-div.lua > > Any other idea how I can achieve this? > > \startparagraph[intro] > ... > \stopparagraph > > by using this in the md-file? > > > ::: intro ::: > ... > ::: > > > TIA > juh > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msgid/pandoc-discuss/493d0aa9-47f5-ca8d-2ef5-8e63f965c529%40mailbox.org > . > -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhDmtv1iLv8GsKzjxSzmvHzuOfpP6qrc21TUEYturw_xTQ%40mail.gmail.com.