prettier-bigdoc
v1.0.6
Published
Modified Prettier for large-scale documentation task
Readme
prettier-bigdoc
Modified Prettier for large-scale documentation task. Based on Prettier version 3.3.3. Supports for md, mdx.
Prettier?
About Prettier, see below.
- Web: https://prettier.io/
- GitHub: https://github.com/prettier/prettier
Install
npm install --save-dev prettier@npm:prettier-bigdocIf you want install plugin
You can use plugins that are supported by Prettier version 3.3.3.
- Add plugin in overrides field.
npm pkg set overrides.${PLUGIN_NAME}.prettier="npm:prettier-bigdoc" - Install plugin.
npm install --save-dev prettier ${PLUGIN_NAME}
Modified features
Table hyphen limitation
Fix hyphen of table to 3 to allow reading and editing large-scale table with word wrap applied. Make the worst a little less worst.
<!-- prettier 3.3.3 -->
| Long and complicated header 1 | Long and complicated header 2 |
| ------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| The first long and complicated descriptions and text to supplement them.<br>Less important descriptions that should be placed on the bottom line. | Second long and complicated descriptions and text to supplement them.<br>Less important descriptions that should be placed on the bottom line. |
<!-- prettier-bigdoc -->
| Long and complicated header 1 | Long and complicated header 2 |
| --- | --- |
| The first long and complicated descriptions and text to supplement them.<br>Less important descriptions that should be placed on the bottom line. | Second long and complicated descriptions and text to supplement them.<br>Less important descriptions that should be placed on the bottom line. |<br> tags auto closure
<!-- prettier 3.3.3 -->
<br>
<!-- prettier-bigdoc -->
<br />More will be added as needed
In future.
Dev commands
Build
npm run buildTest
Project
node ./bin/prettier.cjs --write proto-test/example.mdDist
node ./dist/bin/prettier.cjs --write proto-test/example.mdTODO
- [x]
<br>-><br /> - [ ] Update test case of markdown table
- [ ] Add more features
