Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
interface EditorConfig {
loadHighlightJs(): Promise<HighlightJs>;
mapLanguageName(mimeType: string): string;
defaultMimeType: string;
enabled: boolean;
}
// TODO: Replace once library loader is replaced with webpack.
interface HighlightJs {
highlightAuto(text: string): HighlightJsResult;
highlight(text: string, opts: {
language: string
}): HighlightJsResult;
};
interface HighlightJsResult {
value: string;
}