Repository navigation
·
1 commit
to v3
since this release
Immutable
release. Only release title and notes can be modified.
Highlights
- Markup linting. A rule can read a page as it is written.
raw & doc(...)selects a page's blocks with their markers and indentation, and ametricformula reads counts such as a block's indentation, the blank lines around it, and a heading's level. Blocks are read in Markdown, AsciiDoc, reStructuredText, Org, HTML, and Typst. - Scopes inside a block. In Markdown, code spans, emphasis, links and their labels, URLs, footnotes, and front matter are scopes of their own beside
raw.:headingand:first-blockjoin thedoc(...)selectors. - Rule parameters. Any rule can declare
params, and a.vale.inisets them withStyle.Rule[name] = value. - Links and anchors. A page's link targets, image sources, anchors, and fence languages are
metascopes, so a rule can report an empty link or a fragment with no anchor. --cache. Vale keeps each file's alerts and lints only the files that changed.sync --if-needed.vale syncskips the sync when nothing has changed since the last one.
From the blog
![]() |
Vale lints markup now The v3.30.0 release of Vale can lint a page's markup as well as its prose, and a new package reproduces markdownlint rule for rule. |
Packages
- Markdown: All 53 markdownlint rules as a Vale style.
Changelog
Features
- 34e0484 feat: Skip a script that runs out of time on a file, and let a rule set its limit
- 44d741f feat: Add front matter and footnotes as raw scopes
- ffe0df0 feat: Give every rule params
- dcb0ab5 feat: Add :first-block to doc()
- 7bcbdc8 feat: Let a scope be the whole of an existence rule, and a script's parameter a list
- 4cbcfba feat: Give a script on a table its rows
- d39e3b4 feat: Add the delimiter scope
- c8c3d39 feat: Add :heading to doc()
- ead4bef feat: Tell a block under front matter from the page's first
- e9054a3 feat: Add the label scope, and end an address where its link's text does
- 47b2708 feat: Give scripts the page's blocks, and scopes addresses and info strings
- fcadd0d feat: Add emphasis, math, and link states to what a scope beside raw reads
- 984e50f feat: Fix markup rules in place, and give scripts and scopes more to read
- 2c36829 feat: Count headings and fences on blocks as written
- 714f315 feat: Add
firstto consistency, and judge late blocks by comment regions - f45562b feat: Let a metric's formula be the whole test
- 548980b feat: Report each line a metric bounds, and what a list opens with
- f45f054 feat: Read blocks as written in AsciiDoc, reST, Org, HTML and Typst
- 68e8157 feat: Read a page's links, images and anchors as meta scopes
- cd1829a feat: Measure a block's layout with metric, and select its first line
- 5c2c121 feat: Narrow raw by doc() to a page's blocks as written
- 111b2f1 feat: Add --cache to lint only the files that changed
- deeb55e feat: Skip broken package rules and add sync --if-needed
Fixes
- bc0631a fix: Match a :has() whose selector runs past one step
- 6d0f15d fix: Read a LaTeX image, a reStructuredText target, and a QDoc link's address as meta
- 7e312f9 fix: Leave a code block the line that opens it under a paragraph
- fef71c9 fix: Run a doc(...) rule beside rules on the page as written
- e533eb1 fix: List VALE_CACHE_DIR in ls-vars
- 2065364 fix: Read a reStructuredText :name: option as an id
- e2e24af fix: Give an AsciiDoc block the line it is read from
- 5228c03 fix: Look for an Org block from the line it is written on
- f754570 fix: Look for a Typst block from where it is written
- 2149faa fix: Look for a QDoc block from the line it is written on
- 078b248 fix: Look for a LaTeX block from where it is written
- dc5ef42 fix: Look for an HTML block from where it is written
- f1dabb2 fix: Read pandoc's Highlighting as code in LaTeX
- 11db757 fix: Place an inline element where it was read
- 4aa422a fix: Don't mask a made-up id's words out of the prose
- 346ded8 fix: Look for a block from the line its converter read it on
- 9e85e8a fix: Narrow raw by a scope it only leaves out
- 3bfc9da fix: Place blocks under a heading that follows front matter
- e88a255 fix: Read nothing inside inline math
- 8e97b58 fix: End a table at an indented row, and place an item written after a marker
- 4b16f07 fix: Retry downloads that get a nonstandard status
- cd9a270 fix: Keep Org's ---, --, and ... as typed
- 4bb9ef3 fix: Run TestRawParity only in a full build, and on any line ending
- c7545e4 fix: Leave a pattern's spaces alone in rules on blocks as written
- 7c8b695 fix: Compile a metric's condition once, not once per block
- 4bae76f fix: Place Markdown alerts after fences, in footnotes, and in inline code
- 1a71a95 fix: Read a wrapped QDoc signature as markup
- 4a0f32e fix: Reject rules missing required fields and report every YAML error
- d60cbf0 fix: Reject mistyped paths and unknown flag values
- c4d7a29 fix: Order package configs from files, clean up temp dirs, stop package loops
- 01bcbf6 fix: Time out stalled downloads and order package configs numerically
- 2eaabca fix: Keep the sync record in .vale-config, ignored
Performance
- 487eeaf perf: A warm --cache run builds no file, and output is drawn directly
- e4a08a4 perf: Pack the results --cache keeps
- a076db6 perf: Hold a block's layout counts in an array
- c182b16 perf: Ask a token where a lookahead says its match starts
- a626865 perf: Mask a check's matches in the walker's bytes
- b0fd68d perf: Place an alert from its block, not from the top of the page
- 6a5f112 perf: Stop looking for a link target the page doesn't hold
- 7cbde80 perf: Write each file's alerts as JSON on its own
- 08fae37 perf: Don't read a page as prose when no rule reads prose
- da2d75f perf: Pass over a line whose matches would all be thrown away
- 5e12d1c perf: Ask a token only where its match can start
- 8f913b5 perf: Compile and scan faster in regexp2
- 10d184a perf: Ask only the inline elements around a match
- 73bf99a perf: Find a block's addresses without a pattern
- 1d264a5 perf: Answer a metric's sum without a script, and time it only when one runs
- 5209396 perf: Ask a DFA first whether a block can match
- 5d83592 perf: Read a doc() page from its parsed tree
- 1cb2787 perf: Work out per-run values once
- 824da01 perf: Ask Go's regexp first whether a block can match
Maintenance (11)
- fa4ab14 ci: Write the release notes from the site's script
- df0a031 chore: Keep go-org in the repository
- 99b4d51 chore: Keep typst2vast in the Typst module
- aa57ba7 chore: Keep the AsciiDoc and reStructuredText converters in the repository
- fa201dc chore: Keep regexp2 in the regex package
- 659b762 Fix fragments and table columns, and hold rumdl's list rules to rumdl
- 5bca23c chore: Bump prose to v3.3.7
- 698e212 chore: Bump prose to v3.3.6
- 93af5f8 Check that the prose models release exists
- e2c4d97 Add the npm packages
- f23516b chore: Bump prose to v3.3.5
