@willbooster/wb 22.24.0 → 22.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -220,6 +220,20 @@ fails verification.
220
220
  wb uses its own `code-gauge` and code-gauge's default thresholds; a `code-gauge.config.json` in the
221
221
  repository overrides them.
222
222
 
223
+ ## Japanese spacing in Markdown
224
+
225
+ `wb lint --format` (and so the pre-commit hook and `wb verify`) removes the spaces between Japanese
226
+ and half-width alphanumeric characters in the plain text of Markdown paragraphs, lists, tables, and
227
+ inline links, e.g. `この 2 つの LLM` becomes `この2つのLLM`, before oxfmt formats them. Everything
228
+ else keeps its spacing: code, blockquotes (which often cite external text verbatim), headings (whose
229
+ anchors links must keep matching), reference links (whose text must keep matching their
230
+ definitions), image alt text, HTML tags and their attributes, HTML blocks without blank lines, and
231
+ link titles, as well as the spaces next to inline code, outside bold or italic spans, and around
232
+ half-width parentheses. Text between HTML tags that a blank line separates from them (e.g. inside
233
+ `<details>`) is a paragraph and gets fixed. It covers the `*.md` files that Git tracks or does not
234
+ ignore, except test fixtures and the paths matched by a `.textlintignore` in any directory, with
235
+ gitignore syntax relative to that directory. It fixes text only and never fails `wb lint`.
236
+
223
237
  ## Slidev checks
224
238
 
225
239
  `wb slidev-check` checks slide text with textlint, then checks rendered Slidev decks.