\n","author":{"name":"Yihui Xie","email":"xie@yihui.name","date":"2026-04-09T22:44:24-05:00"},"committer":{"name":"Yihui Xie","email":"xie@yihui.name","date":"2026-04-09T22:44:24-05:00"},"timestamp":1775792664,"time_from_now":"8天前"},"author":{"id":null,"login":"Yihui Xie","name":"Yihui Xie","type":null,"image_url":"system/lets/letter_avatars/2/Y/70_163_90/120.png"},"committer":{"id":null,"login":"Yihui Xie","name":"Yihui Xie","type":null,"image_url":"system/lets/letter_avatars/2/Y/70_163_90/120.png"}},"commits_count":657,"zip_url":"https://www.gitlink.org.cn/api/NSCCN/litedown/archive/main.zip","tar_url":"https://www.gitlink.org.cn/api/NSCCN/litedown/archive/main.tar.gz","entries":[{"name":".github","path":".github","sha":"0e55d4e62afc0c1a9cad8f923cc754c612657458","type":"dir","submodule_git_url":null,"size":0,"is_readme_file":false,"content":null,"target":null,"commit":{"message":"Move playground into site and simplify workflow\n","sha":"55bc20b4c69397f0d54eb9ef9354eacdc3a4cf85","created_at":"2026-04-03 22:50","time_from_now":"15天前","created_at_unix":1775227831}},{"name":"R","path":"R","sha":"0b2f61d0717e4445965e89687a11e613f1673af6","type":"dir","submodule_git_url":null,"size":0,"is_readme_file":false,"content":null,"target":null,"commit":{"message":"limit the scope of escaping the closing tag when embedding JS: only escape \n","sha":"4b6a50cfaf8a7ea335cf5a1ebbafb86c8cfcd94b","created_at":"2026-04-10 11:44","time_from_now":"8天前","created_at_unix":1775792664}},{"name":"docs","path":"docs","sha":"97c402fd95eac349a5216739abf186fc0b562104","type":"dir","submodule_git_url":null,"size":0,"is_readme_file":false,"content":null,"target":null,"commit":{"message":"document the playground\n","sha":"eaf8fc6506369bc2649d102826e5f46eefdb7f66","created_at":"2026-04-06 13:28","time_from_now":"12天前","created_at_unix":1775453297}},{"name":"examples","path":"examples","sha":"188df48497cd036e868e649cd661ece58bef9c88","type":"dir","submodule_git_url":null,"size":0,"is_readme_file":false,"content":null,"target":null,"commit":{"message":"provide a new chunk option `filter` to filter the output list via an arbitrary custom function, and also provide a shorthand `filter = 'interleave'` to resolve #106 specifically\n","sha":"2dc15ab85ea81b731d44d02d1b0fed6ea3b184e7","created_at":"2025-12-17 12:46","time_from_now":"4个月前","created_at_unix":1765946775}},{"name":"inst","path":"inst","sha":"f2ddbb21f688643e597fa703dd840dce1185c0ae","type":"dir","submodule_git_url":null,"size":0,"is_readme_file":false,"content":null,"target":null,"commit":{"message":"Allow setting of html lang (#121)\n\nCo-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>\nCo-authored-by: yihui <163582+yihui@users.noreply.github.com>\nCo-authored-by: Yihui Xie ","sha":"5b2fd5cb290ee192bdb0b2be663339483553e9ff","created_at":"2026-03-20 06:49","time_from_now":"29天前","created_at_unix":1773960544}},{"name":"man","path":"man","sha":"a4e73d0aa7cea5e31b81255d7b6d9483e064f9a3","type":"dir","submodule_git_url":null,"size":0,"is_readme_file":false,"content":null,"target":null,"commit":{"message":"close #111: clarify that fuse(output = '.md'/'markdown') generates the intermediate Markdown output\n","sha":"a0131fdc043d4e4b170611797a6dd117f17ce780","created_at":"2025-12-18 14:37","time_from_now":"4个月前","created_at_unix":1766039841}},{"name":"playground","path":"playground","sha":"153da636d3be11c9d2befbd0a539c91c337a2cd3","type":"dir","submodule_git_url":null,"size":0,"is_readme_file":false,"content":null,"target":null,"commit":{"message":"move playground/_default.Rmd from the default site template to\nlitedown's own playground since this _default.Rmd is very specific about\nlitedown\n\nalso set options(litedown.html.template = TRUE) to make sure full html\nis generated (we need full html in iframe)\n","sha":"1200508efd252813b60baa1af9fdf68dedf4cb0d","created_at":"2026-04-06 11:41","time_from_now":"12天前","created_at_unix":1775446863}},{"name":"site","path":"site","sha":"2a8daac7bfde304af793da0c0f53bd68c4d1e124","type":"dir","submodule_git_url":null,"size":0,"is_readme_file":false,"content":null,"target":null,"commit":{"message":"Move warmup to auto-run and await loadDefault\n\nRemove the manual warmup sequence from initWebR. Wait for loadDefault\nto finish so the editor is populated before auto-run. Set a loading\nmessage and call run() automatically — that run will warm the fuse\npipeline as part of normal execution, then hide the overlay.\n","sha":"cd740c076215b7ca6a2501eb51591ea8c68ca465","created_at":"2026-04-09 00:29","time_from_now":"10天前","created_at_unix":1775665788}},{"name":"tests","path":"tests","sha":"91d50940a3bfa63f1e911eed07c8958850fbfee6","type":"dir","submodule_git_url":null,"size":0,"is_readme_file":false,"content":null,"target":null,"commit":{"message":"fix #88: the prefix `./` should be removed from `fig.dir` instead of being substituted with `.`(#94)\n\nCo-authored-by: Yihui Xie ","sha":"6c4ed30c0041be72b6f0697580f4b52d8bbe5df4","created_at":"2025-10-01 13:08","time_from_now":"7个月前","created_at_unix":1759295303}},{"name":"vignettes","path":"vignettes","sha":"e5b02035b21217b728b0e4392d70659328e9e41a","type":"dir","submodule_git_url":null,"size":0,"is_readme_file":false,"content":null,"target":null,"commit":{"message":"move tests for Markdown options from the R script to an Rmd example, which is rendered on the package site\n","sha":"4692835eaaa2b0f0fc39ec7106a7a91986311e16","created_at":"2025-04-08 05:03","time_from_now":"1年前","created_at_unix":1744059829}},{"name":".Rbuildignore","path":".Rbuildignore","sha":"d887e527827aafe37553ad10509c01d9bdd6fec9","type":"file","submodule_git_url":null,"size":111,"is_readme_file":null,"content":null,"target":null,"commit":{"message":"Add webR-powered playground for interactive Rmd editing and preview (#124)\n\nCo-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>\nCo-authored-by: yihui-bot <264330240+yihui-bot@users.noreply.github.com>\nCo-authored-by: Yihui Xie ","sha":"ef05a6d7f396245dc724a965a20453e2fce737e9","created_at":"2026-04-03 12:26","time_from_now":"15天前","created_at_unix":1775190389}},{"name":".gitignore","path":".gitignore","sha":"7ecf9d63090449a650562089fd378288d22f202b","type":"file","submodule_git_url":null,"size":126,"is_readme_file":null,"content":null,"target":null,"commit":{"message":"make citations work for single chapter preview\n","sha":"e212cc9ffa4b0eafb7fa5fd0b37a203e6b8eaa10","created_at":"2025-02-27 00:13","time_from_now":"1年前","created_at_unix":1740586400}},{"name":"DESCRIPTION","path":"DESCRIPTION","sha":"8fe4ce75115d5e5e4f2057edddb178395d78d8a6","type":"file","submodule_git_url":null,"size":1543,"is_readme_file":null,"content":null,"target":null,"commit":{"message":"limit the scope of escaping the closing tag when embedding JS: only escape \n","sha":"4b6a50cfaf8a7ea335cf5a1ebbafb86c8cfcd94b","created_at":"2026-04-10 11:44","time_from_now":"8天前","created_at_unix":1775792664}},{"name":"LICENSE","path":"LICENSE","sha":"addf0322e2d6fffdca50b14a77618879bceec9a9","type":"file","submodule_git_url":null,"size":44,"is_readme_file":null,"content":null,"target":null,"commit":{"message":"qs has been removed from CRAN\n","sha":"c194e505f913ab6e66f68c57f1e7403c1a4adb37","created_at":"2026-01-18 01:54","time_from_now":"3个月前","created_at_unix":1768672473}},{"name":"LICENSE.md","path":"LICENSE.md","sha":"6743f2f2f0e2b0c3d1c4363ea49f808fa1c192db","type":"file","submodule_git_url":null,"size":1112,"is_readme_file":0,"content":null,"target":null,"commit":{"message":"qs has been removed from CRAN\n","sha":"c194e505f913ab6e66f68c57f1e7403c1a4adb37","created_at":"2026-01-18 01:54","time_from_now":"3个月前","created_at_unix":1768672473}},{"name":"Makefile","path":"Makefile","sha":"411076c9052421e7b41f9dc67201f4ecb01ffcd2","type":"file","submodule_git_url":null,"size":203,"is_readme_file":null,"content":null,"target":null,"commit":{"message":"move tests for Markdown options from the R script to an Rmd example, which is rendered on the package site\n","sha":"4692835eaaa2b0f0fc39ec7106a7a91986311e16","created_at":"2025-04-08 05:03","time_from_now":"1年前","created_at_unix":1744059829}},{"name":"NAMESPACE","path":"NAMESPACE","sha":"a4e3bb5311a8ce7fd70551b0d86bdc2c779e4686","type":"file","submodule_git_url":null,"size":1757,"is_readme_file":null,"content":null,"target":null,"commit":{"message":"support more attributes for the css/js engines, such as href, src, defer, and type, etc.\n","sha":"ff4c5afaddb088554b50ddcf68739d63641fb44c","created_at":"2025-02-19 07:03","time_from_now":"1年前","created_at_unix":1739919802}},{"name":"NEWS.md","path":"NEWS.md","sha":"1ed464fb5b284cce3bc11f211fcf7c277c3e1549","type":"file","submodule_git_url":null,"size":15180,"is_readme_file":0,"content":null,"target":null,"commit":{"message":"limit the scope of escaping the closing tag when embedding JS: only escape \n","sha":"4b6a50cfaf8a7ea335cf5a1ebbafb86c8cfcd94b","created_at":"2026-04-10 11:44","time_from_now":"8天前","created_at_unix":1775792664}},{"name":"README.md","path":"README.md","sha":"040a530f797437d22b0a164839835f4bbdac5d20","type":"file","submodule_git_url":null,"size":3003,"is_readme_file":true,"content":null,"target":null,"commit":{"message":"render examples for the package site if the examples/ folder exists\n","sha":"e2cf9cf29755001498b82fe091e7439c83c6f523","created_at":"2025-02-21 12:44","time_from_now":"1年前","created_at_unix":1740113078}},{"name":"litedown.Rproj","path":"litedown.Rproj","sha":"9d4c5683f559ab4217192b8b5de2f93645570a2a","type":"file","submodule_git_url":null,"size":445,"is_readme_file":null,"content":null,"target":null,"commit":{"message":"add a new function fuel() for adding assets dynamically (e.g., in a code chunk)\n","sha":"496e2379120d2f9ee5b1a09bc8aa9603874f980e","created_at":"2024-12-19 13:43","time_from_now":"1年前","created_at_unix":1734587004}}]},"projectMenu":[{"menu_name":"home"},{"menu_name":"code"},{"menu_name":"issues"},{"menu_name":"pulls"},{"menu_name":"devops"},{"menu_name":"versions"},{"menu_name":"wiki"},{"menu_name":"resources"},{"menu_name":"activity"}],"projectReadMe":"%7B%22type%22%3A%22file%22%2C%22encoding%22%3A%22base64%22%2C%22size%22%3A3003%2C%22name%22%3A%22README.md%22%2C%22path%22%3A%22README.md%22%2C%22content%22%3A%22%60%60%60%20%20%20%20%20%20%20%20%20%5Cn%20%20______%20%20%5Cn%20%2F%20%20%20%E2%9A%A1%20%20%5C%5C%5Cn%2Flitedown%5C%5C%5Cn%5C%5C%20%20%20%E2%9A%A1%20%20%20%20%2F%5Cn%20%5C%5C______%2F%5Cn%60%60%60%5Cn%5Cn%23%20R%20Markdown%20Reimagined%5Cn%5Cn%3C!--%20badges%3A%20start%20--%3E%5Cn%5Cn%5B!%5BR-CMD-check%5D(https%3A%2F%2Fgithub.com%2Fyihui%2Flitedown%2Factions%2Fworkflows%2FR-CMD-check.yaml%2Fbadge.svg)%5D(https%3A%2F%2Fgithub.com%2Fyihui%2Flitedown%2Factions%2Fworkflows%2FR-CMD-check.yaml)%5Cn%5B!%5BCRAN%5Cnrelease%5D(https%3A%2F%2Fwww.r-pkg.org%2Fbadges%2Fversion%2Flitedown)%5D(https%3A%2F%2Fcran.r-project.org%2Fpackage%3Dlitedown)%5Cn%5B!%5Blitedown%20on%5Cnr-universe%5D(https%3A%2F%2Fyihui.r-universe.dev%2Fbadges%2Flitedown)%5D(https%3A%2F%2Fyihui.r-universe.dev%2Flitedown)%5Cn%5B!%5BCodecov%20test%5Cncoverage%5D(https%3A%2F%2Fcodecov.io%2Fgh%2Fyihui%2Flitedown%2Fbranch%2Fmain%2Fgraph%2Fbadge.svg)%5D(https%3A%2F%2Fapp.codecov.io%2Fgh%2Fyihui%2Flitedown%3Fbranch%3Dmain)%5Cn%5Cn%3C!--%20badges%3A%20end%20--%3E%5Cn%5CnThis%20package%20provides%20a%20trimmed-down%20and%20reimagined%20implementation%20of%20%5BR%5CnMarkdown%5D(https%3A%2F%2Frmarkdown.rstudio.com).%20It%20is%20much%20more%20lightweight%2C%20at%20the%5Cnprice%20of%20dropping%20some%20features.%20It%20does%20not%20depend%20on%20the%20R%20package%20**knitr**%5Cnor%20the%20system%20package%20Pandoc.%5Cn%5CnPlease%20consider%20this%20package%20experimental%20for%20now.%20The%20documentation%20is%20also%5Cnvery%20incomplete%20and%20still%20under%20development.%5Cn%5Cn%23%23%20Usage%5Cn%5Cn%23%23%23%20Installation%5Cn%5CnAt%20the%20moment%2C%20you%20are%20recommended%20to%20install%20the%20development%20version%20from%5Cnr-universe%3A%5Cn%5Cn%60%60%60%20r%5Cninstall.packages('litedown'%2C%20repos%20%3D%20c('https%3A%2F%2Fyihui.r-universe.dev'%2C%20'https%3A%2F%2Fcloud.r-project.org'))%5Cn%60%60%60%5Cn%5Cn%23%23%23%20Markdown%20rendering%5Cn%5CnThe%20function%20%60litedown%3A%3Amark()%60%20is%20based%20on%20the%20R%20package%5Cn%5B**commonmark**%5D(https%3A%2F%2Fgithub.com%2Fr-lib%2Fcommonmark)%2C%20and%20renders%20Markdown%20to%5Cnvarious%20output%20formats%20supported%20by%20**commonmark**%2C%20which%20are%20primarily%20HTML%20and%5CnLaTeX.%20MS%20Office%20formats%20are%20not%20supported.%5Cn%5Cn%23%23%23%20Knitting%5Cn%5CnR%20Markdown%20documents%20need%20to%20be%20knitted%20to%20Markdown%20before%20being%20rendered%20to%20a%5Cntarget%20output%20format.%20The%20function%20%60litedown%3A%3Afuse()%60%20plays%20a%20role%20similar%20to%5Cn%60knitr%3A%3Aknit()%60%20and%20%60rmarkdown%3A%3Arender()%60.%20It%20fuses%20program%20code%20with%5Cnnarratives%2C%20i.e.%2C%20it%20executes%20code%20in%20the%20source%20document%20and%20interweaves%5Cnresults%20with%20narratives%20in%20the%20output%20document.%5Cn%5Cn%23%23%23%20Previewing%5Cn%5CnTry%20%60litedown%3A%3Aroam()%60.%5Cn%5Cn%23%23%20Scope%5Cn%5CnWe%20want%20to%20limit%20the%20scope%20of%20this%20package.%20Most%20planned%20features%20have%20been%5Cn(re-)implemented%20so%20far%2C%20such%20as%20reports%2C%20slides%2C%20books%2C%20websites%20(including%5Cnpackage%20sites)%2C%20and%20paged%20HTML%20documents%2C%20etc.%20See%20the%20set%20%24R%24%20below%3A%5Cn%5Cn%24%24%5C%5Cmathrm%7Blitedown%7D%20%3D%20%5C%5Cmin%7B%5C%5C%7BR%5C%5C%7D%7D%20%2B%20%5C%5C%7BD_i%5C%5C%7D%20-%20%5C%5C%7BD_e%5C%5C%7D%20%2B%20%5C%5C%7BJ%5C%5C%7D%24%24%5Cn%5Cn-%20%20%20%24R%24%20%3D%20**knitr**%20%2B%20**evaluate**%20%2B%20**rmarkdown**%20%2B%20**bookdown**%20%2B%5Cn%20%20%20%20**blogdown**%20%2B%20**pagedown**%20%2B%20**pkgdown**%20%2B%20**xaringan**%20%2B%20**tufte**%20%2B%5Cn%20%20%20%20**distill**%20%2B%20**htmlwidgets**%5Cn%5Cn-%20%20%20%24D_i%24%20%3D%20(internal%20dependencies)%20**commonmark**%20%2B%20**xfun**%5Cn%5Cn-%20%20%20%24D_e%24%20%3D%20(external%20dependencies)%20Pandoc%20%2B%20Bootstrap%20%2B%20jQuery%20%2B%20GitBook%20%2B%5Cn%20%20%20%20Hugo%20%2B%20paged.js%20%2B%20remark.js%20%2B%20tufte.css%20%2B%20distill.js%2F.css%20%2B%20...%5Cn%5Cn-%20%20%20%24J%24%20%3D%20Lightweight%20%5Bvanilla%20JavaScript%2FCSS%5D(https%3A%2F%2Fgithub.com%2Fyihui%2Flite.js)%5Cn%5CnPlease%20feel%20free%20to%20file%20feature%20requests%20anyway%2C%20but%20we%20may%20be%20a%20little%5Cnconservative%20when%20considering%20them%20(we%20will%20take%20votes%20into%20consideration%2C%20so%5Cnplease%20upvote%20features%20you%20like).%5Cn%5Cn%23%23%20License%5Cn%5CnThe%20**litedown**%20package%20is%20licensed%20under%20MIT.%5Cn%22%2C%22sha%22%3A%22040a530f797437d22b0a164839835f4bbdac5d20%22%2C%22replace_content%22%3A%22%60%60%60%20%20%20%20%20%20%20%20%20%5Cn%20%20______%20%20%5Cn%20%2F%20%20%20%E2%9A%A1%20%20%5C%5C%5Cn%2Flitedown%5C%5C%5Cn%5C%5C%20%20%20%E2%9A%A1%20%20%20%20%2F%5Cn%20%5C%5C______%2F%5Cn%60%60%60%5Cn%5Cn%23%20R%20Markdown%20Reimagined%5Cn%5Cn%3C!--%20badges%3A%20start%20--%3E%5Cn%5Cn%5B!%5BR-CMD-check%5D(https%3A%2F%2Fgithub.com%2Fyihui%2Flitedown%2Factions%2Fworkflows%2FR-CMD-check.yaml%2Fbadge.svg)%5D(https%3A%2F%2Fgithub.com%2Fyihui%2Flitedown%2Factions%2Fworkflows%2FR-CMD-check.yaml)%5Cn%5B!%5BCRAN%5Cnrelease%5D(https%3A%2F%2Fwww.r-pkg.org%2Fbadges%2Fversion%2Flitedown)%5D(https%3A%2F%2Fcran.r-project.org%2Fpackage%3Dlitedown)%5Cn%5B!%5Blitedown%20on%5Cnr-universe%5D(https%3A%2F%2Fyihui.r-universe.dev%2Fbadges%2Flitedown)%5D(https%3A%2F%2Fyihui.r-universe.dev%2Flitedown)%5Cn%5B!%5BCodecov%20test%5Cncoverage%5D(https%3A%2F%2Fcodecov.io%2Fgh%2Fyihui%2Flitedown%2Fbranch%2Fmain%2Fgraph%2Fbadge.svg)%5D(https%3A%2F%2Fapp.codecov.io%2Fgh%2Fyihui%2Flitedown%3Fbranch%3Dmain)%5Cn%5Cn%3C!--%20badges%3A%20end%20--%3E%5Cn%5CnThis%20package%20provides%20a%20trimmed-down%20and%20reimagined%20implementation%20of%20%5BR%5CnMarkdown%5D(https%3A%2F%2Frmarkdown.rstudio.com).%20It%20is%20much%20more%20lightweight%2C%20at%20the%5Cnprice%20of%20dropping%20some%20features.%20It%20does%20not%20depend%20on%20the%20R%20package%20**knitr**%5Cnor%20the%20system%20package%20Pandoc.%5Cn%5CnPlease%20consider%20this%20package%20experimental%20for%20now.%20The%20documentation%20is%20also%5Cnvery%20incomplete%20and%20still%20under%20development.%5Cn%5Cn%23%23%20Usage%5Cn%5Cn%23%23%23%20Installation%5Cn%5CnAt%20the%20moment%2C%20you%20are%20recommended%20to%20install%20the%20development%20version%20from%5Cnr-universe%3A%5Cn%5Cn%60%60%60%20r%5Cninstall.packages('litedown'%2C%20repos%20%3D%20c('https%3A%2F%2Fyihui.r-universe.dev'%2C%20'https%3A%2F%2Fcloud.r-project.org'))%5Cn%60%60%60%5Cn%5Cn%23%23%23%20Markdown%20rendering%5Cn%5CnThe%20function%20%60litedown%3A%3Amark()%60%20is%20based%20on%20the%20R%20package%5Cn%5B**commonmark**%5D(https%3A%2F%2Fgithub.com%2Fr-lib%2Fcommonmark)%2C%20and%20renders%20Markdown%20to%5Cnvarious%20output%20formats%20supported%20by%20**commonmark**%2C%20which%20are%20primarily%20HTML%20and%5CnLaTeX.%20MS%20Office%20formats%20are%20not%20supported.%5Cn%5Cn%23%23%23%20Knitting%5Cn%5CnR%20Markdown%20documents%20need%20to%20be%20knitted%20to%20Markdown%20before%20being%20rendered%20to%20a%5Cntarget%20output%20format.%20The%20function%20%60litedown%3A%3Afuse()%60%20plays%20a%20role%20similar%20to%5Cn%60knitr%3A%3Aknit()%60%20and%20%60rmarkdown%3A%3Arender()%60.%20It%20fuses%20program%20code%20with%5Cnnarratives%2C%20i.e.%2C%20it%20executes%20code%20in%20the%20source%20document%20and%20interweaves%5Cnresults%20with%20narratives%20in%20the%20output%20document.%5Cn%5Cn%23%23%23%20Previewing%5Cn%5CnTry%20%60litedown%3A%3Aroam()%60.%5Cn%5Cn%23%23%20Scope%5Cn%5CnWe%20want%20to%20limit%20the%20scope%20of%20this%20package.%20Most%20planned%20features%20have%20been%5Cn(re-)implemented%20so%20far%2C%20such%20as%20reports%2C%20slides%2C%20books%2C%20websites%20(including%5Cnpackage%20sites)%2C%20and%20paged%20HTML%20documents%2C%20etc.%20See%20the%20set%20%24R%24%20below%3A%5Cn%5Cn%24%24%5C%5Cmathrm%7Blitedown%7D%20%3D%20%5C%5Cmin%7B%5C%5C%7BR%5C%5C%7D%7D%20%2B%20%5C%5C%7BD_i%5C%5C%7D%20-%20%5C%5C%7BD_e%5C%5C%7D%20%2B%20%5C%5C%7BJ%5C%5C%7D%24%24%5Cn%5Cn-%20%20%20%24R%24%20%3D%20**knitr**%20%2B%20**evaluate**%20%2B%20**rmarkdown**%20%2B%20**bookdown**%20%2B%5Cn%20%20%20%20**blogdown**%20%2B%20**pagedown**%20%2B%20**pkgdown**%20%2B%20**xaringan**%20%2B%20**tufte**%20%2B%5Cn%20%20%20%20**distill**%20%2B%20**htmlwidgets**%5Cn%5Cn-%20%20%20%24D_i%24%20%3D%20(internal%20dependencies)%20**commonmark**%20%2B%20**xfun**%5Cn%5Cn-%20%20%20%24D_e%24%20%3D%20(external%20dependencies)%20Pandoc%20%2B%20Bootstrap%20%2B%20jQuery%20%2B%20GitBook%20%2B%5Cn%20%20%20%20Hugo%20%2B%20paged.js%20%2B%20remark.js%20%2B%20tufte.css%20%2B%20distill.js%2F.css%20%2B%20...%5Cn%5Cn-%20%20%20%24J%24%20%3D%20Lightweight%20%5Bvanilla%20JavaScript%2FCSS%5D(https%3A%2F%2Fgithub.com%2Fyihui%2Flite.js)%5Cn%5CnPlease%20feel%20free%20to%20file%20feature%20requests%20anyway%2C%20but%20we%20may%20be%20a%20little%5Cnconservative%20when%20considering%20them%20(we%20will%20take%20votes%20into%20consideration%2C%20so%5Cnplease%20upvote%20features%20you%20like).%5Cn%5Cn%23%23%20License%5Cn%5CnThe%20**litedown**%20package%20is%20licensed%20under%20MIT.%5Cn%22%7D"},"zoneReducer":{"zoneDetail":"","newsDetail":""}}
目录
  ______  
 /   ⚡  \
/litedown\
\   ⚡    /
 \______/

R Markdown Reimagined

R-CMD-check CRAN
release litedown on
r-universe Codecov test
coverage

This package provides a trimmed-down and reimagined implementation of R Markdown. It is much more lightweight, at the price of dropping some features. It does not depend on the R package knitr or the system package Pandoc.

Please consider this package experimental for now. The documentation is also very incomplete and still under development.

Usage

Installation

At the moment, you are recommended to install the development version from r-universe:

install.packages('litedown', repos = c('https://yihui.r-universe.dev', 'https://cloud.r-project.org'))

Markdown rendering

The function litedown::mark() is based on the R package commonmark, and renders Markdown to various output formats supported by commonmark, which are primarily HTML and LaTeX. MS Office formats are not supported.

Knitting

R Markdown documents need to be knitted to Markdown before being rendered to a target output format. The function litedown::fuse() plays a role similar to knitr::knit() and rmarkdown::render(). It fuses program code with narratives, i.e., it executes code in the source document and interweaves results with narratives in the output document.

Previewing

Try litedown::roam().

Scope

We want to limit the scope of this package. Most planned features have been (re-)implemented so far, such as reports, slides, books, websites (including package sites), and paged HTML documents, etc. See the set RR below:

litedown=min{R}+{Di}{De}+{J}\mathrm{litedown} = \min{\{R\}} + \{D_i\} - \{D_e\} + \{J\}

  • RR = knitr + evaluate + rmarkdown + bookdown + blogdown + pagedown + pkgdown + xaringan + tufte + distill + htmlwidgets

  • DiD_i = (internal dependencies) commonmark + xfun

  • DeD_e = (external dependencies) Pandoc + Bootstrap + jQuery + GitBook + Hugo + paged.js + remark.js + tufte.css + distill.js/.css + …

  • JJ = Lightweight vanilla JavaScript/CSS

Please feel free to file feature requests anyway, but we may be a little conservative when considering them (we will take votes into consideration, so please upvote features you like).

License

The litedown package is licensed under MIT.

关于

轻量级Markdown文档转换工具

1.7 MB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号