VOOZH about

URL: https://www.nuget.org/packages/MeshWeaver.Markdown/

⇱ NuGet Gallery | MeshWeaver.Markdown 2.5.0




MeshWeaver.Markdown 2.5.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package MeshWeaver.Markdown --version 2.5.0
 
 
NuGet\Install-Package MeshWeaver.Markdown -Version 2.5.0
 
 
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MeshWeaver.Markdown" Version="2.5.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MeshWeaver.Markdown" Version="2.5.0" />
 
Directory.Packages.props
<PackageReference Include="MeshWeaver.Markdown" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MeshWeaver.Markdown --version 2.5.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MeshWeaver.Markdown, 2.5.0"
 
 
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package MeshWeaver.Markdown@2.5.0
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MeshWeaver.Markdown&version=2.5.0
 
Install as a Cake Addin
#tool nuget:?package=MeshWeaver.Markdown&version=2.5.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

MeshWeaver.Markdown

Overview

MeshWeaver.Markdown is a powerful component of the MeshWeaver ecosystem that provides advanced markdown processing with interactive capabilities. This library enables rendering of standard markdown along with executable code blocks, diagrams, and integration with the MeshWeaver layout system for dynamic content visualization.

Features

  • Interactive markdown with executable code blocks
  • Code execution via kernel integration
  • Metadata and frontmatter support
  • Mermaid diagram rendering
  • Custom code block rendering options
  • Layout area integration for displaying results
  • Markdown to HTML conversion
  • Code syntax highlighting
  • Extensible markdown processing pipeline
  • Customizable rendering options

Interactive Markdown Capabilities

Metadata (Frontmatter)

Interactive markdown supports YAML frontmatter at the beginning of the file:

---
Title: "Interactive Markdown: The Next Generation Reporting"
Abstract: "A brief description of the article content"
Thumbnail: "images/InteractiveMarkdown.png"
VideoUrl: "https://www.youtube.com/embed/6J16W9qcZFY"
Published: "2025-01-26"
Authors:
 - "Roland Bürgi"
Tags:
 - "Documentation"
 - "Conceptual"
 - "Markdown"
---

Executable Code Blocks

Code blocks can be executed and their results displayed:

```csharp --render HelloWorld --show-header
"Hello World " + DateTime.Now.ToString()
```

Options for code blocks:

  • --render <area>: Renders the output to the specified layout area
  • --show-header: Shows the complete code block including the header
  • --show-code: Shows only the code without the header

Mermaid Diagrams

Create diagrams using Mermaid syntax:

```mermaid
sequenceDiagram
 participant View
 participant Article
 participant Kernel
 View->>Article: Requests Content
 Article->>Kernel: Submits Code Execution
 Article->>View: Issues HTML
 View->>Kernel: Requests Layout Area
 Kernel->>View: Returns Layout Area
```

Usage

This component is primarily used in conjunction with the library, which provides a complete solution for managing and displaying markdown-based content. Please refer to the Articles documentation for configuration and implementation details.

Interactive Markdown Process Flow

The execution flow for interactive markdown:

  1. Markdown with code blocks is parsed
  2. Code blocks with execution flags are extracted
  3. Code is sent to appropriate language kernel for execution
  4. Results are captured and rendered in specified layout areas
  5. Final HTML with interactive elements is returned
sequenceDiagram
 participant View
 participant Article
 participant Kernel
 View->>Article: Requests Content
 Article->>Kernel: Submits Code Execution
 Article->>View: Issues HTML
 View->>Kernel: Requests Layout Area
 Kernel->>View: Returns Layout Area

Key Concepts

  • Interactive Markdown: Markdown with executable code blocks
  • Code Execution: Running code within markdown documents
  • Kernel Integration: Connection to language execution engines
  • Layout Areas: Named regions for displaying execution results
  • Markdown Metadata: YAML frontmatter for document properties
  • Rendering Pipeline: Extensible process for transforming markdown to HTML

Integration with MeshWeaver

  • Works with MeshWeaver.Kernel for code execution
  • Integrates with MeshWeaver.Layout for displaying results
  • Supports MeshWeaver.Articles for documentation
  • Used by MeshWeaver notebooks and reporting features

Related Projects

  • - Kernel execution engine
  • - Article management
  • - Layout rendering

See Also

Refer to the for more information about the overall project.

Product Versions Compatible and additional computed target framework versions.
.NET net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on MeshWeaver.Markdown:

Package Downloads
MeshWeaver.Hosting

Package Description

MeshWeaver.Blazor

Package Description

MeshWeaver.ContentCollections

Package Description

MeshWeaver.AI

Package Description

MeshWeaver.Graph

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.0-preview1 221 4/16/2026
2.5.0 385 11/3/2025
2.4.0 339 10/2/2025
2.3.0 371 8/4/2025
2.2.0 651 7/21/2025
2.1.0 349 4/6/2025
2.0.3 641 3/24/2025
2.0.2 611 3/24/2025
2.0.1 253 3/21/2025
2.0.0 275 3/20/2025
2.0.0-preview3 216 2/28/2025
2.0.0-Preview2 208 2/10/2025
2.0.0-preview1 197 1/6/2025