All notable changes to this package are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[1.0.0] - 2026-10-15
Added
- Markdown parser written for this package (no bundled Markdown library): CommonMark 0.31.2 with the GitHub Flavored Markdown tables, strikethrough, task list items and bare web addresses.
MarkdownDocument.Parsenever throws, accepts any text and can be called from any thread. The deliberate differences (raw HTML not interpreted, HTML comments left out, a fixed list of named entities, depth limits of 32) are listed in the manual. - Read-only document tree (
MarkdownDocument,MarkdownHeading,MarkdownTable,MarkdownLinkand the other node types), withHeadingsandFindHeadingfor tables of contents, and GitHub-style anchors for every heading. MarkdownView(uGUI, Add Component > luanrobs > Markdown View): shows a.mdfile (Source) or a string (Markdown) as a scrolling document with headings, paragraphs, emphasis, strikethrough, code, lists, task lists, block quotes, code blocks, tables, rules, images and links. Text with Unity'sTextcomponent (default, built-in font, no setup) or TextMeshPro (TextBackend).Scrollableoff makes the view report the height of the document throughILayoutElement, for use in your own layouts and scroll views.MarkdownElement(UI Toolkit,[UxmlElement]): the same document as visual elements, from UXML (<lr:MarkdownElement/>withxmlns:lr="Luanrobs.Markdown") or from code. Every element carries a USS class ofMarkdownUss;ApplyThemeoff leaves fonts, sizes, spacing and colours to your style sheets.MarkdownTheme(Assets > Create > luanrobs > Markdown Theme): fonts, sizes, spacing and colours for both renderers, with light and dark presets (CreateLight,CreateDark,DefaultLight,DefaultDark, and Apply Light Preset / Apply Dark Preset in the asset's context menu).- Links:
LinkClickedevent withMarkdownLinkEventArgs(Url,Title,Kind,Handled). Default handling, on by default:#anchorlinks scroll to their heading,httpandhttpslinks open withApplication.OpenURL, other links (mailto:, relative paths, custom schemes) only raise the event.OpenLink,ScrollToAnchor,ScrollToTopandScrollPositionfor navigation from code. - Images from a view's
SpritesandTextureslists (uGUI), from Resources folders, or from your ownIMarkdownImageResolver. Built-in resolversMarkdownImageListandMarkdownResourcesImageResolver. Images are scaled down to fit, never up; an image that is not found shows its description. Nothing is loaded from a network. WhatsNewPopup(uGUI, Add Component > luanrobs > What's New Popup): reads a Keep a Changelog style changelog and shows the player only the versions released since the last one they saw, stored inPlayerPrefs.ShowIfNew,ShowAll,Close,MarkAsSeen,ResetSeenVersion,HasNewEntries,OpenedandClosedevents. Builds its own Canvas when it opens, and an EventSystem only when the scene has none. Works while the game is paused.MarkdownChangelog: parses a changelog into versions (Entries,Latest,GetReleased,GetNewerThan,ToMarkdown), with Semantic Versioning comparison (CompareVersions,IsVersion), for release notes in your own UI or in UI Toolkit.- Tables: every column is at least as wide as its longest word plus the cell padding, and the rest of the width is shared by the length of each column's text, so a short word such as a key name is not broken while other columns have room. All rows keep the same column widths, and a table never gets wider than its view.
- Code blocks: with no monospaced font in the theme, Unity Text and UI Toolkit use a monospaced font installed on the device (Consolas, Menlo, DejaVu Sans Mono, Liberation Mono, Droid Sans Mono or Courier New, the first one found).
- Works with Domain Reload disabled: static state is reset at the start of every Play session.
- Demo sample with six scenes: menu, help screen in uGUI, the same help screen in UI Toolkit, What's New popup, live editor, and a showcase of every supported element with three themes, both renderers and both uGUI text components.
- Manual with the supported Markdown, API reference, limitations and troubleshooting.
- EditMode tests.
Tested
- Unity 6000.3.12f1 on Windows 11, 2026-10-20: 855 of 855 EditMode tests passed. On 2026-10-16, 839 of 839 passed, among them 32 adversarial parser inputs, most of about 100,000 characters, each parsed and checked in about 0.23 seconds at most (0.225 to 0.234 seconds across the runs on the final code).
- Unity 6000.3.12f1 Windows player (Mono, Direct3D 12), 2026-10-20: the test driver below passed again on the final code, in a 1280 x 720 window and in a 450 x 900 window.
- Unity 6000.3.12f1 Windows player (Mono, Direct3D 12, 1280 x 720), 2026-10-15: a test driver walked the six demo scenes through the public API, in uGUI with Unity Text and with TextMeshPro and in UI Toolkit, with the light, dark and Terminal themes, anchor links, scrolling, the What's New popup and the live editor, and passed with no error logged. It used the legacy Input Manager and simulated link clicks inside the engine. The TextMeshPro part of this run was made before the last code change, a fix to the Unity Text code-font lookup.
- Clean projects, 2026-10-20: the package was installed from a
.tgzarchive into a new project created with Unity 6000.3.12f1 and into one created with Unity 6000.0.84f1, and the Demo sample was imported. In both: 855 of 855 EditMode tests passed, every sample scene opened with no missing scripts, and the test driver passed in a Mono Windows player (Direct3D 12 on 6000.3.12f1, Direct3D 11 on 6000.0.84f1). - IL2CPP Windows player, Unity 6000.3.12f1 only, 2026-10-20: the test driver passed. Not run with IL2CPP on 6000.0.84f1.
- Android (IL2CPP), x86-64 emulators only: a Unity 6000.3.12f1 build (lowest API level 25) passed on Android 16 (API 36, Vulkan), and a Unity 6000.0.84f1 build (lowest API level 23) passed on Android 7.0 (API 24, OpenGL ES 3).
- Galaxy S23 (Android 16, arm64, Vulkan): the test driver passed, 2026-10-20.
- Without uGUI and the Input System (Unity 6000.3.12f1): the package compiles,
MarkdownViewandWhatsNewPopupare absent, and 796 of 796 EditMode tests passed (2026-10-20). - Play mode with Domain Reload disabled, Unity 6000.3.12f1: three Play sessions in a row passed.
- Not run: TextMeshPro mode in the clean projects (it was run in the development project on 6000.3.12f1), physical devices other than the Galaxy S23, macOS, Linux, iOS, WebGL, the Input System UI input module, URP and HDRP.
Known limitations
- Raw HTML is not rendered (tags are shown as text, comments are left out); only a fixed list of named entities is recognised; bare e-mail addresses are not linked; block containers and inline containers nest at most 32 deep.
- Images sit on their own line; an image in a heading, a table cell, emphasis or a link that also has text shows its description.
- No syntax highlighting; code lines wrap.
- The whole document is built at once (no virtualisation). A paragraph, heading or cell with more than 12,000 characters of formatted text is shown as plain text.
MarkdownViewrenders in Play mode only and does not create an EventSystem.- The What's New popup is uGUI only; with UI Toolkit, use
MarkdownChangelogand aMarkdownElement. - Unity Text cannot strike text through (struck text is dimmed) and does not underline links.
- Changes inside an assigned theme, or to the contents of
SpritesandTextures, need a call toRefresh(). - Not included: footnotes, maths, an Editor preview window, editing, text selection and copy, right-to-left and complex-script shaping beyond what the text component does.