Skip to content
Edit this page View source of this page

Changelog

[0.3.5] - 2026-11-05

Added

  • feat: hovering a score shows its change from starting_score: (default 25000).
  • feat: a table with all four scores must add up, counting riichi sticks, starting_score: and bank loans.
  • feat: score: 7000(10000) is 7000 after borrowing 10000 from the bank, with the loan shown on hover.

Changed

  • fix: face-down discards respect r, t and c markers.
  • fix: a block with no tiles to show reports an error instead of an empty figure.
  • fix: a hand is limited to 14 tiles, counting each meld as 3 and any draw.
  • fix: mj: inside a longer code span or after an escaped backtick stays literal.
  • fix: an evenly indented block no longer merges the hand into its discards.
  • fix: face-down inline tiles follow the theme option.
  • fix: remaining: auto counts the draw when the hand isn't full.
  • fix: a closed kan always shows its red five.
  • fix: a meld no longer joins digits to a suit on its other side.
  • fix: runs of inline face-down tiles are announced once.
  • fix: enable_inline rejects unknown values.
  • fix: color options accept uppercase function names and reject empty ones.
  • fix: very long numbers report an error instead of crashing.
  • fix: an added kan render order.
  • css: dora wall drops the seam on face-down stacks, tints it on face-up ones, and darkens the tile edges.

[0.3.4] - 2026-11-04

Added

  • feat: round: S2-1 sets the honba as part of the round.
  • feat: inline melds with mj:, e.g. .
  • feat: discards can continue onto indented lines.

Changed

  • chore: optimize assets to reduce size
  • fix: infer seat winds from any player and reject winds out of turn order.
  • fix: an empty bottom player keeps their inferred wind when showing sticks or the round marker.
  • fix: called tiles keep their opacity in the same-tile highlight.
  • fix: toimen's discard rows overlap in the right order.
  • css: fix toimen tile shadow

[0.3.3] - 2026-11-04

Added

  • feat: remaining: auto counts the tiles left in the wall on a full table.
  • feat: hovering a tile on a table highlights every visible copy.

Changed

  • fix: keep pieces from touching on mobile, especially on a table.
  • fix: mobile tiles keep the desktop tile's corner proportions.
  • fix: riichi and honba sticks no longer cut off along their edges.
  • fix: straighten the sides of a single hand's discards.
  • refactor: redraw the East and South round markers as SVG.

[0.3.2] - 2026-11-04

Changed

  • refactor: simplify meld parsing and hand option handling.
  • refactor: skip empty players from their rendered output, removing _has_content.
  • refactor: import the extension at the top of superfences.py
  • fix: an empty Hand() opponent no longer renders an empty wrapper.
  • docs: correct the MahjongParser docstring on face-down tiles.
  • test: cover added kan stacking, invalid melds, and X tile outside the z suit.
  • fix(a11y): announce face-down runs once, name the closed tiles group, mark called and added meld tiles.
  • fix(a11y): keep English labels out of lang="ja", and match title to aria-label.
  • fix: tooltips on a table beyond the bottom player's pieces.
  • fix: side players' closed tiles overlapping their melds on mobile.
  • feat: align table melds to each player's right edge.
  • chore: drop Python 3.10 support.

[0.3.1] - 2026-11-03

Changed

  • fix: stricter matching for inline tiles
  • fix: blank tiles in Zensical blog post excerpt

[0.3.0] - 2026-11-03

Added

  • feat: shimo., toimen. and kami. block options render a full table.
  • feat: seat: and score: block options show the seat wind and score.
  • feat: riichi: and honba: block options render point sticks, kept by the dealer on a table.
  • feat: round: and remaining: block options show the round (e.g. 南二局) and tiles left (残 N).
  • feat: East/South round marker sits with the original dealer.
  • feat: dora indicators render as a stretch of the dead wall.
  • feat: tile_back_color and table_color options.

Changed

  • feat: center the dora indicators and drop their visible label.
  • fix: dora indicators count toward the 4-per-tile limit on single hands too.
  • fix: a rejected configure_superfences() call keeps the previous config.
  • feat: discards after the riichi tile render as tsumogiri.
  • fix: reject a block option given more than once instead of keeping the last.
  • test: write full-width digits as escapes to satisfy ruff.

Removed

  • feat!: drop the ura: block option and Hand.ura_indicators.
  • feat!: drop the waits: block option and Hand.waits.
  • remove: drop the visible "Draw" label above the drawn tile.

[0.2.3] - 2026-10-29

Added

  • feat: discards: block option renders a discard pile (rows of 6, 6, rest) above an optional hand, with r (riichi), t (tsumogiri) and c (called) markers.

Changed

  • fix: align sideways tiles' 3D edge with upright tiles.
  • fix: fenced blocks use their own Markdown instance's config; it overrides configure_superfences().
  • fix: raise ValueError on invalid theme or closed_kan_style.
  • fix: keep unpaired quotes in block options (title: The players').
  • docs: register pymdownx_mahjong alongside SuperFences.
  • refactor: stateless parser; remove unused constants.
  • chore: single-source version; add Python 3.14.
  • chore(CI): run pytest and mypy.
  • chore(CI): add ruff format and lint checks

[0.2.2] - 2026-10-14

Added

  • feat(a11y): label tiles (role="img", aria-label), face-down tiles, melds, the draw tile, and uncaptioned hands for screen readers.

Changed

  • perf: emit each tile's SVG once per page as a <symbol> and reference it with <use>, instead of inlining the full SVG for every tile (and twice with theme: auto).
  • fix: deterministic SVG IDs, so rebuilding a page produces identical HTML.
  • chore(CI): only publish to PyPI from a published release
  • fix: reject invalid melds: pon/kan of non-identical tiles, chi called from ^ or >, added kan without a source marker, and closed melds that aren't a kan.
  • fix: count red 5s toward the 4-per-tile limit (55550m is now an error).
  • fix: count the draw: tile toward the 4-per-tile limit, and reject a draw: of more than one tile.
  • fix: reject unknown block options (e.g. doras:) and a second hand notation line instead of silently ignoring them.
  • chore: add tests for extension and renderer

[0.2.1] - 2026-06-04

Changed

  • css: center render when there are no melds
  • fix: restrict X as a tile of the z suit
  • fix: match mj: ONLY when it's delimited by a single backtick

[0.2.0] - 2026-06-04

Added

  • feat: backtick inline syntax mj:... to render tile groups or a whole hand inline.
  • feat: Xz notation for a face-down tile (e.g. :Xz:).

Changed

  • css: style tiles with a depth/side face.
  • css: slightly rounded corners; lighter tile background and border in dark mode.
  • css: left-align the block with symmetric margins, right-justify called melds, and center the draw tile between the hand and the melds.
  • css: scale the dora/ura/waits indicator row to 90%.

[0.1.2] - 2026-05-08

Added

  • feat: add waits section after dora and ura.

Changed

  • refactor: rename uradora to ura throughout: Hand.ura_indicators field, ura block option key, CSS class mahjong-ura, and display label.
  • css: restyle dora/ura/waits indicator labels: stacked above tiles.

[0.1.1] - 2026-03-16

Changed

  • docs: use zensical.toml instead of mkdocs.yml to configure Zensical for documentation.
  • refactor: push extension config to superfences state eagerly in extendMarkdown instead of lazily in superfences_validator.
  • refactor: use parse_tiles() instead of parse() for dora, uradora, and draw options in apply_hand_options.

Removed

  • feat: remove built-in MahjongBlockProcessor in favor of pymdownx.superfences.
  • chore: remove MahjongInlineProcessor and INLINE_TILE_PATTERN from public API.
  • chore: remove unused CSS hand size variant rules.
  • chore: remove redundant Hand.total_tile_count property (use len(hand.all_tiles) instead).
  • chore: remove unreachable if not tiles guard in MahjongInlineProcessor.handleMatch.

[0.1.0] - 2026-02-09

  • Initial release