Fast, extensible markdown parser for the linux command line

I am looking for a fast but extensible command line markdown parser for commonmark. Do you have any recommendations? I’d like to add some extensions as plugins if possible (or write my own extensions).

thanks