style: fix prettier table formatting in wiki

This commit is contained in:
Aric Camarata 2026-03-08 17:30:56 -04:00
parent efc9e60dd9
commit d1373ece1c
2 changed files with 36 additions and 36 deletions

View file

@ -42,7 +42,7 @@ const h = moment(new Date(2023, 2, 23)).toHijri({ calendar: 'fcna' });
**HijriDate fields:** **HijriDate fields:**
| Field | Type | Description | | Field | Type | Description |
| --- | --- | --- | | ----- | -------- | -------------------------------------------- |
| `hy` | `number` | Hijri year | | `hy` | `number` | Hijri year |
| `hm` | `number` | Hijri month (1 = Muharram, 12 = Dhul Hijjah) | | `hm` | `number` | Hijri month (1 = Muharram, 12 = Dhul Hijjah) |
| `hd` | `number` | Hijri day (1-30) | | `hd` | `number` | Hijri day (1-30) |
@ -117,7 +117,7 @@ moment(new Date(2023, 2, 23)).formatHijri('iD iMMMM iYYYY [CE:] MMMM D, YYYY');
**Format tokens:** **Format tokens:**
| Token | Example output | Description | | Token | Example output | Description |
| --- | --- | --- | | ------- | ---------------- | --------------------------------------- |
| `iYYYY` | `1444` | Hijri year, 4+ digits, zero-padded to 4 | | `iYYYY` | `1444` | Hijri year, 4+ digits, zero-padded to 4 |
| `iYY` | `44` | Hijri year, last 2 digits, zero-padded | | `iYY` | `44` | Hijri year, last 2 digits, zero-padded |
| `iMMMM` | `Ramadan` | Month long name | | `iMMMM` | `Ramadan` | Month long name |
@ -161,7 +161,7 @@ interface ConversionOptions {
``` ```
| Calendar ID | Description | | Calendar ID | Description |
| --- | --- | | ----------- | ------------------------------------------------------------------ |
| `uaq` | Umm al-Qura: official Saudi calendar, tabular, covers AH 1318-1500 | | `uaq` | Umm al-Qura: official Saudi calendar, tabular, covers AH 1318-1500 |
| `fcna` | FCNA/ISNA: Fiqh Council of North America calculated calendar | | `fcna` | FCNA/ISNA: Fiqh Council of North America calculated calendar |

View file

@ -42,7 +42,7 @@ The augmentation is emitted in the declaration files produced by tsup, so consum
The regex is ordered longest-match-first to prevent prefix collisions: The regex is ordered longest-match-first to prevent prefix collisions:
```javascript ```javascript
/iYYYY|iYY|iMMMM|iMMM|iMM|iM|iDD|iD|iEEEE|iEEE|iE|ioooo|iooo/g /iYYYY|iYY|iMMMM|iMMM|iMM|iM|iDD|iD|iEEEE|iEEE|iE|ioooo|iooo/g;
``` ```
`iYYYY` must appear before `iYY` for obvious reasons; `iMMMM` before `iMMM` and `iMM`; `iDD` before `iD`; `iEEEE` before `iEEE`. The global flag allows the regex to find all non-overlapping tokens in one pass. `iYYYY` must appear before `iYY` for obvious reasons; `iMMMM` before `iMMM` and `iMM`; `iDD` before `iD`; `iEEEE` before `iEEE`. The global flag allows the regex to find all non-overlapping tokens in one pass.
@ -67,7 +67,7 @@ Because moment-hijri-plus uses hijri-core as a peer dependency, the registry is
tsup produces four files: tsup produces four files:
| File | Format | Purpose | | File | Format | Purpose |
| --- | --- | --- | | ------------------ | --------------- | ----------------------------------------------- |
| `dist/index.cjs` | CommonJS | `require()` in Node.js and bundlers in CJS mode | | `dist/index.cjs` | CommonJS | `require()` in Node.js and bundlers in CJS mode |
| `dist/index.mjs` | ESM | `import` in Node.js, Vite, Rollup, esbuild | | `dist/index.mjs` | ESM | `import` in Node.js, Vite, Rollup, esbuild |
| `dist/index.d.ts` | CJS declaration | Types for CJS consumers (`require`) | | `dist/index.d.ts` | CJS declaration | Types for CJS consumers (`require`) |
@ -78,7 +78,7 @@ Both `moment` and `hijri-core` are marked external, so they are not bundled. The
## Calendar coverage ## Calendar coverage
| Calendar | ID | Range | Authority | | Calendar | ID | Range | Authority |
| --- | --- | --- | --- | | ----------- | ------ | ---------------------------------- | ----------------------------- |
| Umm al-Qura | `uaq` | AH 1318-1500 (approx CE 1900-2076) | Official Saudi calendar | | Umm al-Qura | `uaq` | AH 1318-1500 (approx CE 1900-2076) | Official Saudi calendar |
| FCNA/ISNA | `fcna` | Calculated, no hard range | Fiqh Council of North America | | FCNA/ISNA | `fcna` | Calculated, no hard range | Fiqh Council of North America |