pickier 0.1.34 → 0.1.36

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.
@@ -30,3 +30,17 @@ export declare function getCodeBlockLines(lines: string[]): Set<number>;
30
30
  * don't already have the set computed.
31
31
  */
32
32
  export declare function isInsideCodeBlock(lines: string[], targetIdx: number): boolean;
33
+ /**
34
+ * Apply `transform` to the parts of `line` that are OUTSIDE inline code
35
+ * spans, leaving code-span text (and its backticks) verbatim. Lets
36
+ * emphasis/style fixers rewrite prose without corrupting literal markers
37
+ * such as `reverse_proxy` inside `` `caddy reverse_proxy` ``.
38
+ */
39
+ export declare function replaceOutsideInlineCode(line: string, transform: (segment: string) => string): string;
40
+ /**
41
+ * Blank out inline code spans (replacing every character — backticks and
42
+ * content — with spaces) while preserving length and column positions. Used
43
+ * by detectors that want to scan prose for markers without matching anything
44
+ * inside a code span.
45
+ */
46
+ export declare function maskInlineCode(line: string): string;