Format page titles and section headings in markdown files to use sentence-style capitalization.
- Input:
# A New Method for Creating JavaScript Rollovers- Output:
# A new method for creating JavaScript rolloversThis package is designed for Rspack's documentation. It follows the writing style of Rspack documentation and may not work well for other projects.
There are some edge cases that can not be correctly handled, so the execution result is not completely reliable.
Install:
npm add heading-case -DCheck all markdown and MDX files in the current directory:
npx heading-caseCheck and write the formatted content to the file:
npx heading-case --writeMIT.