This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
## Based on convert.txt by Mike Love | |
## https://gist.github.com/mikelove/5618f935ace6e389d3fbac03224860cd | |
## The script ignores labels and references, un-numbered sections | |
## (section*), quotes and probably a couple of more. It won't deal | |
## with the pre-amble, bibliography and document tags either. Still | |
## useful, though. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: example.ipynb example.html | |
example.md: example.Rmd | |
./knit | |
example.ipynb: example.md | |
notedown example.md | sed '/%%r/d' > example.ipynb | |
example.html: example.Rmd | |
R -e "knitr::knit2html('example.Rmd')" |