chevron_right Demos chevron_right Markdown Label
Related demos
Book a live Demo

See yFiles in action

30 min • Online • No install required


For developers, PMs & tech leads

  • Quick-start walkthrough + a real integration example
  • Live Q&A with next-step recommendations

Prefer another tool over Zoom? Just say so when you book.

Opens our scheduling page with Zoom's booking widget embedded. Using it shares your data with Zoom under its Privacy Policy.

Label Style Demo HTML Label Style Demo Rich Text Label Demo Rendering the Label Text
Demos Overview

See yFiles in action

30 min • Online • No install required


For developers, PMs & tech leads

Prefer another tool over Zoom? Just say so when you book.

Opens our scheduling page with Zoom's booking widget embedded. Using it shares your data with Zoom under its Privacy Policy.

Demo

Markdown Label

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.