Skip to content

Commit f3724ac

Browse files
committed
chore: update libs
1 parent 0043846 commit f3724ac

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/CodeButtonContextImpl.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export class CodeButtonContextImpl extends Component implements CodeButtonContex
5252
private readonly resultEl: HTMLElement;
5353

5454
public constructor(options: CodeButtonContextImplConstructorOptions) {
55+
super();
5556
this.app = options.plugin.app;
5657
this.config = options.config;
5758
this.markdownInfo = options.markdownInfo;

src/CodeScriptBlock.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const CODE_SCRIPT_BLOCK_LANGUAGE = 'code-script';
77
export async function registerCodeScriptBlock(plugin: Plugin): Promise<void> {
88
window.CodeMirror.defineMode(CODE_SCRIPT_BLOCK_LANGUAGE, (config) => window.CodeMirror.getMode(config, 'text/typescript'));
99
const prism = await loadPrism();
10-
prism.languages[CODE_SCRIPT_BLOCK_LANGUAGE] = prism.languages.typescript ?? throwExpression(new Error('Prism typescript language not found.'));
10+
prism.languages[CODE_SCRIPT_BLOCK_LANGUAGE] = prism.languages['typescript'] ?? throwExpression(new Error('Prism typescript language not found.'));
1111

1212
plugin.register(() => {
1313
window.CodeMirror.defineMode(CODE_SCRIPT_BLOCK_LANGUAGE, (config) => window.CodeMirror.getMode(config, 'null'));

0 commit comments

Comments
 (0)