🎨 Supports disabling Markdown syntax input for some inline elements https://github.com/siyuan-note/siyuan/issues/11141

This commit is contained in:
Daniel 2024-04-26 12:08:01 +08:00
parent 53f5b08038
commit b9f269ae85
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
17 changed files with 185 additions and 41 deletions

View file

@ -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
*/

View file

@ -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;