You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
D. Moonfire 5229ab8521 ci: trying different woodpecker layout 5 months ago
.config build: preparing project layout 7 months ago
.husky feat: initial commit 2 years ago
scripts build: fixing typos in scripts 5 months ago
src feat: implemented wiki links for both HTML and Gemtext 5 months ago
tests feat: implemented wiki links for both HTML and Gemtext 5 months ago
.editorconfig build: preparing project layout 7 months ago
.envrc build: preparing project layout 7 months ago
.gitignore build: preparing project layout 7 months ago
.prettierignore feat: initial commit 7 months ago
.woodpecker.yml ci: trying different woodpecker layout 5 months ago
CODE-OF-CONDUCT.md feat: initial commit 7 months ago
LICENSE.txt feat: initial commit 7 months ago
MfGames.Markdown.sln feat: implemented wiki links for both HTML and Gemtext 5 months ago
MfGames.Markdown.sln.DotSettings feat: implemented wiki links for both HTML and Gemtext 5 months ago
NuGet.Config build: preparing project layout 7 months ago
README.md build: fixed setup.sh script 5 months ago
flake.lock feat: switching to .net6 7 months ago
flake.nix feat: switching to .net6 7 months ago
lefthook.yml build: preparing project layout 7 months ago

README.md

MfGames.Markdown CIL

This is a set of libraries for working with Markdown in C#. Most of the code are extensions in MarkDig, an extensible library for converting Markdown.

The library includes the following:

  • An extension for converting wiki links, such as [[MfGames]] into a link based on the title. This is for both HTML and Gemtext.
  • A output library for using MarkDig to generate Gemtext for Gemini pods.

The documentation is rather light at the moment, but the tests can show various ways of using the libraries.

Usage

These library are not on nuget.org (for various reasons). To use them, set up your NuGet.config to pull them from their repository.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
    <add key="mfgames.com" value="https://src.mfgames.com/api/packages/mfgames-cil/nuget/index.json" protocolVersion="3" />
  </packageSources>
  <packageSourceMapping>
    <packageSource key="nuget.org">
      <package pattern="*" />
    </packageSource>
    <packageSource key="mfgames.com">
      <package pattern="MfGames.*" />
    </packageSource>
  </packageSourceMapping>
</configuration>

The two libraries are:

  • MfGames.Markdown
  • MfGames.Markdown.Gemtext