dapper 1.4.0
dapper: ^1.4.0 copied to clipboard
A simple Markdown and YAML formatter for Dart, inspired by Prettier.
1.4.0 #
Changed #
- Internal: Remove dead code in Markdown printer related to checkbox list items.
- Internal: Remove duplicate
_ensureTrailingNewlinein YAML formatter, reusetext_utils.dart. - Internal: Clean up development notes and verbose comments in code.
- Internal: Move CLI modules from
bin/src/tolib/bin/for coverage and reusability. - Internal: Split
test/cli_test.dartintotest/bin/for better organization.
Added #
- Add
FileSystemabstraction inlib/bin/for testability (100% coverage). - Add
lib/bin.dartexporting CLI utilities (DapperCli,ConfigLoader,IgnoreRules). - Add
AGENTS.mdfor AI agent design guidelines.
1.3.7 #
Fixed #
- Fix unnecessary newline insertion after list items containing code blocks.
- Fix data loss when formatting checkbox list items with block content (e.g., code blocks).
- Fix data loss and incorrect structure when formatting nested blockquotes.
- Fix whitespace handling in paragraphs to ensure proper trimming, especially within blockquotes.
1.3.6 #
1.3.4 #
Fixed #
- Fix YAML block scalars (
|and>) being converted to double-quoted strings (e.g., in GitHub Actions workflows)
1.3.3 #
1.3.2 #
1.3.1 #
Changed #
- Change default Markdown unordered list style in the CLI from
-(dash) to*(asterisk).
1.3.0 #
Changed #
- Change default Markdown unordered list style from
-(dash) to*(asterisk) to match Prettier's default behavior.
1.2.0 #
Added #
- Add
.dapperignoreand.gitignoresupport for excluding files and directories- Glob pattern matching (e.g.,
*.generated.md) - Negation patterns to override defaults (e.g.,
!build) - Nested ignore file support (child directories inherit parent rules)
- Glob pattern matching (e.g.,
1.1.0 #
Fixed #
- Add missing
executablessection to enabledart pub global activate dapperto work correctly - Add
.pubignoreto reduce package size
1.0.1 #
Fixed #
- Normalize extra whitespace in list items (
* Item→* Item) - Normalize extra whitespace in headings (
# Title→# Title) - Normalize extra whitespace in blockquotes (
> Text→> Text)
Changed #
- Improved integration tests for messy input handling
- Updated example to demonstrate whitespace normalization
1.0.0 #
Initial release of Dapper * A simple Markdown and YAML formatter for Dart.
Features #
Markdown Formatting
- Emphasis normalization (
*text*→_text_) - List formatting with proper alignment (ordered and unordered)
- Configurable list bullet style (
-,*,+) - Code block preservation
- Table formatting with column alignment
- Prose wrapping (
always,never,preserve) - Definition list support
- Front matter preservation
- Setext to ATX heading conversion
- Deep nesting support
YAML Formatting
- Consistent, configurable indentation (default 2 spaces)
- Map and list formatting
- Nested structure support
- Automatic string quoting for special values
- Comment preservation (inline and block)
CLI
- Format files in place (
-o write) - Preview output (
-o show) - JSON output (
-o json) - CI check mode (
-o none --set-exit-if-changed) - Recursive directory processing
- Configurable print width and prose wrap
Configuration
dapper.yamlconfiguration file supportanalysis_options.yamlintegration- CLI arguments override file configuration