BoxOfYellow.ConsoleMarkdownRenderer 0.5.0

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

// Install BoxOfYellow.ConsoleMarkdownRenderer as a Cake Tool
#tool nuget:?package=BoxOfYellow.ConsoleMarkdownRenderer&version=0.5.0

Build Status codecov NuGet

I have markdown files, you have markdown files we all have markdown files...

We create them to document various parts of projects. Sometimes that documentation would be helpful while folks are using those projects. And thats where this library comes in. This Library provides support for displaying markdown within the console and provides a simple navigation list of links and images within the document. When items from the list are selected their content will be shown inline when possible (aka it's another markdown file, or it's an image and the console appears to be using iTerm2)

I will totally admit README.md files and response that is displayed with --help are not 100% interchangeable, but there is a lot of overlap 🙂

Using it is simple

Just call the one public method from the static Displayer.cs class called DisplayMarkdown it accepts the following parameters

name type description required/default
uri Uri The Uri that is either a file containing your markdown, or the web address where said content can be downloaded Yes
allowFollowingLinks bool A flag, when set to true, the list of links will be provided, when false the list is omitted no / true
includeDebug bool A flag, when set to true the content structure is displayed and detail of unsupported markdown is displayed no / false

It has a second overload

name type description required/default
text string the text to display Yes
uriBase Uri The Uri base for all links Yes
allowFollowingLinks bool A flag, when set to true, the list of links will be provided, when false the list is omitted no / true
includeDebug bool A flag, when set to true the content structure is displayed and detail of unsupported markdown is displayed no / false

Checkout ConsoleMarkdownRenderer.Example to see it in use alternate text is missing from this package README image

Supporting packages

It's also important to give credit where credit is due, this library is really just glue for the following packages

Contributing

Contributions are welcome, please see CONTRIBUTING.md and CODE_OF_CONDUCT.md

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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 was computed.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.5.0 447 11/22/2021
0.4.0 537 11/21/2021
0.3.0 298 11/11/2021
0.2.0 362 11/11/2021
0.1.0 332 11/11/2021