MarkdownServer 1.4.0

dotnet add package MarkdownServer --version 1.4.0
NuGet\Install-Package MarkdownServer -Version 1.4.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="MarkdownServer" Version="1.4.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MarkdownServer --version 1.4.0
#r "nuget: MarkdownServer, 1.4.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.
// Install MarkdownServer as a Cake Addin
#addin nuget:?package=MarkdownServer&version=1.4.0

// Install MarkdownServer as a Cake Tool
#tool nuget:?package=MarkdownServer&version=1.4.0

MarkdownServer for ASP.net.

What it is: Markdown as Markup Application Server for ASP.Net.

Using it is as simple as importing the Nuget package and adding builder.AddMarkdownServer() to ConfigureServices and app.UseMarkdownServer() in Configure. Or just place this in Program.cs for C# 10:

builder.AddMarkdownServer();

//....

app.UserMarkdownServer();

Current Features:

  • Serve Markdown file URLs which are rendered through a default layout.html or specify the layout in the YAML front matter.
  • Include Markdown files using the #include() tag in Markdown, or by adding MDS-Inclue-"" attribute to a block tag in the layout HTML file.
  • Create forms and form elements with a simple syntax in Markdown.
  • Front-Matter variables can be displayed with #(variable) in the Markdown or layout HTML.
  • Link directly to Markdown documents, which also be rendered in the HTML layout.

Example

---
Title: Page Title
DefaultValue: This is default.
Layout: Shared/layout.html
---


# $(Title) 


!form#myForm({action=result.md},{method=post},{class="form-group"})
!label({for=txtBox}):Search

!input#txtBox({class="form-element"}):$(DefaultValue)
!button({type=submit}):Go!
!/form

Planned Features before release:

  • Code-behind for C# to handle form posts.
  • Object model and opinionated application design patterns.

Join the discussion to share your thoughts.

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

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MarkdownServer:

Package Downloads
MarkdownServer.ApplicationFramework

MarkdownServer Application Framework Middleware for ASPNet Core

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.4.0 99 2/3/2024
1.3.0 216 7/31/2022