[Unity asset · Asset Store · Coming soon]
Markdown Viewer for Unity
Show Markdown inside your game or app: assign a .md file to a component and get a scrolling, styled document with headings, lists, task lists, tables, block quotes, code blocks, images and clickable links.
Unity 6000.0.84f1+
This opens your email app. If nothing opens, write to luanrobs@gmail.com. I will reply once, on launch day. I will not add you to a list.
QUICK START
using Luanrobs.Markdown;
using UnityEngine;
public class HelpScreen : MonoBehaviour
{
[SerializeField] private MarkdownView view;
[SerializeField] private TextAsset helpFile;
private void Start()
{
view.Source = helpFile;
view.Theme = MarkdownTheme.DefaultDark;
view.LinkClicked += link => Debug.Log("Clicked " + link.Url);
}
}
TESTED ON
| Platform | Status |
|---|---|
| Windows Editor and Mono players, Unity 6000.3.12f1 and 6000.0.84f1 | All 855 EditMode tests pass on both, also in new projects that installed the package from its .tgz file. In Windows 11 players, a test driver walked the six demo scenes (uGUI with Unity Text and TextMeshPro, UI Toolkit, three themes, links, scrolling, What's New, live editor) and passed. |
| Windows player (IL2CPP), Unity 6000.3.12f1 | The test driver passed. Not run with IL2CPP on 6000.0.84f1. |
| Android emulators (IL2CPP) | Android 16 (API 36) with Unity 6000.3.12f1 and Android 7.0 (API 24) with Unity 6000.0.84f1: the test driver passed on both. |
| Android, physical device | Galaxy S23 (Android 16, arm64, Vulkan): the test driver passed (2026-10-20). |
| Without uGUI, and with Domain Reload disabled | Unity 6000.3.12f1: without uGUI the package compiles and the 796 tests that do not need it pass. With Domain Reload disabled, three Play sessions in a row passed. |
| Other platforms (macOS, Linux, iOS, WebGL and the rest) | not run |
Tested with version 1.0.0
WHAT IT DOES NOT DO
Raw HTML is not rendered: tags are shown as text and HTML comments are left out.
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.
Code is not syntax-highlighted, and long lines wrap.
Images sit on their own line: an image in the middle of a sentence breaks the line. Images come from your sprites, textures, Resources or your own resolver; nothing is loaded from the network.
The whole document is built at once (no virtualisation), so very long documents cost memory and layout time.
WHAT IS IN THE PACKAGE
C# source of the runtime (parser, uGUI view, UI Toolkit element, themes, What's New), with EditMode tests.
The demo sample: six scenes.
The manual, as Markdown.
Unity built-in modules used: UI and UIElements. uGUI and TextMeshPro are used when present.
The package has no native code, shaders, fonts or third-party code.
SUPPORT
I answer the support email myself, in English or Portuguese: luanrobs@gmail.com
To reproduce a problem I need: Unity version, package version, platform and OS version, the Console log, and the steps to reproduce it.
Purchases, licenses and refunds are handled by the Unity Asset Store.
HOW IT WAS BUILT
This package was developed with the assistance of generative AI tools.
The code, the tests, the documentation and the sample content were generated with Claude (through Claude Code) under my direction, then run and tested as listed under "What was tested".
luanrobs is one developer: me. If something doesn't work for you, email me and I'll do my best to fix it.
CHANGELOG
1.0.0 · 2026-10-15
- 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.