mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-18 21:18:07 +01:00
🎨 Supports disabling Markdown syntax input for some inline elements https://github.com/siyuan-note/siyuan/issues/11141
This commit is contained in:
parent
53f5b08038
commit
b9f269ae85
17 changed files with 185 additions and 41 deletions
28
app/src/types/config.d.ts
vendored
28
app/src/types/config.d.ts
vendored
|
|
@ -279,10 +279,38 @@ declare namespace Config {
|
|||
trust: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* SiYuan editor markdown related configuration
|
||||
*/
|
||||
interface IMarkdown {
|
||||
/**
|
||||
* Whether to enable the inline superscript
|
||||
*/
|
||||
inlineSup: boolean;
|
||||
/**
|
||||
* Whether to enable the inline subscript
|
||||
*/
|
||||
inlineSub: boolean;
|
||||
/**
|
||||
* Whether to enable the inline tag
|
||||
*/
|
||||
inlineTag: boolean;
|
||||
/**
|
||||
* Whether to enable the inline math
|
||||
*/
|
||||
inlineMath: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* SiYuan editor related configuration
|
||||
*/
|
||||
export interface IEditor {
|
||||
|
||||
/**
|
||||
* Markdown configuration
|
||||
*/
|
||||
markdown: IMarkdown;
|
||||
|
||||
/**
|
||||
* The default number of backlinks to expand
|
||||
*/
|
||||
|
|
|
|||
4
app/src/types/protyle.d.ts
vendored
4
app/src/types/protyle.d.ts
vendored
|
|
@ -202,6 +202,10 @@ declare class Lute {
|
|||
|
||||
public SetTag(enable: boolean): void;
|
||||
|
||||
public SetInlineMath(enable: boolean): void;
|
||||
|
||||
public SetGFMStrikethrough1(enable: boolean): void;
|
||||
|
||||
public SetMark(enable: boolean): void;
|
||||
|
||||
public SetSub(enable: boolean): void;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue