J Fabian Meier
J Fabian Meier

Reputation: 35843

Convert from/to gitlab flavored markdown

Usually, I convert from/to markdown with pandoc, but unfortunately, pandoc does not support gitlab flavored markdown.

What is a good approach to convert it from/to any pandoc supported formats like pandoc's markdown, github flavored markdown, etc. ?

Upvotes: 1

Views: 1179

Answers (1)

tarleb
tarleb

Reputation: 22659

There are many ways to tweak pandoc, most importantly filters. This allows to support the features and custom extensions of GitLab Flavored Markdown, but it has to be done "by hand".

The important parts are:

  • support for Mermaid diagrams,
  • support for PlantUML diagrams, and
  • interpretation of special code blocks as math formulæ.

All of these can be done with filters, given that the necessary diagram programs are installed.

One such approach is described here: https://gist.github.com/MyriaCore/75729707404cba1c0de89cc03b7a6adf

Upvotes: 1

Related Questions