Implement custom markdown dialect - Where to start?

I am playing around with hugo as a desktop wiki backend. Therefore I would like to add some custom syntax elements to markdown like:

[page2] as shorthand instead of [page2]({{< relref "" >}}) or

todo lists like in github:

I guess, this needs some additional code. My question is, where to place this new code, i.e. where is the current markdown rendering implemented? And how modular is this rendering? (Maybe there is some documentation on these internals but I did not find it.)


1 Like