Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Mahjong Renderer

h-sphereh-sphere261 downloads

Render mahjong tiles (riichi mahjong) using MPSZ notation

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

Obsidian Community Plugin to Render Mahjong hands using mahjong notation.

Screenshots

Light Theme Light Theme

Dark Theme Dark Theme

Features

  • Dark mode

Future Plans

  • Different tile themes
  • Computing han and fu
  • Tile variants for Chineese / Singaporean variants (flowers, animals)

Installation

To be completed

Usage

Create a code block (three ticks) with mahjong as a language. Provide mahjong notation like 123m456p789s11z. Once you click away from the block or switch to reader mode, you should see tiles.

Example setup

Syntax

Tile Groups

Tile Group Meaning
m Man (Characters) suits: 1m, 2m, ..., 9m
p Pin (Dots) suits: 1p, 2p, ..., 9p
s Sou (Bamboo) suits: 1s, 2s, ..., 9s
z Honor tiles: 1z (East), 2z (South), 3z (West), 4z (North), 5z (White), 6z (Green), 7z (Red)
0 Red Five (can be used in place of 5m, 5p, or 5s)

Tiles are represented by their number followed by their suit (e.g., 1m, 3p, 7s, 5z). Groups of tiles are written without spaces (e.g., 123m for 1-man, 2-man, 3-man).

Example:

123m 456p 789s 11z

This represents a hand with 1-2-3 of man, 4-5-6 of pin, 7-8-9 of sou, and a pair of East wind tiles.

Special Notations Rotations

A single quote (') after a tile indicates that it's rotated 90 degrees (usually to represent a called tile from another player).

Example:

23m 45'6p 789s 11z

This shows that the 5-pin tile has been called and is rotated. Kans (Quads)

A double quote (") after a tile indicates a closed kan (quad). An additional tile with a single quote represents an open kan.

Examples:

123m 5555"p 789s 11z

This shows a closed kan of 5-pin.

123m 555'5p 789s 11z

This shows an open kan of 5-pin. Multiline Rendering For complex hands or to show discarded tiles, you can use multiple lines. Each line is separated by a space.

Example:

123m 456p 789s 11z
22'2s 44'4p

This represents a hand with 1-2-3 of man, 4-5-6 of pin, 7-8-9 of sou, a pair of East wind tiles, and two called melds: a triplet of 2-sou and a triplet of 4-pin. Red Five The 0 (zero) can be used to represent a red five in any suit. The suit is determined by its position among other tiles of the same suit.

Example:

123m 40p 789s 11z

This shows a red 5-pin among the pin tiles.

Example hands

Four Kans

4z 66"6p222'2m0770z4444's

Flush hand

Flush

1233450667999p

Flush hand

Credits

Tile assets from riichi-mahjong-tiles repository.

HealthFair
ReviewCaution
About
Render Mahjong hands from mahjong notation (e.g., 123m456p789s11z) into inline tile graphics when placed in a mahjong code block. Display rotated tiles ('), kans ("), support red five (0) and multiline layouts for discards, with light and dark themes.
VisualizationImagesSyntax
Details
Current version
0.1.0
Last updated
2 years ago
Created
2 years ago
Updates
1 release
Downloads
261
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
Support
Author
h-sphereh-sphere
hypersphere.blog/
GitHubh-sphere
  1. Community
  2. Plugins
  3. Visualization
  4. Mahjong Renderer

Related plugins

Image Layouts

Add beautiful image layouts to your notes.

Leaflet

Interactive maps inside your notes.

Note Gallery

A masonry gallery that will visualize your notes, similar to Craft note view.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

Maps

Adds a map layout to bases so you can display notes as an interactive map view.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

Ink

Handwriting and drawing directly between paragraphs using a digital pen, stylus, or Apple pencil.

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.

ExcaliBrain

An interactive, structured mind-map of your Obsidian vault.