How would I go about creating a Wiki Parser?

Thanks, I ended up using Markdown-it with the zero default and with my own custom markdown-it plugin’s for the WikiCode

const md = markdownit('zero', {
    html: false,
  })
  .enable(['blockquote', 'link', 'list'])
  .use(heading)
  .use(link)
  .use(autolink)
  .use(emphasis)
  .use(strong);

I’ll post my code when I’m done but right now I’m able to switch between CodeMirror and ProseMirror and the code converts seamlessly.