Skip to content

Commit

Permalink
fix: wrong type for args and options
Browse files Browse the repository at this point in the history
  • Loading branch information
Pcrab committed Apr 1, 2023
1 parent 8d5cedc commit a3c1ef3
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions lib/extend/syntax_highlight.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
import Hexo from '../hexo';
import type Hexo from '../hexo';

export interface HighlightOptions {
lang: string | undefined,
caption: string | undefined,
lines_length: number,

// plulgins/filter/before_post_render/backtick_code_block
lang: string,
caption: string,
lines_length?: number,
firstLineNumber?: string | number


language_attr?: boolean;
// plugins/tag/code.ts
language_attr?: boolean | undefined;
firstLine?: number;
line_number?: boolean;
line_threshold?: number;
line_number?: boolean | undefined;
line_threshold?: number | undefined;
mark?: number[];
wrap?: boolean;
wrap?: boolean | undefined;

}

interface HighlightExecArgs {
context?: Hexo;
args?: [
content: string,
options: HighlightOptions,
];
args?: [string, HighlightOptions];
}

interface StoreFunction {
Expand Down

0 comments on commit a3c1ef3

Please sign in to comment.