@hawkeyexl/manni 2.3.0 → 2.3.1

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/dist/docmeta.js CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  buildProgram
4
- } from "./chunk-7QVYG66K.js";
4
+ } from "./chunk-ESOEJTV2.js";
5
5
  import {
6
6
  runIfMain
7
- } from "./chunk-UCLMW3RE.js";
7
+ } from "./chunk-HUHERW7E.js";
8
8
 
9
9
  // src/docmeta.ts
10
10
  runIfMain(import.meta.url, () => buildProgram().name("docmeta"));
package/dist/index.d.ts CHANGED
@@ -4148,9 +4148,10 @@ declare function detectEol(text: string): "\n" | "\r\n";
4148
4148
  /**
4149
4149
  * The paragraph starting at or after `offset` (skipping blank lines), as
4150
4150
  * `{ start, end, line }` file offsets and the file line it starts on. A fence
4151
- * opener ends the search with no paragraph.
4151
+ * opener ends the search with no paragraph. Given a `format`, a marker-only
4152
+ * line is skipped like a blank one before the paragraph, and ends it after.
4152
4153
  */
4153
- declare function paragraphAfter(content: string, offset: number): {
4154
+ declare function paragraphAfter(content: string, offset: number, format?: string): {
4154
4155
  start: number;
4155
4156
  end: number;
4156
4157
  line: number;
@@ -4203,8 +4204,10 @@ declare function insideFence(text: string, bodyOffset: number, line: number, for
4203
4204
  /**
4204
4205
  * The lines a marker anchors, as 1-based lines of `text`: the rest of its own
4205
4206
  * line when that carries text, else the paragraph or fenced block that
4206
- * follows. With `quote`, the next fenced block after it, wherever that is.
4207
- * Undefined when nothing follows to anchor.
4207
+ * follows. Marker-only lines below it are skipped, so markers stacked above
4208
+ * one paragraph all anchor it, and none is part of the pin. With `quote`, the
4209
+ * next fenced block after it, wherever that is. Undefined when nothing
4210
+ * follows to anchor.
4208
4211
  */
4209
4212
  declare function anchoredLines(text: string, after: number, format: string, quote?: boolean): {
4210
4213
  start: number;
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  reencryptMetadata,
6
6
  runKeyRotate,
7
7
  runKeySet
8
- } from "./chunk-ZWPVZUJI.js";
8
+ } from "./chunk-CD3LHG26.js";
9
9
  import {
10
10
  BinMissing,
11
11
  COMMON_FORMATS,
@@ -127,7 +127,7 @@ import {
127
127
  valueOf,
128
128
  vendorFileName,
129
129
  writeFileAtomic
130
- } from "./chunk-UCLMW3RE.js";
130
+ } from "./chunk-HUHERW7E.js";
131
131
 
132
132
  // src/key/index.ts
133
133
  var key_exports = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hawkeyexl/manni",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "One command line for documentation that is meant to be checked. `manni meta` validates the presence and format of document metadata (Markdown frontmatter and more) against JSON Schema, built for CI. Formerly docmeta.",
5
5
  "type": "module",
6
6
  "bin": {