Skip to content

About

flexmark-java extensions for PlantUML and some Advantest-specific parsing and rendering customizations for FluentMark Advantest Edition

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

GitHub License Java CI with Maven/Tycho

Extensions for flexmark-java (flexmark-extensions)

flexmark-extensions are additional parser and renderer modules for flexmark-java. These include support for parsing PlantUML code and rendering PlantUML diagrams as well as some Markdown extensions for FluentMark Advantest Edition.

Extensions

  • flexmark-ext-plantuml
    • Extension with support for parsing PlantUML code blocks (fenced and non-fenced code blocks) in Markdown code and for rendering them as diagrams in SVG vector graphics format (for usage in HTML output). Does also support special Markdown images pointing to PlantUML diagram files (*.puml), e.g. ![diagram](path/to/diagram.puml).
  • flexmark-ext-math
    • Extension with support for LaTeX-like math formulas in Markdown code, using LaTeX formula syntax in-line (between $) or in display mode (between $$). Formulas are not rendered, but prepared for rendering with JavaScript libraries MathJax. In-line formulas are surrounded by \( and \) while rendering, display mode formulas are surrounded by \[ and \].
  • flexmark-ext-figures
    • Extension for embedding Markdown images in HTML figure tags. Does also add a figure caption if there is an image label.
  • flexmark-ext-jira-ticket-links
    • Extension for rendering Jira ticket numbers as links to that Jira tickets. Allows for customizing the Jira URL and for customizing the Jira project key constraints using a regular expression.
  • flexmark-ext-sourcetracking
    • Extension adding the Markdown source code position (attributes source-offset and source-length) to the rendered HTML elements. Enables navigation from Markdown source code to the corresponding element in an HTML preview and vice versa.

PlantUML edition

flexmark-ext-plantuml 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 the extensions keep their licence.

What follows for an application embedding the extension:

  • Do not add the GPL edition. To use another PlantUML version, override the version of plantuml-epl.
  • 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 extension pins Guava to the version PlantUML bundles, so override both versions together. The extensions bring no Guava of their own.
  • The EPL edition renders no Ditaa, JCCKit or Sudoku diagrams and writes no WebP images.

Error diagrams

Where a diagram has an error, PlantUML draws an error diagram with the error message. Depending on the minute it is drawn in, PlantUML adds decorations to it, such as requests for donations. flexmark-ext-plantuml switches these time-based decorations off before it draws a diagram, because the same diagram must render the same way every time: tests and comparisons of rendered documents rely on it, and a preview should not change while nobody edits the document. The error message itself is kept. Code that runs PlantUML itself, besides the extension, can switch them off by calling PlantUmlExtension.disableTimeBasedErrorDecorations().

Licence

The extensions are available under the BSD 3-Clause License (BSD-3-Clause).

Copyright

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

About

flexmark-java extensions for PlantUML and some Advantest-specific parsing and rendering customizations for FluentMark Advantest Edition

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages