Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

RedHttp/Red.CommonMarkRenderer

Repository files navigation

The RedHttp project is no longer maintained. See Carter for a similar low-ceremony experience.

CommonMark renderer extension for RedHttpServer

CommonMark renderer is an extension for RedHttpServer, to render CommonMark (and Markdown) using CommonMark.NET

GitHub Nuget Nuget Dependent repos (via libraries.io)

Usage

After installing and referencing this library, the Red.Response has the extension methods RenderFile(filePath, ..) and RenderString(commonMarkText, fileName, ..)

RenderFile(filePath, ..) takes the path of a CommonMark or Markdown file, renders it to html and sends it as response.

RenderString(commonMarkText, fileName, ..) renders a string containing CommonMark or Markdown text, renders it and sends it as reponse. The fileName parameter is optional and is used to specify a filename attached through a Content-Disposition-header.

Releases

No releases published

Packages

No packages published

Languages