dprint-plugin-asciidoc
v0.1.0
Published
AsciiDoc formatter plugin for dprint - distributed via npm
Maintainers
Readme
dprint-plugin-asciidoc
Installation
npm install --save-dev dprint-plugin-asciidocOr with yarn:
yarn add --dev dprint-plugin-asciidocOr with pnpm:
pnpm add --save-dev dprint-plugin-asciidocUsage
Add the plugin to your dprint.json configuration:
{
"plugins": [
"https://plugins.dprint.dev/asciidoc-0.1.0.wasm"
],
"asciidoc": {
"lineWidth": 80,
"indentWidth": 2,
"useTabs": false,
"newLineKind": "lf"
}
}Configuration Options
| Option | Type | Default | Description |
| ------------- | ---------------------------- | ------- | --------------------------- |
| lineWidth | number | 80 | Maximum line width |
| indentWidth | number | 2 | Number of spaces per indent |
| useTabs | boolean | false | Use tabs instead of spaces |
| newLineKind | "lf" \| "crlf" \| "system" | "lf" | Newline character style |
Formatting Files
After configuration, format your AsciiDoc files:
# Format all .adoc files
npx dprint fmt "**/*.adoc"
# Check formatting without writing
npx dprint check "**/*.adoc"Requirements
- dprint CLI installed
- Node.js 16+ (for npm package management)
License
MIT - see LICENSE
