[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-698003-105":59,"doc-detail-698003-en":130,"doc-similar-698003":161},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","md4r-r-package-markdown-parser-using-the-md4c-library","md4r - R package Markdown parser using the MD4C library","","md4r is an R wrapper for the MD4C “Markdown for C” library, providing CommonMark-compliant markdown parsing plus support for common extensions such as GitHub-flavored markdown and LaTeX equation handling. It includes functions to parse markdown into abstract syntax trees and utilities to explore, translate, and display markdown documents. The package also exposes helper APIs for discovering, describing, and detecting parser flags, and for constructing block nodes representing markdown elements.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/md4r-r-package-markdown-parser-using-the-md4c-library/698003/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/md4r-r-package-markdown-parser-using-the-md4c-library/698003.png","ImageObject",300,407,{"name":92,"@type":93},"Kyle","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-25","2026-11-12",true,{"@type":102,"interactionType":103,"userInteractionCount":24},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What does md4r provide for markdown processing?","Question",{"text":112,"@type":113},"md4r provides an R interface to the MD4C library for parsing markdown (CommonMark compliant) and handling common markdown variants such as GitHub flavored markdown and LaTeX equations. It also offers higher-level utilities to explore and manipulate markdown abstract syntax trees.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How can I find which parser flags are available and used?",{"text":117,"@type":113},"Use flags_available() to list available flags accepted by parse_md(). Use flags_describe() to get a tibble describing each flag, and flags_used(md) to return the flags used in a parsed markdown document.",{"name":119,"@type":110,"acceptedAnswer":120},"What are md_block functions used for?",{"text":121,"@type":113},"md_block functions create block nodes representing block-level markdown elements (e.g., headings, paragraphs, lists, tables, code blocks). They return structures with the specified node class along with md_span and md_node components.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},698003,1794446945,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":24,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":52,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":19,"preview_urls":144},3985741905716,"https://ap-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d","Package ‘md4r’  \nMay 7, 2026  \nTitle Markdown Parser Implemented using the 'MD4C' Library Version [0.5.3.0](0.5.3.0)  \nDescription Provides an R wrapper for the 'MD4C' (Markdown for 'C') library. Functions exist for parsing markdown ('CommonMark'compliant) along with support for other common markdown extensions (e.g. 'GitHub' flavored markdown, 'LaTeX' equation support, etc.) . The package also provides a number of higher level functions for exploring and manipulating markdown abstract syntax trees as well as translating and displaying the documents.  \nLicense MIT + file LICENSE  \nURL [https://rundel.github.io/md4r/](https://rundel.github.io/md4r/), [https://github.com/rundel/md4r](https://github.com/rundel/md4r)[ ](https://github.com/rundel/md4r)BugReports [https://github.com/rundel/md4r/issues](https://github.com/rundel/md4r/issues)  \nImports checkmate, cli, glue, purrr, Rcpp, stringr, textutils, tibble Suggests diffmatchpatch, rlang, styler, testthat (>= 3.0.0), withr LinkingTo Rcpp  \nConfig/testthat/edition 3  \nCopyright John MacFarlane, RStudio, PBC; Martin Mitáš, Colin Rundel Encoding UTF-8  \nConfig/roxygen2/version 8.0.0 NeedsCompilation yes Author Colin Rundel [aut, cre],  \nMartin Mitáš [cph](md4c author: md4c.c, md4c.h, specs/md4c/), RStudio, PBC [cph]([httpuv_url_tools.cpp](httpuv_url_tools.cpp)),  \nJohn MacFarlane [cph](specs/gfm/spec.txt, specs/md4c/spec.txt) Maintainer Colin Rundel \u003C[rundel@gmail.com](rundel@gmail.com)>  \nDepends R (>= 4.1.0) Repository CRAN  \nDate/Publication 2026-05-07 17:33:02 UTC  \nContents  \nflags ............................................. 2  \nmd_block .......................................... 3  \nmd_node_modify ...................................... 4  \nmd_span ........................................... 5  \nmd_text ........................................... 6  \nparse_md .......................................... 7  \nto_html ........................................... 8  \nto_md ............................................ 9  \nIndex 10  \n\n| flags | Markdown parser flags |\n| --- | --- |\n\nDescription  \nThe md4c library supports a number of markdown variants / options. The parsing of these is controlled by flags passed to the parser. The following functions provide commonly used utilities for these flags.  \nUsage  \nflags_available()  \nflags_describe()  \nflags_used(md)  \nArguments  \nmd Markdown ast object  \nValue  \nflags_available() returns a character vector of available flags accepted by parse_md() .  \nflags_describe() returns a tibble with columns flag and description describing each flag. flags_used() returns a character vector of flags used in a parsed markdown document.  \nExamples  \nflags_available()  \nflags_describe()  \nmd_file = system.file(\"examples/commonmark.md\", package = \"md4r\")  \nmd = parse_md(md_file)  \nflags_used(md)  \nmd_block 3  \n\n| md_block | Tools for creating block nodes |\n| --- | --- |\n\nDescription  \nThese functions are used to create block nodes. Blocks nodes are used to represent block level elements in markdown.  \nUsage  \nmd_block_doc(   , flags = \"MD_DIALECT_COMMONMARK\")  \nmd_block_quote(   )  \nmd_block_html(   )  \nmd_block_p(   )  \nmd_block_hr(   )  \nmd_block_code(   , info = \"\", lang = \"\", fence_char = \"`\")  \nmd_block_ul(   , tight = 1, mark = \"*\")  \nmd_block_ol(   , tight = 1L, start = 1, mark_delimiter = \" .\")  \nmd_block_li(   , is_task = 0, task_mark = \" \")  \nmd_block_h(   , level)  \nmd_block_table(   , col_count, body_ row_count, head_ row_count = 1)  \nmd_block_thead(   )  \nmd_block_tbody(   )  \nmd_block_tr(   )  \nmd_block_th(   , align = c(\"default\", \"left\", \"center\", \"right\"))  \nmd_block_td(   , align = c(\"default\", \"left\", \"center\", \"right\"))  \nArguments  \n... Child nodes that will be contained within the block - all must inherit from  \nmd_node.  \nflags Used by md_block_doc to specify the document parser flag(s) .  \n4 md_node_modify  \ninfo Used by md_block_code nodes to specify the code block info string.  \nlang Used by md_block_code nodes to specify the co","cbCaib73erP8F3jM","https://ap.wps.com/l/cbCaib73erP8F3jM","pdf",100485,"English","# flags\n## flags_available\n## flags_describe\n## flags_used\n# md_block\n## md_block_doc\n## md_block_quote\n## md_block_html\n## md_block_p\n## md_block_hr\n## md_block_code\n## md_block_ul\n## md_block_ol\n## md_block_li\n## md_block_h\n## md_block_table\n## md_block_thead\n## md_block_tbody\n## md_block_tr\n## md_block_th\n## md_block_td\n# md_node_modify\n## md_node_modify description\n# md_span\n# md_text\n# parse_md\n# to_html\n# to_md","[{\"question\":\"What does md4r provide for markdown processing?\",\"answer\":\"md4r provides an R interface to the MD4C library for parsing markdown (CommonMark compliant) and handling common markdown variants such as GitHub flavored markdown and LaTeX equations. It also offers higher-level utilities to explore and manipulate markdown abstract syntax trees.\"},{\"question\":\"How can I find which parser flags are available and used?\",\"answer\":\"Use flags_available() to list available flags accepted by parse_md(). Use flags_describe() to get a tibble describing each flag, and flags_used(md) to return the flags used in a parsed markdown document.\"},{\"question\":\"What are md_block functions used for?\",\"answer\":\"md_block functions create block nodes representing block-level markdown elements (e.g., headings, paragraphs, lists, tables, code blocks). They return structures with the specified node class along with md_span and md_node components.\"}]","md4r - R package Markdown parser using the MD4C library | PDF",25,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/95997ec3a309001448781f62aff03f16.webp",983,1272,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/d43b44432ee52cabb164b6a6961d9f8e.webp",982,1270,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/1fb790bfabb087af870f09e9e8353e38.webp",981,1269,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/6487260467b4f3c69bedd64fc3dc53c4.webp",980,1268,{"list":162,"token":66},[163,169,176,183,190,196,202,208,215,222],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":19,"category_name":30,"create_tm":168},697999,"gluedown - Title Wrap Vectors in Markdown Formatting Version 1.0.9 - Package description and R functions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010155709/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=EMb7S%2BNAHrB1NDadyV2ot4HpwPY%3D","gluedown-title-wrap-vectors-in-markdown-formatting-version-109-package-description-and-r-functions",1794446933,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":174,"category_name":30,"create_tm":175},348238,"Markdown Cheat Sheet - Every common Markdown syntax in one page","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911603538/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=yVd6ptH%2BNfslXKZ0jZ0%2BCMMlZXA%3D","markdown-cheat-sheet-every-common-markdown-syntax-in-one-page",15,1790071906,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":181,"category_name":30,"create_tm":182},657499,"A Markdown Interpreter for TEX - Version 3.16.2","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975517355/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=Gbby0Z38b8MjCcnBKFA61RcTSzI%3D","a-markdown-interpreter-for-tex-version-3162",13,1792981474,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":188,"category_name":30,"create_tm":189},348234,"Markdown Syntax - Cheat Sheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911078253/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=htgX6iHXBt1Xczoyel8gNjFqq1Y%3D","markdown-syntax-cheat-sheet",16,1790071896,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":24,"category_name":30,"create_tm":195},657504,"Nemotron-Parse 1.1 - Lightweight Document Parsing and OCR Model","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975517545/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=haH1U%2B5RJg8UUHqglv%2FfS89WE%2BM%3D","nemotron-parse-11-lightweight-document-parsing-and-ocr-model",1792981483,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":19,"category_name":30,"create_tm":201},703190,"LTEM - LLM-Friendly Table-Enhanced Markdown for Table Understanding and Generation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013446028/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=WJZwZRA%2BdTA6jFNGpkIo0mAeXZc%3D","ltem-llm-friendly-table-enhanced-markdown-for-table-understanding-and-generation",1794562577,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":8,"category_name":30,"create_tm":207},759569,"TEXT VIEWER - MARKDOWN","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044463060/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=zwH2K7eHM0FGIU74WNakGBv8Gkc%3D","text-viewer-markdown",1795888135,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":213,"category_name":30,"create_tm":214},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=oeAoSIw0S77qRJxKlUJd92V5SE0%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",913,1785472614,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":220,"category_name":30,"create_tm":221},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=EAtTUXnNYWdOKMRs9p9cpOxrWQ0%3D","xnx-universal-transmitter-installation-manual",854,1776135954,{"doc_id":223,"doc_title":224,"file_type":137,"home_preview_img_url":225,"slug":226,"view_count":227,"category_name":30,"create_tm":228},299143,"THE CANDLESTICK TRADING BIBLE - Trading Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905832418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111279&Signature=97WI27tFTFi5UdPwWAFEbZT2rRk%3D","the-candlestick-trading-bible-trading-guide",804,1789767270]