rmdfiltr
rmdfiltr copied to clipboard
R package that provides a collection of Lua filters that extend the functionality of R Markdown templates.
Currently, the Lua-filter that replaces ampersands in in-text citations by "and" supports [English, Spanish, French, German, and Dutch](https://github.com/crsh/rmdfiltr/blob/master/inst/replace_ampersands.lua#L3). Suggestions for additional languages (including the required translation of "and") are welcome.
This isn't a bug report or anything—just a note about how to use {rmdfiltr}'s word count with Quarto. Quarto doesn't support inline R code in YAML (https://github.com/quarto-dev/quarto-cli/issues/1391#issuecomment-1185348644), so adding `!expr...
As of `pandoc` 2.17, the following is possible, which would make for a useful filter. ~~~lua function Doc (body, meta, vars) vars.date = vars.date or os.date '%B %e, %Y' return...
The reported Word Count (in the R Markdown tab), e.g., ``` 9215 words in text body 2884 words in reference section ``` is extremely useful. Some journals require a character...
When creating a manuscript in German, the ampersand filter leaves Oxford commas in in-text citations, i.e. "Barth, Stahl, & Haider (2019)" is changed to "Barth, Stahl, und Haider (2019)". In...
Thank you so much for this amazing package! The count for reference is especially unique useful! Just want to make sure, though, that the current version (0.1.0) still does not...
Hi @crsh, It would be great if the current dev version of **rmdfiltr** was available from CRAN. Do you think this will be possible anytime soon? Best regards, Marius