Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.89 KB

File metadata and controls

44 lines (33 loc) · 1.89 KB

UMarkdown GitHub Release Unity Version Docs

UMarkdown is a utility library for parsing and converting Markdown text into Unity compatible rich text and UI elements.

UMarkdown uses the widely used Markdig library for parsing Markdown syntax as well as ColorCode for syntax highlighting of code blocks (planned to be replaced in the future)

Installation

You can install UMarkdown via Unity Package Manager by adding the following Git URL: https://github.com/helightdev/UMarkdown.git?path=src/UMarkdown/Assets/Plugins/UMarkdown

You can also add the package manually to the manifest.json file located in the Packages folder of your Unity project:

{
  "dependencies": {
    "dev.helight.umarkdown": "https://github.com/helightdev/UMarkdown.git?path=src/UMarkdown/Assets/Plugins/UMarkdown"
  }
}

Usage

The MarkdownVisualElement(visible as MarkdownText in UXML) can be used to render Markdown content directly in Unity UI Toolkit. Alternatively, you can programmatically convert Markdown text into Unity rich text strings and VisualElements using the methods provided by UnityMarkdown.

For more details on both, please refer to the usage documentation.

License

UMarkdown is licensed under the MIT License. See the LICENSE file for more information.