mfgames-cil/src/MfGames.Markdown
2024-04-20 23:02:38 -05:00
..
Exceptions feat: added a Markdown heading level transformer 2024-04-18 23:56:05 -05:00
Extensions chore: switching to mfgames-project-setup-flake + reformat 2024-03-05 23:15:03 -06:00
HeadingLevelTransformer.cs feat: added a Markdown heading level transformer 2024-04-18 23:56:05 -05:00
MfGames.Markdown.csproj fix: updating package dependencies 2024-04-20 23:02:38 -05:00
README.md chore: switching to mfgames-project-setup-flake + reformat 2024-03-05 23:15:03 -06:00
RewriteLinkTransformer.cs feat: added a Markdown heading level transformer 2024-04-18 23:56:05 -05:00

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