mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 02:02:29 +08:00
chore(admonitions): remove formatting plugin for now
This commit is contained in:
parent
ee76e81d1f
commit
f487348cc5
@ -96,45 +96,11 @@ export function buildConfig() {
|
||||
defaultProtocol: "https://",
|
||||
allowedProtocols: ALLOWED_PROTOCOLS
|
||||
},
|
||||
style: {
|
||||
definitions: buildStyleDefinitions()
|
||||
},
|
||||
// This value must be kept in sync with the language defined in webpack.config.js.
|
||||
language: "en"
|
||||
};
|
||||
}
|
||||
|
||||
function buildStyleDefinitions() {
|
||||
const element = "p";
|
||||
return [
|
||||
{
|
||||
name: "Note",
|
||||
element,
|
||||
classes: [ "admonition", "note" ]
|
||||
},
|
||||
{
|
||||
name: "Tip",
|
||||
element,
|
||||
classes: [ "admonition", "tip" ]
|
||||
},
|
||||
{
|
||||
name: "Important",
|
||||
element,
|
||||
classes: [ "admonition", "important" ]
|
||||
},
|
||||
{
|
||||
name: "Caution",
|
||||
element,
|
||||
classes: [ "admonition", "caution" ]
|
||||
},
|
||||
{
|
||||
name: "Warning",
|
||||
element,
|
||||
classes: [ "admonition", "warning" ]
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
export function buildToolbarConfig(isClassicToolbar: boolean) {
|
||||
if (isClassicToolbar) {
|
||||
const multilineToolbar = utils.isDesktop() && options.get("textNoteEditorMultilineToolbar") === "true";
|
||||
@ -149,7 +115,6 @@ function buildClassicToolbar(multilineToolbar: boolean) {
|
||||
return {
|
||||
toolbar: {
|
||||
items: [
|
||||
"style",
|
||||
"heading",
|
||||
"fontSize",
|
||||
"|",
|
||||
@ -216,7 +181,6 @@ function buildFloatingToolbar() {
|
||||
},
|
||||
|
||||
blockToolbar: [
|
||||
"style",
|
||||
"heading",
|
||||
"|",
|
||||
"bulletedList",
|
||||
|
Loading…
x
Reference in New Issue
Block a user