/** * Inline code in a code face (#624, `codeStyle.inline`): the characters of * a block's `` `x` `` spans (`ContentBlock.inlineCode`, source ranges) * become chips set in the code face, at the size, colour and fill the * style gives, each one unit as a chip is. A chip span keeps the code's * characters as its text, so the block's plain text and source map stay * as they are. Without `codeStyle.inline` inline code is set in the text's * face, as before #624. */ import type { ContentBlock, InlineSpan } from '../parse/index.js'; import type { ResolvedInlineCodeStyleConfig } from '../types.js'; import type { ResolvedConfig } from '../vdt.js'; /** Style id of an inline code chip: no chip style can name it. */ export declare const INLINE_CODE_CHIP_STYLE = "__postext-code"; /** * `block` (the block being measured: `raw` with its heading number, its * capitals…) with the characters of its inline code set as code chips, * when `codeStyle.inline` is set and the block has inline code. `raw` is * the parsed block, whose source map tells which characters were written * between backticks. */ export declare function withInlineCode(block: ContentBlock, raw: ContentBlock, resolved: ResolvedConfig, fontSizePx: number): ContentBlock; /** * The spans of an inline snippet (a table cell, a caption, a note) with the * characters of its inline code set as code chips, when `inline` is set and * `content` (the snippet as written, which `spans` were parsed from) has * inline code. Run on the spans {@link parseInlineSnippetSpans} returns, * before formulas and references are resolved. */ export declare function withSnippetInlineCode(spans: InlineSpan[], content: string, inline: ResolvedInlineCodeStyleConfig | undefined, dpi: number, fontSizePx: number): InlineSpan[]; //# sourceMappingURL=codeInline.d.ts.map