Skip to content

Commit 8b8d59e

Browse files
github markdown alerts + rmarkdown
1 parent 692c0b7 commit 8b8d59e

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ png-readme:: misc/readme/*.png
9898

9999

100100
readme:: README.md
101-
README.md: README.Rmd misc/readme/*.svg R/*.R NAMESPACE
101+
README.md: README.Rmd R/*.R NAMESPACE
102102
Rscript -e "rmarkdown::render('README.Rmd')"
103103
echo '<!-- Auto-generated - do not edit by hand -->' > temp
104104
echo '<!-- Edit README.Rmd instead -->' | cat - $@ >> temp && mv temp $@

README.Rmd

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ The [Public Health Risk Sciences Division](https://github.com/phac-nml-phrsd) at
4141

4242
## Installation
4343

44-
> \\[!IMPORTANT\\]
44+
<!--
45+
please to not remove the two spaces at the end of the line that
46+
starts with > [!IMPORTANT]. Those spaces are important for
47+
making github markdown alerts and rmarkdown play nicely.
48+
-->
49+
50+
> [!IMPORTANT]
4551
> The standard recommended way to install `macpan2`
4652
> is with the following command.
4753

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,15 @@ Agency of Canada](https://www.canada.ca/en/public-health.html) uses
6666

6767
## Installation
6868

69-
> \\\[!IMPORTANT\\\] The standard recommended way to install `macpan2`
70-
> is with the following command.
69+
<!--
70+
please to not remove the two spaces at the end of the line that
71+
starts with > [!IMPORTANT]. Those spaces are important for
72+
making github markdown alerts and rmarkdown play nicely.
73+
-->
74+
75+
> \[!IMPORTANT\]
76+
> The standard recommended way to install `macpan2` is with the
77+
> following command.
7178
7279
repos = c('https://canmod.r-universe.dev', 'https://cloud.r-project.org')
7380
install.packages('macpan2', repos = repos)

0 commit comments

Comments
 (0)