The goal of add2md is to help R users to type markdown in .Rmd
.
You can install the released version of add2md from Github with:
devtools::install_github('JiaxiangBU/add2md')
library(add2md)
m()
#> This is the helper for R users to use markdown.
#> ──────────────────────── Type m1('url') URL ────────────────────────
#> Input m1("url","name")
#> Output [name](url)
#> e.g. m1("https://github.com/JiaxiangBU/add2md/","add2md")
#> [add2md](https://github.com/JiaxiangBU/add2md/)
#> ────────────────────── Type m2('url','name') Image ──────────────────────
#> Input m2("url","name")
#> Output ![name](url)
#> e.g. m2("https://raw.githubusercontent.com/JiaxiangBU/picbackup/master/add2blog_sample_wallpaper.png","The blog wallpaper")
#> ![The blog wallpaper](https://raw.githubusercontent.com/JiaxiangBU/picbackup/master/add2blog_sample_wallpaper.png)
#> ──────────────────────── Type m3('name') bold ────────────────────────
#> Input m3("name")
#> Output **name**
#> e.g. m3("Jiaxiang Li")
#> **Jiaxiang Li**
Write down this sentence,
https://jiaxiangbu.github.io/add2md/ add2md官网
Here is a unit of space between the two phrases.
- Copy it
- In the R console, type
m1()
- Paste it on your position
[add2md官网](https://jiaxiangbu.github.io/add2md/)
The return is on the
clipboard. Just copy, m1()
and paste !
or recommendation!
You can set the shortcut in Tools -> Modify Keyboard Shortcuts.
Similarly, for
m2
https://raw.githubusercontent.com/JiaxiangBU/picbackup/master/add2blog_sample_wallpaper.png The blog wallpaper
m2()
Similarly, for m3
Jiaxiang Li
m3()
**Jiaxiang Li**
This is a summary title
This is content like image, link and so on.
It can be folded to help readers focus on someting important.
In the console, call m_detail()
, and paste on your document.
This is a summary title
This is content like image, link and so on. It can be folded to help readers focus on someting important.
See the vignettes.