A collection of Markdig extensions I made to use in my projects. Some might be too specific to them, but some might come useful to others. Hence the MIT license
Finds all occurrences of #tag
, #another-tag
or #yet_another_tag
and turns them into links according to the following scheme:
<a href="[baseUrl][tag]" target="[target]">#[tag]</a>
Finds all occurrences of @username
and turns them into links according to the following scheme:
<a href="[baseUrl][username]" target="[target]">@[username]</a>
Finds all occurrences of ||text||
and turns them into spoiler tags according to the following scheme
<span class="spoiler">[text]</span>
Aligns the text enclosed in ->text<-
tags and centers it, like so
<p style="text-align: center">[text]</p>