Mahgen Renderer

by Michael Francis Williams
5
4
3
2
1
Score: 56/100

Description

Category: Creative & Writing Tools

The Mahgen Renderer plugin integrates the Mahgen tool into Obsidian, allowing users to render Mahjong hands and tile sequences directly within their notes. It supports displaying hands, draws, and discards, providing a visual representation of gameplay scenarios. Users can input shorthand codes to generate Mahjong tile arrangements, making it easier to document strategies or review past games.

Reviews

No reviews yet.

Stats

5
stars
245
downloads
0
forks
466
days
65
days
65
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
1
total issues
0
open issues
1
closed issues
18
commits

Latest Version

2 months ago

Changelog

Sorry for the update. Update manifest.json manually.

README file from

Github

Mahgen Renderer

This is a plugin for mahgen to render in Obsidian

If you have opinions or suggestions, please open issues to let me know, or open pull requests fix it directly!

Install

(If this plugin was accepted)

  1. Open Obsidian.
  2. Go to Settings > Community Plugins > Browse.
  3. Search for mahgen.
  4. Click Install and enable the plugin.

Build

To build the plugin, use the following commands:

npm i
npm run dev

Make the folder .obsidian/plugins/obsidian-mahgen-plugin, and copy main.js, styles.css, manifest.json inside. Go to Settings > Community Plugins. Enable 'Allow installing plugins from outside the Obsidian Hub.' Enable this plugin.

Usage

usage

You can use mg 1s2s3s, or mahgen 1112345678999m_0m. It can display the hand in between.

code snippets

It can also display the river of tiles.

code snippets 2

Displaying hand, draw, and discard. code snippets 3

There is no river mode in inline, so it's unnecessary.

More details, please refer to mahgen.

Nankiru Mode

New feature:

nankiru

The code is as follows:

Q001
东一局 西家 7巡目 0020000z
6778p1122345s77z||0p
A001
东一局 西家 7巡目 0020000z
6778p1122345s77z||0p
2s

Hand Size

In style.css, you can freely change the size of hands:

:root {
    --mahgen-base-height: 2.2em;    /* base height(for block) */
    --mahgen-inline-height: 1.8em;  /* inline hand, smaller for read */
    --mahgen-row-height: 2.2em;     /* river hand, usually same with base */
}

Furigana (Optional)

This plugin can also parse furigana syntax:

{漢字|かん|じ}
{日本語|にほんご}

Rendered output uses <ruby><rt>...</rt></ruby> in reading view and Live Preview. This furigana feature is independently implemented in this plugin, inspired by obsidian-markdown-furigana.

To avoid conflicts with dedicated furigana plugins, this feature is disabled by default. Enable it in plugin settings: Enable Furigana.

See THIRD_PARTY_NOTICES.md for attribution and reuse notes.

Known issues

  1. In the styles.css file, I used !important to ensure that the elements remain in the inline-block state because I believe that under no circumstances should these Mahjong tiles be rendered in a centered position.
  2. Rendering takes some time, so sometimes you can see original inline code like mg 1s. Click anywhere it will rerender.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Excalidraw
5 years ago by Zsolt Viczian
A plugin to edit and view Excalidraw drawings in Obsidian
Advanced Canvas
2 years ago by Developer-Mike
⚡ Supercharge your canvas experience! Graph view integration and unlimited styling options empower flowcharts, dynamic presentations, and interconnected knowledge.
Markmind
5 years ago by Mark
A mind map, outline for obsidian,It support mobile and desktop
Heatmap Calendar
4 years ago by Richard Slettevoll
An Obsidian plugin for displaying data in a calendar similar to the github activity calendar
Map View
5 years ago by esm
Interactive map view for Obsidian.md
Contribution Graph
2 years ago by vran
generate interactive gitxxx style contribution graph for obsidian, use it to track your goals, habits, or anything else you want to track.
Extended Graph
a year ago by Kapirklaa
Community plugin to add features to the graph view.
Diagrams.Net
4 years ago by Jens M Gleditsch
This repository contains a plugin for Obsidian for inserting and editing diagrams.net (previously draw.io) diagrams.
Maps
7 months ago by Obsidian
Map layout for Obsidian Bases. Display your notes as an interactive map view.
Note Gallery
2 years ago by Pash Shocky
A masonry note gallery for obsidian.
Heatmap Tracker
a year ago by Maksim Rubanau
A customizable heatmap tracker plugin for Obsidian to visualize daily data trends with intuitive navigation and flexible settings.
Mehrmaid
2 years ago by huterguier
Rendering Obsidian Markdown inside Mermaid diagrams.
Smart Connections Visualizer
2 years ago by Evan Moscoso
Visualize your notes and see links to related content with AI embeddings. Use local models or 100+ via APIs like Claude, Gemini, ChatGPT & Llama 3
Link Exploder
3 years ago by Ben Hughes
Optimize Canvas Connections
3 years ago by Félix Chénier
An Obsidian plugin that declutters a canvas by reconnecting notes using their nearest edges
Desmos
4 years ago by Nigecat
Embed graphs directly into your obsidian notes
Graph Banner
2 years ago by ras0q
An Obsidian plugin to display a relation graph view on the note header.
InfraNodus AI Graph View
2 years ago by Nodus Labs
Advanced graph view for Obsidian: text analysis, topic modeling, and AI with InfraNodus AI text analysis tool: https://infranodus.com
Habit Tracker
5 years ago by duo
This plguin for Obsidian creates a simple month view for visualizing your punch records.
D2
3 years ago by Terrastruct
The official D2 plugin for Obsidian. D2 is a modern diagram scripting language thats turns text to diagrams.
Obsidian Graphviz
4 years ago by Feng Peng
Graphviz plugin for obsidian md.
Canvas Links
3 years ago by aqav
Show the links between "Canvas" and "File"
Mindmap
2 years ago by YunXiaoYi
An Obsidian plugin for creating Mindmaps.
Canvas Filter
3 years ago by Ivan Koshelev
Obsidian Canvas plugin that let's you show only pages / arrows with specific tags / colors / connections.
Show Whitespace
2 years ago by Erin Schnabel
Show leading/trailing whitespace
CardNote
2 years ago by cycsd
Help you extract your thoughts more quickly in canvas
Neo4j Graph View
5 years ago by Emile van Krieken
Advanced Progress Bars
a year ago by cactuzhead
Obsidian plugin to create custom progress bars
Enhanced Canvas
a year ago by RobertttBS
When editing on Canvas, properties and Markdown links to notes are automatically updated, enabling backlinks in Canvas.
Graph Link Types
2 years ago by natefrisch01
Link types for Obsidian graph view.
Release Timeline
4 years ago by cakechaser
Chessboard Viewer
5 years ago by Davide Aversa
Plugin to render chessboards in Obsidian using chessboardjs
Habit Tracker
4 years ago by David Moeller
A Plugin to display a Habit Tracker in Obsidian.
Nifty Links
3 years ago by x-Ai
Generating elegant, Notion-styled rich link cards to enhance your note-taking experience.
Tasks Map
7 months ago by NicoKNL
A graph view of your tasks.
Canvas Mindmap Helper
2 years ago by Tim Smart
New 3D Graph
10 months ago by Aryan Gupta
Visualize your vault in 3D with a powerful, highly customizable, and filterable graph.
Arrows
2 years ago by artisticat
Draw arrows across different parts of your notes, similar to on paper
Export Graph View
a year ago by Sean McGhee
Plugin to export your vault's graph view.
Argument Map with Argdown
5 years ago by amdecker
Dirtreeist
3 years ago by kasahala
Render a directory Structure Diagram from a markdown lists in codeblock.
Chemical Structure Renderer
3 years ago by xaya1001
Render chemical structures from SMILES strings into PNG or SVG format using Ketcher and Indigo Service.
Tracker+
3 years ago by GreaterThan (original by pyrochlore)
A plugin for Obsidian that tracks and visualizes in your notes. A continuation of the plugin originally developed by @pyrochlore
Content Cards
a year ago by leo
Insert content cards in Markdown, such as timeline, highlightblock, target card, book information card, music information card, movie information card, photoes ablum, business card, content subfield, countdown, SWOT,BCG.
WaveDrom
5 years ago by Alex Stewart
Adamantine Pick
3 years ago by Urist McMiner
Embeddable Pikchr(https://pikchr.org) diagrams renderer plugin for Obsidian(https://obsidian.md)
historica
2 years ago by Nhan Nguyen
Not (smart) to help you create your timeline in obsidian like a ... bro
Lilypond
3 years ago by DOT-ASTERISK
Lilypond for Obsidian
YourPulse - Your Writing Activity Visualised
a year ago by Jiri Sifalda
YourPulse.cc - Obsidian.md plugin that turns your vault into a reflection of your creativity, and put your writing on steroids 💪
Desk
2 years ago by David Landry
A desk for obsidian
Node Factor
a year ago by CalfMoon
Customize factors effecting node size in obsidian graph.
Lineup Builder
4 years ago by James Fallon
An Obsidian plugin that lets you build football lineups
Flowcharts
a year ago by land0r
Flowchart Plugin for Obsidian – Create and customize flowcharts seamlessly within your Obsidian vault. Powered by Flowchart.js and designed for productivity
Laws of Form
3 years ago by Kevin German
Generate Timeline
a year ago by Shanshuimei
An obsidian plugin to generate timelines from tags, folders, files or metadata automatically. 根据标签,文件夹,文件或者属性自动生成时间轴的插件。
Storyclock Viewer
2 years ago by Jonathan Fisher
Obsidian plugin for creating a storyclock
BattleSnake Board Viewer
3 years ago by EnderInvader
Plugin to render battlesnake boards in Obsidian
Tier List
a year ago by Mox Alehin
Obsidian plugin for visual ranking and organizing content into customizable Tier Lists.
Mathematica Plot
2 years ago by Marcos Nicolau
Insert functions on Obsidian using Wolfram Mathematica!
Folder Canvas
a year ago by Nancy Lee
Generate a canvas view of your folder structure
Easy Timeline
a year ago by Romeliun
The Easy Timeline plugin for Obsidian allows you to create timelines easily.
Markline
2 years ago by 闲耘
Markline: Markdown timeline view in Obsidian.
ASCII Tree Generator
a year ago by Matěj Michálek
Alfonso Money Manager
2 years ago by SmartLifeGPT Innovation
This is the repository for the obsidian plugin of the Alfonso Money Manager mobile application
Extended File Support
a year ago by Nick de Bruin
Adds opening and embedding support for various filetypes to Obsidian
Smart Vault Visualizer
a year ago by Evan Moscoso
Mermaid Icons
3 months ago by toshs
Obsidian plugin enabling the use of icons in Mermaid diagrams.
Mapbox Location Image
2 years ago by Aaron Czichon
Render a mapbox location image based on provided coordinates
Canvas Explorer
2 years ago by Henri Jamet
A plugin that enables users to explore their vault by iteratively adding or ignoring linked notes, ultimately generating a customizable canvas that visually represents the preserved notes and their connections.
Weather Widget
3 months ago by mr-asa
Weather widget for display in notes, Canvas, and a separate tab.
Magic Move
2 years ago by imfenghuang
Animating Code Blocks in Obsidian
Tagvis
a year ago by Mason Bryant
NodeFlow
a year ago by LincZero
Render node streams like `ComfyUi`, `UE`, `Houdini`, `Blender`, etc., to make it easy to write relevant notes. json describes the chart, compared to screenshots, making it easier to modify later. The plugin is also compatible with blogs.",
Waveform Player
a year ago by Zhou Hua
Timelive
a year ago by aNNiMON
Turn a list of dates into a timeline
Every Day Calendar
a year ago by QuBe
Obsidian plugin to create calendars inspired by Simone Giertz's Every Day Calendar
Boardgame Search
a year ago by Marlon May
A plugin to create notes for boardgames based on the BGG API
Life in Weeks Calendar
6 months ago by Jeff Szuc
Plugin for the Obsidian markdown editor. Displays a calendar of your life in weeks with weekly Periodic Notes plugin integration. Includes options for the traditional Memento Mori/Stoic style calendar, as well as a Gregorian calendar accurate version.
Inline Local Graph
3 months ago by TKOxff
Inline Local Graph of Obsidian
Visited Countries
7 months ago by Ivan Peshykov
Obsidian plugin to mark and visualize the countries you've visited on an interactive world map.
NyanBar
2 years ago by xhyabunny
Give life to your Obsidian notes with NyanBar !
Kale Graph
a year ago by Oli
Render mathematical graphs in Obsidian
Poker Range
2 years ago by marplek
Easily create, view, and interact with poker hand ranges in your obsidian.
ShaahMaat-md
a year ago by Mihail Kovachev
GLSL Viewer
3 months ago by iY0Yi
Preview GLSL shaders on Obsidian.
Class Relation Visualization
a year ago by Yong
Mahjong Renderer
2 years ago by hypersphere
GoBoard
4 months ago by Dmitry I. Sokolov
Obsidian plugin for rendering Go game diagrams from markdown code blocks