vscode-markdown-digit
English | 日本語

Formats locale-marked integers in the Visual Studio Code Markdown preview using
markdown-it-digit.
The extension changes only the rendered preview. It does not modify the Markdown
source in the editor and does not provide commands or settings.
Installation
Search for "Markdown Digit" in the Visual Studio Code Extensions view.
Usage
Open a Markdown file and write an integer using the following syntax:
$<number>${<locale>}
For example:
$1234567${en}
The preview renders this as 1,234,567, while the source remains unchanged.
<number> must contain one or more ASCII digits (0–9). Leading zeros are
preserved, and locale identifiers are case-sensitive.
Supported locales
| Locale |
Preview output for $123456789${locale} |
en |
123,456,789 |
in |
12,34,56,789 |
jp |
1億2345万6789 |
cn |
1亿2345万6789 |
kr |
1억2345만6789 |
tw |
1億2345萬6789 |
The East Asian units are rendered as subscript text in the Markdown preview.
jp, cn, kr, and tw are format identifiers defined by
markdown-it-digit; they are not ISO language codes or BCP 47 language tags.
Content that is not transformed
The extension leaves the following content unchanged:
- ordinary numbers without the explicit locale syntax
- invalid syntax and unsupported or incorrectly cased locales
- fenced and indented code blocks
- inline code
- URLs and Markdown link destinations
- HTML attributes and HTML comments
- syntax escaped with a Markdown backslash
For complete parsing and formatting behavior, see the
markdown-it-digit documentation
and its
specification.
Requirements
- Visual Studio Code 1.125.0 or later
License
MIT