mirror of
https://github.com/slateblua/mathtype.git
synced 2026-07-22 05:43:32 +00:00
Format
This commit is contained in:
parent
ebb6e49862
commit
92563d0c30
1 changed files with 10 additions and 10 deletions
20
main.ts
20
main.ts
|
|
@ -26,7 +26,7 @@ const DEFUALT_PREFS: MathTypePrefs = {
|
|||
'double integral': '\\iint_{D}',
|
||||
'triple integral': '\\iiint_{V}',
|
||||
'contour integral': '\\oint_{C}',
|
||||
|
||||
|
||||
// Roots and Powers
|
||||
'square root': '\\sqrt{x}',
|
||||
'nth root': '\\sqrt[n]{x}',
|
||||
|
|
@ -229,19 +229,19 @@ class MathTypeSuggest extends EditorSuggest<string> {
|
|||
}
|
||||
|
||||
renderSuggestion(value: string, el: HTMLElement): void {
|
||||
const suggestionEl = el.createDiv({ cls: "suggestion-item" });
|
||||
const suggestionEl = el.createDiv({cls: "suggestion-item"});
|
||||
|
||||
// Container for rendered MathJax output
|
||||
const renderedEl = suggestionEl.createDiv({ cls: "suggestion-rendered" });
|
||||
// Container for rendered MathJax output
|
||||
const renderedEl = suggestionEl.createDiv({cls: "suggestion-rendered"});
|
||||
|
||||
MarkdownRenderer.render(
|
||||
MarkdownRenderer.render(
|
||||
this.app,
|
||||
`$$${value}$$`,
|
||||
renderedEl,
|
||||
'',
|
||||
`$$${value}$$`,
|
||||
renderedEl,
|
||||
'',
|
||||
this.plugin,
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
selectSuggestion(value: string, evt: MouseEvent | KeyboardEvent): void {
|
||||
if (!this.context) return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue