chevron_right Demos chevron_right Markdown Label
Related demos
Book a live Demo

Live Demo — yFiles in Action

30–45 min | Online | No install required

For Developers, Product Mangers & Executives

  • Interactive graph visualization in real time
  • Integration example
  • Live Q&A and next step recommendations

30–45 minutes | 1:1 or team session | Online (Zoom / Teams)

No install required | We show live code

Book a free live demo

Live Demo — yFiles in Action

30–45 min | Online | No install required

For Developers, Product Mangers & Executives

30–45 minutes | 1:1 or team session | Online (Zoom / Teams)

No install required | We show live code

Book a free live demo

Markdown Label Demo

This demo shows how to create labels using Markdown syntax.

The label style implementation MarkdownLabelStyle uses markdown-it to transpile Markdown syntax into HTML. The actual rendering of the HTML text is done by MarkupLabelStyle.

Label Editor

Creating and Editing Labels

Supported Markdown

The Markdown elements supported by this style labels are

Styling Labels with CSS

Since the markdown label style delegates to MarkupLabelStyle for rendering, elements can be styled with CSS classes.

The stylesheet for labels markdown-label.css shows how the label texts are styled with external CSS.

Text Wrapping

Markdown labels can use line wrapping. In this demo application, the labels use word wrapping with ellipsis. Select and resize a node to observe the interactive text wrapping. Markdown labels can also be wrapped at character boundaries.