Skip to content

About

Core library for parsing Markdown and PlantUML code and rendering HTML / SVG

Resources

Stars

1 star

Watchers

2 watching

Forks

Repository files navigation

GitHub License Java CI with Maven

markdown-core

markdown-core is a tiny library offering a certain version, set of extensions, and configuration of flexmark, a Markdown parser and HTML generator, and a certain version of PlantUML. The rationale for markdown-core is using the same combination of libraries and configuration in multiple other tools and thus, producing the same rendering results.

PlantUML edition

markdown-core renders diagrams with PlantUML's EPL edition, net.sourceforge.plantuml:plantuml-epl, published under the Eclipse Public License. PlantUML's GPL edition, net.sourceforge.plantuml:plantuml, is not an option: the GPL is incompatible with the BSD 3-Clause License and would put its terms on everything distributed together with it. The EPL fits as well because ELK, the Eclipse Layout Kernel that PlantUML can lay out diagrams with, is under the EPL too. The EPL's copyleft covers PlantUML's own files only, so markdown-core keeps its licence.

What follows for an application using markdown-core:

  • Do not add the GPL edition. markdown-core takes PlantUML and its version from flexmark-ext-plantuml. To use another PlantUML version, override the version of plantuml-epl and of Guava, which flexmark-ext-plantuml pins to the one PlantUML bundles.
  • The PlantUML JAR bundles ELK, EMF, JLaTeXMath and Guava. Maven resolves them a second time from PlantUML's POM, so that licence reports and SBOMs list them; a distribution needs only the copies inside the PlantUML JAR.
  • The EPL edition renders no Ditaa, JCCKit or Sudoku diagrams and writes no WebP images.
  • PlantUML's error diagrams come without the decorations PlantUML adds depending on the time, such as requests for donations, so that the same diagram renders the same way every time. flexmark-ext-plantuml switches them off.

License

This work is made available under the terms of the BSD 3-Clause License. The licence accompanies this distribution: LICENSE.

Copyright

Copyright (c) 2022-2026, Advantest Europe GmbH. All rights reserved.

About

Core library for parsing Markdown and PlantUML code and rendering HTML / SVG

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages