Extend build pipeline with markdown to html-asset build step

I am trying to embed the github wiki of my project into the app’s help page.

For this I would need a build step which converts the gh-wiki markdown (maintained as git-submodule) to a html-asset.

If possible, how can add such functionality to the ionic build-process?