Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
7c91950
Require an explicit path for in-place formatting
t-kalinowski Dec 4, 2026
0826d47
Record template overrides for a virtual stdin path
t-kalinowski Dec 4, 2026
c72ec30
Document excluded stdin paths with unsupported extensions
t-kalinowski Dec 4, 2026
ab67db1
Preserve default-based FormatConfig construction
t-kalinowski Dec 4, 2026
a60b92a
Match braces literally in exclusion patterns
t-kalinowski Dec 4, 2026
304f40e
Exercise directory-link exclusions on Windows
t-kalinowski Dec 4, 2026
2fa28d0
Resolve exclusions beside a symlinked config file
t-kalinowski Dec 4, 2026
b6dd2f0
Keep surviving symlink names when resolving parent paths
t-kalinowski Dec 4, 2026
e66dd59
Illustrate exclusion roots and literal brace patterns
t-kalinowski Dec 4, 2026
cae990f
Accept Git filter filenames beginning with a dash
t-kalinowski Dec 4, 2026
cdaf368
Use the incoming Git configuration when smudging a checkout
t-kalinowski Dec 4, 2026
7820e97
Publish checkout filter usage and upgrade instructions
t-kalinowski Dec 4, 2026
0046223
Keep Git line-ending conversion out of the smudge fixture
t-kalinowski Dec 4, 2026
0ac69cf
Reject unsupported POSIX classes in exclusion patterns
t-kalinowski Dec 4, 2026
0cf0b09
Select regular index entries before Git filter adoption
t-kalinowski Dec 4, 2026
69168f9
Isolate internal Git lookups from caller pathspec flags
t-kalinowski Dec 4, 2026
62e6b8a
Negotiate Git filter capabilities independently
t-kalinowski Dec 4, 2026
fb68b74
Record teardown output for current and legacy filter setups
t-kalinowski Dec 4, 2026
6afeb31
Explain when checkout needs a manual filter refresh
t-kalinowski Dec 4, 2026
55339e4
Keep embedded formatter commands out of Git conversions
t-kalinowski Dec 4, 2026
294f9af
Expand single-quoted custom filter filename arguments
t-kalinowski Dec 4, 2026
bfca01d
Run the installed Git filters in the persistent process
t-kalinowski Dec 4, 2026
beb9a10
Check treeless smudges against staged blob identities
t-kalinowski Dec 4, 2026
145d6fb
Share regular staged blob selection across Git filter operations
t-kalinowski Dec 4, 2026
9925014
Reuse checkout configuration throughout round-trip verification
t-kalinowski Dec 4, 2026
e65ceaa
Document how Git conversions select configuration
t-kalinowski Dec 4, 2026
e354323
Pass double-quoted Git filter paths as one argument
t-kalinowski Dec 4, 2026
85f40a1
Preserve unverified smudge input through custom Yamark commands
t-kalinowski Dec 4, 2026
d2a638a
Refresh the rendered Git filter guide
t-kalinowski Dec 4, 2026
a435ae8
Leave merge renormalization under repository control
t-kalinowski Dec 4, 2026
09ea5f0
Accept Git filter headers with or without LF
t-kalinowski Dec 4, 2026
cb801e0
Validate delegated smudge filenames before byte passthrough
t-kalinowski Dec 4, 2026
5b31414
Rediscover working-tree settings for each Git clean request
t-kalinowski Dec 4, 2026
b56691c
Check filtered files and attributes from the committed tree
t-kalinowski Dec 4, 2026
bbad252
Match configuration exclusions with Git wildmatch
t-kalinowski Dec 4, 2026
e38de8e
Clarify attribute precedence during committed-blob checks
t-kalinowski Dec 4, 2026
8615aef
Read staged settings and blob identity from the same Git index
t-kalinowski Dec 4, 2026
a07aad7
Batch worktree conversions during filter adoption and join
t-kalinowski Dec 4, 2026
76d5a80
Detect index changes without keeping the index file open
t-kalinowski Dec 4, 2026
1512936
Refresh the Git filter guide for merges and committed checks
t-kalinowski Dec 4, 2026
87bcacc
Restore converted files when Git cannot refresh checkout metadata
t-kalinowski Dec 4, 2026
e033e5d
Document the lifetime of the checkout batch
t-kalinowski Dec 4, 2026
5b8a2e6
Suppress index-change hooks during committed-blob verification
t-kalinowski Dec 4, 2026
0aa7780
Pin Git transcript inputs that depend on locale and object format
t-kalinowski Dec 4, 2026
d96040e
Limit Git clean configuration discovery to the worktree
t-kalinowski Dec 4, 2026
ab99d26
Run PATH-based Yamark filter commands in the serving process
t-kalinowski Dec 4, 2026
fdaa505
Keep temporary Git checkout and index directories private
t-kalinowski Dec 4, 2026
2444b7e
Match checkout exclusions against snapshot-relative paths
t-kalinowski Dec 4, 2026
aa1384e
Read committed attributes without writing an index on modern Git
t-kalinowski Dec 4, 2026
8fa617a
Preserve working-file access during Git filter adoption and join
t-kalinowski Dec 4, 2026
d187aef
Cover legacy hook isolation in the private-index check
t-kalinowski Dec 4, 2026
e506e22
Document checkout permissions and committed verification
t-kalinowski Dec 4, 2026
0916cfe
Commit Git index stat refreshes against their input snapshot
t-kalinowski Dec 4, 2026
c8e14f0
Record adoption stopping for a concurrent index change
t-kalinowski Dec 4, 2026
4150d6a
Limit the path requirement to the format CLI arguments
t-kalinowski Dec 4, 2026
021f781
Keep missing-path CLI transcripts portable
t-kalinowski Dec 4, 2026
61dcf04
Resolve the Yamark basename only in transcript usage lines
t-kalinowski Dec 4, 2026
2257a51
Show explicit paths in check and diff examples
t-kalinowski Dec 4, 2026
756f605
Show format help when invoked without arguments
t-kalinowski Dec 4, 2026
3e8acbd
Keep help transcript changes independent of Git filter fixtures
t-kalinowski Dec 4, 2026
9a54a99
Record exact help and diff output in isolated format fixtures
t-kalinowski Dec 4, 2026
f9fc46c
Isolate format transcripts from hooks and ancestor settings
t-kalinowski Dec 4, 2026
091b559
Exclude fixture ignore files from default-path scans
t-kalinowski Dec 5, 2026
4f8abb2
Warn that bare format rewrites files in Yamark 0.6.1
t-kalinowski Dec 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ yamark format config.yaml docs/
Format the current directory:

```sh
yamark format
yamark format .
```

Check whether files are already formatted without writing changes:
Expand Down
2 changes: 2 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<!-- Draft notes for the next release here as user-facing changes land. See RELEASE.md. -->

To format the current directory in place, use `yamark format .`. Running `yamark format` by itself now shows help. In-place writes require a path, even when the directory contains a `yamark.toml`. To check or preview changes, use `yamark format --check .` or `yamark format --diff .`. Both still default to the current directory when the path is omitted.

Use `exclude` in the `[format]` table of `yamark.toml` to keep files out of Yamark formatting. Its gitignore-style patterns are relative to the config directory. Unlike `.gitignore` and `.ignore`, which affect only directory traversal, `exclude` also applies to explicit paths, `--stdin-file-path`, and Git clean and smudge filters. Excluded file paths are counted as skipped, and stdin for an excluded path passes through unchanged. This also applies to editor Format Document and format-on-save; a configured next formatter still runs.

`[paths]` overrides now match a `--stdin-file-path` that does not exist on disk on Windows, or when the path passes through a symlinked directory. Previously these paths could fail to match the config directory.
5 changes: 5 additions & 0 deletions external-tests/cli/test_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
from _support import decode_output, run_cli_case


def test_bare_format_matches_explicit_help() -> None:
help_output = run_cli_case("yamark format --help").stdout
assert run_cli_case("yamark format").stdout == help_output


def test_debug_format_help_shows_verify_and_omits_compat_flag() -> None:
result = run_cli_case("yamark format --help", stderr="")
stdout = decode_output(result.stdout)
Expand Down
11 changes: 9 additions & 2 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ enum Command {
compact: bool,
#[arg(long)]
skip_embedded_formatters: bool,
#[arg(value_name = "PATHS")]
#[arg(
value_name = "PATHS",
required_unless_present_any = ["check", "diff", "stdin_file_path"],
help = "Files or directories to format in place. Use '.' for the current directory"
)]
paths: Vec<PathBuf>,
},
#[command(about = "Convert JSON-family input from stdin to formatted YAML")]
Expand Down Expand Up @@ -131,7 +135,10 @@ pub fn run<I>(args: I) -> ExitCode
where
I: IntoIterator<Item = OsString>,
{
let args = args.into_iter().collect::<Vec<_>>();
let mut args = args.into_iter().collect::<Vec<_>>();
if matches!(args.as_slice(), [_, subcommand] if subcommand == "format") {
args.push(OsString::from("--help"));
}
if let Some(path) = default_format_path(&args) {
return run_format(
false,
Expand Down
4 changes: 3 additions & 1 deletion tests/cases/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CLI case files

Each `.case` file is executed through the compiled `yamark` binary. The format is:
Each `.case` file runs the compiled `yamark` binary with `NO_COLOR=1`. The format is:

```text
-- args
Expand All @@ -15,6 +15,8 @@ expected stderr
0
```

When output varies by platform or build profile, use `-- stdout-template` or `-- stderr-template` to record a JSON array of lines. Each quoted line preserves its trailing spaces and ends with a newline. Within these sections, `{{exe}}` stands for the Yamark binary's basename, `{{sep}}` for the native path separator, and a `{{debug-only}}` prefix includes the line only in builds with debug assertions. Ordinary `-- stdout` and `-- stderr` treat these markers literally.

The test harness intentionally avoids calling library internals. This keeps the public CLI contract readable and prevents implementation details from becoming part of the test API.

Feature-specific Markdown decision transcripts live in `cases/format-trace/` and are run by `cargo test --features format-trace --test format_trace`. They use the same exact invocation/input/output/status sections; keeping them separate lets the ordinary transcript suite run without feature-dependent output. They check that retained preservation and unavailable layout plans are reported as skipped, including when the node has a nominal formatting emit variant.
Expand Down
42 changes: 42 additions & 0 deletions tests/cases/format_bare_help.case
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
-- git-fixture
{
"config": {"core.autocrlf": "false", "core.hooksPath": ".git/no-hooks"},
"files": {
".gitignore": "!/docs/\n!/docs/input.md\n",
"docs/input.md": "# Title\n"
}
}
-- args
format
-- stdin
# Piped
-- stdout-template
[
"Usage: {{exe}} format [OPTIONS] [PATHS]...",
"",
"Arguments:",
" [PATHS]... Files or directories to format in place. Use '.' for the current directory",
"",
"Options:",
" --check ",
" --diff ",
" --diagnostics ",
"{{debug-only}} --verify Reparse changed YAML and reject invalid or value-changing output",
" --stdin-file-path <PATH> ",
" --config <PATH> ",
" --wrap <WRAP> [default: 72]",
" --table-widths <TABLE_WIDTHS> Table widths: fit contents or preserve source widths [default: fit]",
" --canonical ",
" --preserve-footnotes ",
" --line-width <LINE_WIDTH> [default: 80]",
" --prose-width <PROSE_WIDTH> [default: 72]",
" --indent-width <INDENT_WIDTH> [default: 2]",
" --compact ",
" --skip-embedded-formatters ",
" -h, --help Print help"
]
-- stderr
-- git-worktree
{"docs/input.md": "# Title\n"}
-- status
0
21 changes: 21 additions & 0 deletions tests/cases/format_default_check_path.case
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
-- git-fixture
{
"config": {"core.autocrlf": "false", "core.hooksPath": ".git/no-hooks"},
"cwd": "work",
"files": {
".gitignore": "!/work/\n!/work/docs/\n!/work/docs/input.md\n",
"yamark.toml": "",
"work/.ignore": "/.ignore\n!/docs/\n!/docs/input.md\n",
"work/docs/input.md": "# Title\n"
}
}
-- args
format --check
-- stdin
-- stdout
-- stderr
1 files scanned, 1 formatted, 0 unchanged, 0 skipped, 0 failed
-- git-worktree
{"work/docs/input.md": "# Title\n"}
-- status
1
28 changes: 28 additions & 0 deletions tests/cases/format_default_diff_path.case
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-- git-fixture
{
"config": {"core.autocrlf": "false", "core.hooksPath": ".git/no-hooks"},
"cwd": "work",
"files": {
".gitignore": "!/work/\n!/work/docs/\n!/work/docs/input.md\n",
"yamark.toml": "",
"work/.ignore": "/.ignore\n!/docs/\n!/docs/input.md\n",
"work/docs/input.md": "# Title\n"
}
}
-- args
format --diff
-- stdin
-- stdout-template
[
"--- .{{sep}}docs{{sep}}input.md",
"+++ .{{sep}}docs{{sep}}input.md",
"@@ -1 +1 @@",
"-# Title",
"+# Title"
]
-- stderr
1 files scanned, 1 formatted, 0 unchanged, 0 skipped, 0 failed
-- git-worktree
{"work/docs/input.md": "# Title\n"}
-- status
1
27 changes: 27 additions & 0 deletions tests/cases/format_missing_path_with_config.case
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-- git-fixture
{
"config": {"core.autocrlf": "false", "core.hooksPath": ".git/no-hooks"},
"files": {
".gitignore": "!/docs/\n!/docs/input.md\n!/yamark.toml\n",
"yamark.toml": "[format]\nwrap = \"none\"\n",
"docs/input.md": "# Title\n"
}
}
-- args
format --wrap 40
-- stdin
# Piped
-- stdout
-- stderr-template
[
"error: the following required arguments were not provided:",
" <PATHS>...",
"",
"Usage: {{exe}} format --wrap <WRAP> <PATHS>...",
"",
"For more information, try '--help'."
]
-- git-worktree
{"docs/input.md": "# Title\n"}
-- status
2
4 changes: 4 additions & 0 deletions tests/cases/markdown_template_bare_basic.case
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ format --wrap sentence --stdin-file-path input.md
First
sentence with {{ foo }}. Second
sentence.

Keep {{exe}} here.
-- stdout
First sentence with {{ foo }}.
Second sentence.

Keep {{exe}} here.
-- stderr
-- status
0
22 changes: 22 additions & 0 deletions tests/cli_cases.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use std::collections::BTreeMap;
use std::fmt::Write;
use std::fs;
use std::path::{Path, PathBuf};

Expand Down Expand Up @@ -55,6 +56,7 @@ fn cli_cases() {
}
command.args(split_args(&case.args));
command.write_stdin(case.stdin);
command.env("NO_COLOR", "1");
let assert = command.assert().code(case.status);
let output = assert.get_output();
assert_eq!(
Expand Down Expand Up @@ -271,6 +273,8 @@ fn flush(case: &mut Case, section: &str, body: &str) {
"stdout" => case.stdout = body.to_owned(),
"stderr" => case.stderr = body.to_owned(),
"status" => case.status = value.trim().parse().unwrap(),
"stdout-template" => case.stdout = render_output_template(value),
"stderr-template" => case.stderr = render_output_template(value),
"git-fixture" => case.git_fixture = Some(serde_json::from_str(value).unwrap()),
"git-status" => case.git_status = Some(body.to_owned()),
"git-index" => case.git_index = Some(serde_json::from_str(value).unwrap()),
Expand All @@ -280,6 +284,24 @@ fn flush(case: &mut Case, section: &str, body: &str) {
}
}

fn render_output_template(json: &str) -> String {
let binary = assert_cmd::cargo::cargo_bin("yamark");
let name = binary.file_name().unwrap().to_str().unwrap();
let mut output = String::new();
for line in serde_json::from_str::<Vec<String>>(json).unwrap() {
let line = match line.strip_prefix("{{debug-only}}") {
Some(_) if !cfg!(debug_assertions) => continue,
Some(line) => line,
None => &line,
};
let line = line
.replace("{{exe}}", name)
.replace("{{sep}}", std::path::MAIN_SEPARATOR_STR);
writeln!(output, "{line}").unwrap();
}
output
}

fn split_args(input: &str) -> Vec<String> {
input.split_whitespace().map(ToOwned::to_owned).collect()
}
9 changes: 7 additions & 2 deletions tests/website.rs
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ fn website_homepage_leads_with_purpose_and_scope() {

for text in [
"A fast formatter for YAML and Markdown.",
"uvx yamark format",
"uvx yamark format .",
] {
assert!(rendered.contains(text), "homepage should include {text:?}");
}
Expand Down Expand Up @@ -1379,7 +1379,12 @@ fn website_documents_command_line_reference() {
"`yamark format --diff PATHS`",
"`yamark format --stdin-file-path PATH`",
"`yamark to-yaml --stdin-file-path PATH`",
"When `PATHS` is omitted from `yamark format`, Yamark uses the current directory (`.`)",
"For help, run `yamark format --help`.",
"In Yamark 0.6.1, bare `yamark format` rewrites files in the current directory and its subdirectories.",
"Use `yamark format .` to format the current directory and its subdirectories.",
"`yamark format --check .`",
"`yamark format --diff .`",
"With `--check` or `--diff`, omitting the path selects the current directory (`.`).",
"An unsupported `--stdin-file-path` is an error",
"Unified diffs",
"Formatted YAML only",
Expand Down
2 changes: 1 addition & 1 deletion website/assets/social-card.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions website/cli-help.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ generated from the current Yamark binary.
exits `1` when formatting fails and `0` on success otherwise. Invalid command
syntax exits `2`.

When `PATHS` is omitted from `yamark format`, Yamark uses the current directory
For help, run `yamark format --help`. In Yamark 0.6.1, bare `yamark format`
rewrites files in the current directory and its subdirectories.

In the development version documented here, bare `yamark format` shows help.
In-place formatting requires a path, even in a directory with a `yamark.toml`.
Use `yamark format .` to format the current directory and its subdirectories.
Use `yamark format --check .` to check those files or `yamark format --diff .`
to preview changes.
With `--check` or `--diff`, omitting the path selects the current directory
(`.`). Format path mode counts unsupported extensions as skipped without
failing. An unsupported `--stdin-file-path` is an error because stdin mode
requires a supported file type.
Expand Down Expand Up @@ -69,7 +77,7 @@ Run `yamark &lt;COMMAND&gt; --help` for command-level help.
<pre class="yamark-cli-help"><code><span style='color: #5555FF; font-weight: bold;'>Usage:</span> <span style='color: #00BBBB; font-weight: bold;'>yamark format</span> <span style='color: #555555;'>[OPTIONS]</span> <span style='color: #555555;'>[PATHS]...</span>

<span style='color: #5555FF; font-weight: bold;'>Arguments:</span>
<span style='color: #555555;'>[PATHS]...</span>
<span style='color: #555555;'>[PATHS]...</span> Files or directories to format in place. Use '.' for the current directory

<span style='color: #5555FF; font-weight: bold;'>Options:</span>
<span style='color: #00BBBB; font-weight: bold;'>--check</span>
Expand Down
10 changes: 9 additions & 1 deletion website/cli-help.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,15 @@ generated from the current Yamark binary.
exits `1` when formatting fails and `0` on success otherwise. Invalid command
syntax exits `2`.

When `PATHS` is omitted from `yamark format`, Yamark uses the current directory
For help, run `yamark format --help`. In Yamark 0.6.1, bare `yamark format`
rewrites files in the current directory and its subdirectories.

In the development version documented here, bare `yamark format` shows help.
In-place formatting requires a path, even in a directory with a `yamark.toml`.
Use `yamark format .` to format the current directory and its subdirectories.
Use `yamark format --check .` to check those files or `yamark format --diff .`
to preview changes.
With `--check` or `--diff`, omitting the path selects the current directory
(`.`). Format path mode counts unsupported extensions as skipped without
failing. An unsupported `--stdin-file-path` is an error because stdin mode
requires a supported file type.
Expand Down
4 changes: 2 additions & 2 deletions website/directives.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ workflow:
- In an editor, enable format on save. The [Editors](editors.qmd) page shows
the VS Code and Positron settings. This is the most direct way to see a
directive take effect while editing.
- In a pre-commit hook, run `yamark format`. In CI, use
`yamark format --check` to verify files without changing them.
- In a pre-commit hook, run `yamark format .`. In CI, use
`yamark format --check .` to verify files without changing them.

The experimental [Git Filter](git-filter.qmd) serves a narrower workflow: it
stores selected Markdown files sentence-per-line while keeping the working tree
Expand Down
4 changes: 2 additions & 2 deletions website/directives.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ workflow:
- In an editor, enable format on save. The [Editors](editors.qmd) page shows
the VS Code and Positron settings. This is the most direct way to see a
directive take effect while editing.
- In a pre-commit hook, run `yamark format`. In CI, use
`yamark format --check` to verify files without changing them.
- In a pre-commit hook, run `yamark format .`. In CI, use
`yamark format --check .` to verify files without changing them.

The experimental [Git Filter](git-filter.qmd) serves a narrower workflow: it
stores selected Markdown files sentence-per-line while keeping the working tree
Expand Down
4 changes: 2 additions & 2 deletions website/git-filter.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,5 +232,5 @@ Every clone that wants the working-tree view needs the `git config` commands.
The `.gitattributes` file selects paths, but it does not define the filter
driver by itself.

Use a pre-commit hook or CI `yamark format --check` instead when you want the
repository storage form to match the working-tree form.
To keep the repository storage form the same as the working-tree form, use a
pre-commit hook or run `yamark format --check .` in CI.
4 changes: 2 additions & 2 deletions website/git-filter.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -232,5 +232,5 @@ Every clone that wants the working-tree view needs the `git config` commands.
The `.gitattributes` file selects paths, but it does not define the filter
driver by itself.

Use a pre-commit hook or CI `yamark format --check` instead when you want the
repository storage form to match the working-tree form.
To keep the repository storage form the same as the working-tree form, use a
pre-commit hook or run `yamark format --check .` in CI.
2 changes: 1 addition & 1 deletion website/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ from code, keeping source readable and changes easy to review.

::: {.hero-command}
<span>Run directly from PyPI</span>
`uvx yamark format`
`uvx yamark format .`
:::
:::
:::
Expand Down
2 changes: 1 addition & 1 deletion website/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ from code, keeping source readable and changes easy to review.

::: {.hero-command}
<span>Run directly from PyPI</span>
`uvx yamark format`
`uvx yamark format .`
:::
:::
:::
Expand Down
2 changes: 1 addition & 1 deletion website/usage.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ yamark format config.yaml docs/
Format the current directory:

```sh
yamark format
yamark format .
```

By default, Markdown prose wraps at column 72 without forcing sentence
Expand Down
Loading
Loading