Yet another implementation of the Markdown Text to HTML Converter, built on .NET Core console application.
Add a .NET CLI Tool reference in the .csproj file.
<ItemGroup>
<DotNetCliToolReference Include="dotnet-md2html" Version="1.0.0.1-preview1" />
</ItemGroup>
After NuGet package restoring, you can use dotnet md2html
command in the project folder.
> dotnet tool install -g dotnet-md2html --version 1.0.0.1-preview1
See also Microsoft Docs site.
> dotnet md2html [options]
Options | Description |
---|---|
-v | Show version of dotnet-md2html command. |
-i {path} |
Specify the file path of source markdown text file. If -i options is not specified, dotnet-md2html command reads source markdown text from standard input stream. |
-o {path} |
Specify the file path of destination HTML file. If -o option is not specified, dotnet-md2html command writes HTML converted from source markdown text into standard output stream. |
-e | Embed images into the HTML file as a data protocol instead of image path references. |