[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-687455-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-687455-en":130,"doc-similar-687455":149},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","codebraid-preview-for-vs-code-live-pandoc-markdown-preview","Codebraid Preview for VS Code - Live Pandoc Markdown Preview","","Codebraid Preview is a VS Code extension enabling live preview of Pandoc Markdown documents, including optional execution of embedded code. Unlike basic Markdown previews, it preserves Pandoc features by generating the preview through Pandoc itself, tightly integrating source and rendered output with bidirectional scroll synchronization. It also supports LaTeX math via KaTeX and can execute code blocks or inline code through Codebraid or Jupyter kernels, showing code plus output and final results, with nonblocking updates.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/codebraid-preview-for-vs-code-live-pandoc-markdown-preview/687455/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/codebraid-preview-for-vs-code-live-pandoc-markdown-preview/687455.png","ImageObject",300,407,{"name":42,"@type":43},"jay","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-24","2026-11-07",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What does Codebraid Preview add to VS Code when working with Pandoc Markdown?","Question",{"text":62,"@type":63},"It provides a live preview of Pandoc Markdown documents and can optionally execute embedded code, keeping the preview accurate because Pandoc generates it.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How does the extension keep the Markdown source and preview in sync?",{"text":67,"@type":63},"It integrates the source and preview with bidirectional scroll synchronization so navigating one view updates the other.",{"name":69,"@type":60,"acceptedAnswer":70},"How are executable code blocks handled, and what is the impact on preview responsiveness?",{"text":71,"@type":63},"Code blocks and inline code can be executed via Codebraid’s system or through Jupyter kernels, and code execution is nonblocking so the preview stays live and up-to-date while code runs.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},687455,1794083728,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":96,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":79,"read_time":143,"preview_page_count":22,"preview_urls":144},3985747858866,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","Codebraid Preview for VS Code: Pandoc Markdown  \nPreview with Jupyter Kernels  \nGeoffrey M. Poore‡􀀃  \n~~ ~~ F ~~ ~~  \nAbstract—Codebraid Preview is a VS Code extension that provides a live preview of Pandoc Markdown documents with optional support for executing embedded code. Unlike typical Markdown previews, all Pandoc features are fully supported because Pandoc itself generates the preview. The Markdown source and the preview are fully integrated with features like bidirectional scroll sync. The preview supports LaTeX math via KaTeX. Code blocks and inline code can be executed with Codebraid, using either its built-in execution system or Jupyter kernels. For executed code, any combination of the code and its output can be displayed in the preview as well as the ﬁnal document. Code execution is nonblocking, so the preview always remains live and up-to-date even while code is still running.  \nIndex Terms—reproducibility, dynamic report generation, literate programming, Python, Pandoc, Markdown, Project Jupyter  \nIntroduction  \nPandoc [JM22] is increasingly a foundational tool for creating scientiﬁc and technical documents. It provides Pandoc's Markdown and other Markdown variants that add critical features absent in basic Markdown, such as citations, footnotes, mathematics, and tables. At the same time, Pandoc simpliﬁes document creation by providing conversion from Markdown (and other formats) to formats like LaTeX, HTML, Microsoft Word, and PowerPoint. Pandoc is especially useful for documents with embedded code that is executed during the build process. RStudio's RMarkdown [RSt20] and more recently Quarto [RSt22] leverage Pandoc to convert Markdown documents to other formats, with code execution provided by knitr [YX15] . JupyterLab [GP21] centers the writing experience around an interactive, browser-based notebook instead of a Markdown document, but still relies on Pandoc for export to formats other than HTML [Jup22] . There are also ways to interact with a Jupyter Notebook as a Markdown document, such as Jupytext [MWtJT20] and Pandoc's own native Jupyter support.  \nWriting with Pandoc's Markdown or a similar Markdown variant has advantages when multiple output formats are required, since Pandoc provides the conversion capabilities. Pandoc Markdown variants can also serve as a simpler syntax when creating HTML, LaTeX, or similar documents. They allow HTML and LaTeX to be intermixed with Markdown syntax. They also support  \n* [Corresponding author:](Corresponding author: gpoore@uu.edu)[ gpoore@uu.edu](Corresponding author: gpoore@uu.edu)[ ](Corresponding author: gpoore@uu.edu)‡ Union University  \nCopyright © 2022 Geoffrey M. Poore. This is an open-access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.  \nincluding raw chunks of text in other formats such as reStructuredText. When executable code is involved, the RMarkdown-style approach of Markdown with embedded code can sometimes be more convenient than a browser-based Jupyter notebook since the writing process involves more direct interaction with the complete document source.  \nWhile using a Pandoc Markdown variant as a source format brings many advantages, the actual writing process itself can be less than ideal, especially when executable code is involved. Pandoc Markdown variants are so powerful precisely because they provide so many extensions to Markdown, but this also means that they can only be fully rendered by Pandoc itself. When text editors such as VS Code provide a built-in Markdown preview, typically only a small subset of Pandoc features is supported, so the representation of the document output will be inaccurate. Some editors provide a visual Markdown editing mode, in which a partially rendered version of the document is displayed in the editor and menus or keyboard shortcuts may replace the di","cbCaigPRxRvu3llJ","https://ap.wps.com/l/cbCaigPRxRvu3llJ","pdf",321444,"English","# Introduction\n## Writing with Pandoc’s Markdown and Pandoc Variants\n## Limitations of Editor-Based Markdown Preview\n## Using Pandoc for HTML/PDF Preview\n## Codebraid Preview Overview\n## Features and Challenges","[{\"question\":\"What does Codebraid Preview add to VS Code when working with Pandoc Markdown?\",\"answer\":\"It provides a live preview of Pandoc Markdown documents and can optionally execute embedded code, keeping the preview accurate because Pandoc generates it.\"},{\"question\":\"How does the extension keep the Markdown source and preview in sync?\",\"answer\":\"It integrates the source and preview with bidirectional scroll synchronization so navigating one view updates the other.\"},{\"question\":\"How are executable code blocks handled, and what is the impact on preview responsiveness?\",\"answer\":\"Code blocks and inline code can be executed via Codebraid’s system or through Jupyter kernels, and code execution is nonblocking so the preview stays live and up-to-date while code runs.\"}]","Codebraid Preview for VS Code - Live Pandoc Markdown Preview | PDF",13,[145],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/57e2aa9b9a5d00c9cfa3b35397eef1ac.webp",983,1272,{"list":150,"token":11},[151,158,164,170,177,183,189,195,201,207],{"doc_id":152,"doc_title":153,"file_type":137,"home_preview_img_url":154,"slug":155,"view_count":156,"category_name":29,"create_tm":157},348237,"rmarkdown Cheatsheet 2.0","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229911603589/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=QlaNlXUbkL9xUj3vD7gwTKniOdc%3D","rmarkdown-cheatsheet-20",15,1790071904,{"doc_id":159,"doc_title":160,"file_type":137,"home_preview_img_url":161,"slug":162,"view_count":96,"category_name":29,"create_tm":163},657587,"Pandoc for TeXnicians - Presentation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975592280/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=i2Ijlaq32JNdKi3x51YVS90zQB0%3D","pandoc-for-texnicians-presentation",1792983945,{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":156,"category_name":29,"create_tm":169},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=1796111999&Signature=XYPNRLGFgCLdxloYLqFbdLfpWic%3D","markdown-cheat-sheet-every-common-markdown-syntax-in-one-page",1790071906,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":29,"create_tm":176},657501,"Writing Technical Papers with Markdown and Pandoc","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975517438/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=tvKAei8nQdiIh3VKUoKdAMRfPAo%3D","writing-technical-papers-with-markdown-and-pandoc",12,1792981476,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":26,"category_name":29,"create_tm":182},732859,"Pandoc User’s Guide - Using pandoc","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031780042/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=R%2BH6ymjgJbbu9EYqvUKQVME8f18%3D","pandoc-users-guide-using-pandoc",1795382560,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":33,"category_name":29,"create_tm":188},685845,"Markdown Cheatsheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000227815/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=V9ywGTRJ8Udi43CAi2UK4qHip2I%3D","markdown-cheatsheet-685845",1794019540,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":30,"category_name":29,"create_tm":194},732862,"rmarkdown - Dynamic Documents for R Version 2.31","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031780075/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=Wk01bneitahoqffMKq41FXHGsw8%3D","rmarkdown-dynamic-documents-for-r-version-231",1795382571,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":96,"category_name":29,"create_tm":200},685841,"Markdown Syntax Guide - Quick Reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000227664/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=LP8AqWtE4zVgkpeRp%2FIG74NkHpo%3D","markdown-syntax-guide-quick-reference",1794019531,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":96,"category_name":29,"create_tm":206},687557,"JUPYTER (IPYTHON) NOTEBOOK CHEATSHEET - A Quick Setup and Usage Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001262389/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=7UabcRIeG2%2FeqzrbN0m34LSu%2B60%3D","jupyter-ipython-notebook-cheatsheet-a-quick-setup-and-usage-guide",1794084127,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":33,"category_name":29,"create_tm":212},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=1796111999&Signature=ndmFTk4MOCr6LbWsNsSbq3NqZHI%3D","gluedown-title-wrap-vectors-in-markdown-formatting-version-109-package-description-and-r-functions",1794446933]