bm2md | R Documentation |
Convert html format bookmarks to markdown. Useful especially in publishing it on GitHub. Only bookmarks files exported from Microsoft Edge, Google Chrome and Safari are supported now.
bm2md(
file = dir(pattern = ".html$")[1],
out = "bookmarks",
safari = FALSE,
add.rules = NULL
)
file |
bookmarks file in html format. Default: first html file in the current directory |
out |
output markdown file's name, without suffix |
safari |
whether this file is exported from MacOS Safari, default FALSE |
add.rules |
additional rules for some strange items. It should be a tibble or data frame, with first column being |
Yujie Liu
### Example additional rules
add.rules <- data.frame(
pattern = c('.+HREF="(.+)" (LAST|ADD).+>(.+)',
"test"),
replacement = c("* [\\3](\\1)",
"TEST")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.