resampling-stats / resampling-with

Source repository for third edition of "Resampling: The New Statistics"
https://resampling-stats.github.io
Other
11 stars 9 forks source link

MRG: Add script to mark ::: blocks #138

Closed matthew-brett closed 1 year ago

matthew-brett commented 1 year ago

This adds a script mark_blocks.py. It processes an .Rmd file to detect opening and closing Pandoc div markers (:::), raises an error if there are too many closing markers, warns if there is a missing closing marker, and writes a new version of the file with _marked_ prefix (by default) that notes the divisions with | at the start of the line, with another | for each extra level of division.