Skip to content

Commit

Permalink
resolve chinese numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
champkeh committed Jul 4, 2023
1 parent 145f9bd commit 3cbc8d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ docx.js.map
/*.json
/*.config
*.log
.idea
7 changes: 7 additions & 0 deletions src/html-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,13 @@ section.${c}>article { margin-bottom: auto; }
"lowerRoman": "lower-roman",
"upperRoman": "upper-roman",
"chineseCounting": "simp-chinese-informal",
"chineseCountingThousand": "simp-chinese-informal",
"chineseLegalSimplified": "simp-chinese-formal", // 中文大写
"ideographTraditional": "cjk-heavenly-stem", // 十天干
"ideographZodiac": "cjk-earthly-branch", // 十二地支
// "ordinal": "", // 1st, 2nd, 3rd,...
// "cardinalText": "", // One, Two, Three,...
"decimalZero": "decimal-leading-zero", // 01,02,03,...
};

return mapping[format] || format;
Expand Down

0 comments on commit 3cbc8d0

Please sign in to comment.